Initial commit

This commit is contained in:
Alexis Engelke
2018-04-08 13:16:49 +00:00
commit a3f77dbf49
19 changed files with 2804 additions and 0 deletions

22
tests/meson.build Normal file
View File

@@ -0,0 +1,22 @@
sh = find_program('sh')
cases = [
['enter', 'decode-enter.sh'],
['imul', 'decode-imul.sh'],
['inc', 'decode-inc.sh'],
['movsx', 'decode-movsx.sh'],
['ret', 'decode-ret.sh'],
['sse-shufpd', 'decode-sse-shufpd.sh'],
['sse-movq', 'decode-sse-movq.sh'],
]
test_driver = executable('test_driver', 'driver.c',
dependencies: libx86decode,
c_args: ['-D_GNU_SOURCE'])
test_args = files('common.sh') + [test_driver.full_path(), '@0@'.format(pointer_size * 8)]
foreach case : cases
test(case[0], sh, args: test_args + files(case[1]))
endforeach