summaryrefslogtreecommitdiff
path: root/test/passes
diff options
context:
space:
mode:
Diffstat (limited to 'test/passes')
-rw-r--r--test/passes/optimize-instructions.txt17
-rw-r--r--test/passes/optimize-instructions.wast16
2 files changed, 33 insertions, 0 deletions
diff --git a/test/passes/optimize-instructions.txt b/test/passes/optimize-instructions.txt
index 010d6c139..d30e8f22e 100644
--- a/test/passes/optimize-instructions.txt
+++ b/test/passes/optimize-instructions.txt
@@ -2199,3 +2199,20 @@
)
)
)
+(module
+ (type $0 (func))
+ (import "env" "memory" (memory $0 (shared 256 256)))
+ (func $x (; 0 ;) (type $0)
+ (drop
+ (i32.shr_s
+ (i32.shl
+ (i32.atomic.load8_u
+ (i32.const 100)
+ )
+ (i32.const 24)
+ )
+ (i32.const 24)
+ )
+ )
+ )
+)
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)
+ )
+ )
+ )
+)