diff options
Diffstat (limited to 'test/threads.asm.js')
-rw-r--r-- | test/threads.asm.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/threads.asm.js b/test/threads.asm.js index 1253e8c42..bedeb7a37 100644 --- a/test/threads.asm.js +++ b/test/threads.asm.js @@ -137,6 +137,9 @@ Module["asm"] = (function(global, env, buffer) { $temp = (Atomics_xor(HEAPU32, 1024, 0)|0); $temp = (Atomics_xor(HEAP16, 1024, 0)|0); $temp = (Atomics_xor(HEAPU8, 1024, 0)|0); + // corner cases + $temp = (Atomics_compareExchange(HEAP8, $temp | 0, 1, 2)|0); + $temp = (Atomics_compareExchange(HEAP8, $temp >> 2, 1, 2)|0); } return { test: test }; |