test: check unaligned load-coalescing with SIMD operations
This commit is contained in:
1
build.rs
1
build.rs
@@ -32,6 +32,7 @@ fn main() -> anyhow::Result<()> {
|
||||
test_directory_module(out, "tests/misc_testsuite/reference-types", strategy)?;
|
||||
test_directory_module(out, "tests/misc_testsuite/multi-memory", strategy)?;
|
||||
test_directory_module(out, "tests/misc_testsuite/module-linking", strategy)?;
|
||||
test_directory_module(out, "tests/misc_testsuite/simd", strategy)?;
|
||||
test_directory_module(out, "tests/misc_testsuite/threads", strategy)?;
|
||||
Ok(())
|
||||
})?;
|
||||
|
||||
13
tests/misc_testsuite/simd/unaligned-load.wast
Normal file
13
tests/misc_testsuite/simd/unaligned-load.wast
Normal file
@@ -0,0 +1,13 @@
|
||||
(; See discussion at https://github.com/bytecodealliance/wasmtime/issues/2943 ;)
|
||||
(module
|
||||
(memory 1)
|
||||
(data (i32.const 1) "\01\00\00\00\01\00\00\00")
|
||||
|
||||
(func $unaligned_load (export "unaligned_load") (result v128)
|
||||
v128.const i32x4 0 0 1 1
|
||||
i32.const 1
|
||||
v128.load
|
||||
v128.xor)
|
||||
)
|
||||
|
||||
(assert_return (invoke "unaligned_load") (v128.const i32x4 1 1 1 1))
|
||||
Reference in New Issue
Block a user