summaryrefslogtreecommitdiff
path: root/test/passes/optimize-instructions.wast
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2017-11-14 16:42:25 -0800
committerGitHub <noreply@github.com>2017-11-14 16:42:25 -0800
commit4deed1eb310993391fa0e7e06a18cf2303674f98 (patch)
tree16028717e26ec439fe0e8f5b2e40988fcc92f2e9 /test/passes/optimize-instructions.wast
parent82d693b2bd23778b29bbd1019936a2857580c7ed (diff)
downloadbinaryen-4deed1eb310993391fa0e7e06a18cf2303674f98.tar.gz
binaryen-4deed1eb310993391fa0e7e06a18cf2303674f98.tar.bz2
binaryen-4deed1eb310993391fa0e7e06a18cf2303674f98.zip
add i64_atomics_* support to asm2wasm (#1262)
* add i64_atomics_* support to asm2wasm * OptimizeInstructions: atomic loads can't be signed
Diffstat (limited to 'test/passes/optimize-instructions.wast')
-rw-r--r--test/passes/optimize-instructions.wast16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/passes/optimize-instructions.wast b/test/passes/optimize-instructions.wast
index ff5bd9f9d..4ee2b0c86 100644
--- a/test/passes/optimize-instructions.wast
+++ b/test/passes/optimize-instructions.wast
@@ -2641,3 +2641,19 @@
)
)
)
+(module
+ (import "env" "memory" (memory $0 (shared 256 256)))
+ (func $x
+ (drop
+ (i32.shr_s
+ (i32.shl
+ (i32.atomic.load8_u ;; can't be signed
+ (i32.const 100)
+ )
+ (i32.const 24)
+ )
+ (i32.const 24)
+ )
+ )
+ )
+)