diff options
author | Alon Zakai <alonzakai@gmail.com> | 2018-11-02 15:41:55 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-02 15:41:55 -0700 |
commit | 49bb4290ce46b0e58f4817cbb46f3dada4f41409 (patch) | |
tree | 8b38dc5046a4846fa129f4b7fac0bd855d4a4124 /test/threads.fromasm.imprecise | |
parent | 33665b6b0c33e79049c832b9a60dcfe07fa54b59 (diff) | |
download | binaryen-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.imprecise')
-rw-r--r-- | test/threads.fromasm.imprecise | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/test/threads.fromasm.imprecise b/test/threads.fromasm.imprecise index 66c558ffe..eec93d750 100644 --- a/test/threads.fromasm.imprecise +++ b/test/threads.fromasm.imprecise @@ -54,9 +54,17 @@ ) ) (drop - (i32.atomic.rmw8_u.xor - (i32.const 1024) - (i32.const 0) + (i32.atomic.rmw8_u.cmpxchg + (i32.atomic.rmw8_u.cmpxchg + (i32.atomic.rmw8_u.xor + (i32.const 1024) + (i32.const 0) + ) + (i32.const 1) + (i32.const 2) + ) + (i32.const 1) + (i32.const 2) ) ) ) |