diff options
author | Alon Zakai <azakai@google.com> | 2024-11-06 16:26:09 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-06 16:26:09 -0800 |
commit | de680182bcd1d64d597538cfa4ad6857ce298bc3 (patch) | |
tree | a0a77f23bc01c47ec3d739f9ab07b2b41a884eb9 /test/lit/exec/simd.wast | |
parent | b57a6d74cb9edc88b2f7d203270f98467c0961af (diff) | |
download | binaryen-de680182bcd1d64d597538cfa4ad6857ce298bc3.tar.gz binaryen-de680182bcd1d64d597538cfa4ad6857ce298bc3.tar.bz2 binaryen-de680182bcd1d64d597538cfa4ad6857ce298bc3.zip |
[wasm64] Fix 64-bit memory/table operations in interpreter (#7058)
A bunch of places assumed a 32-bit index.
Diffstat (limited to 'test/lit/exec/simd.wast')
-rw-r--r-- | test/lit/exec/simd.wast | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/lit/exec/simd.wast b/test/lit/exec/simd.wast new file mode 100644 index 000000000..5ab6489a2 --- /dev/null +++ b/test/lit/exec/simd.wast @@ -0,0 +1,21 @@ +;; NOTE: Assertions have been generated by update_lit_checks.py --output=fuzz-exec and should not be edited. + +;; RUN: wasm-opt %s -all --fuzz-exec -q -o /dev/null 2>&1 | filecheck %s + +(module + (memory $0 i64 16 17 shared) + + (data $0 (i64.const 0) "abcdefg") + + ;; CHECK: [fuzz-exec] calling load8x8_s + ;; CHECK-NEXT: [fuzz-exec] note result: load8x8_s => i32x4 0x00620061 0x00640063 0x00660065 0x00000067 + (func $load8x8_s (export "load8x8_s") (result v128) + (v128.load8x8_s align=2 + (i64.const 0) + ) + ) +) + +;; CHECK: [fuzz-exec] calling load8x8_s +;; CHECK-NEXT: [fuzz-exec] note result: load8x8_s => i32x4 0x00620061 0x00640063 0x00660065 0x00000067 +;; CHECK-NEXT: [fuzz-exec] comparing load8x8_s |