Verify that cranelift-wasm can translate SIMD instructions

To do so we must use a new version of wabt-rs that allows us to enable features (e.g. SIMD) when translating the wasmtests
This commit is contained in:
Andrew Brown
2019-08-08 11:33:05 -07:00
committed by Dan Gohman
parent c595acfd0d
commit ca6449626f
2 changed files with 27 additions and 2 deletions

View File

@@ -0,0 +1,23 @@
(module
(func $test_splat (result i32)
i32.const 42
i32x4.splat
i32x4.extract_lane 0
)
(func $test_insert_lane (result i32)
v128.const i64x2 0 0
i32.const 99
i32x4.replace_lane 1
i32x4.extract_lane 1
)
(func $test_const (result i32)
v128.const i32x4 1 2 3 4
i32x4.extract_lane 3
)
(export "test_splat" (func $test_splat))
(export "test_insert_lane" (func $test_insert_lane))
(export "test_const" (func $test_const))
)