summaryrefslogtreecommitdiff
path: root/test/threads.fromasm.no-opts
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2018-11-02 15:41:55 -0700
committerGitHub <noreply@github.com>2018-11-02 15:41:55 -0700
commit49bb4290ce46b0e58f4817cbb46f3dada4f41409 (patch)
tree8b38dc5046a4846fa129f4b7fac0bd855d4a4124 /test/threads.fromasm.no-opts
parent33665b6b0c33e79049c832b9a60dcfe07fa54b59 (diff)
downloadbinaryen-49bb4290ce46b0e58f4817cbb46f3dada4f41409.tar.gz
binaryen-49bb4290ce46b0e58f4817cbb46f3dada4f41409.tar.bz2
binaryen-49bb4290ce46b0e58f4817cbb46f3dada4f41409.zip
Fix asm2wasm handling of HEAP8[x >> 2] (#1720)
fixes kripken/emscripten#1718 The way fastcomp emits compareExchange is a little odd, we just need to ignore the shift.
Diffstat (limited to 'test/threads.fromasm.no-opts')
-rw-r--r--test/threads.fromasm.no-opts14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/threads.fromasm.no-opts b/test/threads.fromasm.no-opts
index 78538c9c9..d15b56541 100644
--- a/test/threads.fromasm.no-opts
+++ b/test/threads.fromasm.no-opts
@@ -118,5 +118,19 @@
(i32.const 0)
)
)
+ (set_local $$temp
+ (i32.atomic.rmw8_u.cmpxchg
+ (get_local $$temp)
+ (i32.const 1)
+ (i32.const 2)
+ )
+ )
+ (set_local $$temp
+ (i32.atomic.rmw8_u.cmpxchg
+ (get_local $$temp)
+ (i32.const 1)
+ (i32.const 2)
+ )
+ )
)
)