libdpf/thirdparty/simde/test/wasm/simd128/meson.build
Ryan Henry 3f10e05176 Update googletest to 1.18.0 and SIMDe to 0.8.2.
Googletest 1.18 asks for CMake 3.13 or newer, so configuring the tests no longer warns that CMake compatibility below 3.10 is deprecated.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-24 14:30:19 -06:00

92 lines
1.8 KiB
Meson

simde_test_wasm_simd128_tests = [
'abs',
'add',
'add_sat',
'all_true',
'and',
'andnot',
'any_true',
'avgr',
'bitmask',
'bitselect',
'ceil',
'const',
'convert',
'demote',
'div',
'dot',
'eq',
'extract_lane',
'extadd_pairwise',
'extmul_high',
'extmul_low',
'floor',
'ge',
'gt',
'load_splat',
'le',
'lt',
'load',
'load_zero',
'load_lane',
'make',
'max',
'min',
'mul',
'narrow',
'ne',
'nearest',
'neg',
'not',
'or',
'pmax',
'pmin',
'popcnt',
'promote',
'q15mulr_sat',
'replace_lane',
'shl',
'shuffle',
'shr',
'splat',
'sqrt',
'store_lane',
'sub',
'sub_sat',
'swizzle',
'trunc_sat',
'trunc',
'extend_low',
'extend_high',
'xor',
]
simde_test_wasm_simd128_sources = []
simde_test_wasm_simd128_libs = []
foreach name : simde_test_wasm_simd128_tests
foreach lang : ['c', 'cpp']
source_file = name + '.c'
if lang == 'cpp'
source_file = configure_file(input: name + '.c', output: name + '.cpp', copy: true)
endif
simde_test_wasm_simd128_sources += source_file
foreach emul : ['emul', 'native']
extra_flags = ['-DSIMDE_TEST_BARE']
if emul == 'emul'
extra_flags += '-DSIMDE_NO_NATIVE'
endif
x = executable(name + '-' + emul + '-' + lang, source_file,
c_args: simde_c_args + simde_c_defs + simde_native_c_flags + extra_flags,
cpp_args: simde_c_args + simde_c_defs + simde_native_c_flags + extra_flags,
include_directories: simde_include_dir,
dependencies: simde_deps)
test('wasm_simd128/' + name + '/' + emul + '/' + lang, x,
protocol: 'tap',
# Emscripten tests must be run from builddir
workdir: meson.current_build_dir())
endforeach
endforeach
endforeach