summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2024-11-08 09:06:26 -0800
committerGitHub <noreply@github.com>2024-11-08 09:06:26 -0800
commitb30067658459ca167e58fe0dee9d85ea6100c223 (patch)
treee8ee522c5ba46ade6e9426cc9aedf420d5c2ff80 /test
parent12ef2030ad2e7ceb5d208d4a24f25142d8a5f556 (diff)
downloadbinaryen-b30067658459ca167e58fe0dee9d85ea6100c223.tar.gz
binaryen-b30067658459ca167e58fe0dee9d85ea6100c223.tar.bz2
binaryen-b30067658459ca167e58fe0dee9d85ea6100c223.zip
[wasm64] Fix 32-bit address computation in execution of SIMDLoadExtend (#7068)
Diffstat (limited to 'test')
-rw-r--r--test/lit/exec/simd.wast13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/lit/exec/simd.wast b/test/lit/exec/simd.wast
index 5ab6489a2..a34a68276 100644
--- a/test/lit/exec/simd.wast
+++ b/test/lit/exec/simd.wast
@@ -14,8 +14,21 @@
(i64.const 0)
)
)
+
+ ;; CHECK: [fuzz-exec] calling load32x2_u
+ ;; CHECK-NEXT: [trap final > memory: 13835058055282163712 > 1048576]
+ (func $load32x2_u (export "load32x2_u") (result v128)
+ ;; This large 64-bit address is out of bounds, and this should trap.
+ (v128.load32x2_u
+ (i64.const -4611686018427387904)
+ )
+ )
)
;; CHECK: [fuzz-exec] calling load8x8_s
;; CHECK-NEXT: [fuzz-exec] note result: load8x8_s => i32x4 0x00620061 0x00640063 0x00660065 0x00000067
+
+;; CHECK: [fuzz-exec] calling load32x2_u
+;; CHECK-NEXT: [trap final > memory: 13835058055282163712 > 1048576]
+;; CHECK-NEXT: [fuzz-exec] comparing load32x2_u
;; CHECK-NEXT: [fuzz-exec] comparing load8x8_s