diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/passes/code-folding.txt | 17 | ||||
-rw-r--r-- | test/passes/code-folding.wast | 16 |
2 files changed, 33 insertions, 0 deletions
diff --git a/test/passes/code-folding.txt b/test/passes/code-folding.txt index 33b5da6a7..054e58104 100644 --- a/test/passes/code-folding.txt +++ b/test/passes/code-folding.txt @@ -123,3 +123,20 @@ ) ) ) +(module + (type $0 (func (result i32))) + (memory $0 (shared 1 1)) + (export "func_2224" (func $0)) + (func $0 (; 0 ;) (type $0) (result i32) + (local $var$0 i32) + (if (result i32) + (i32.const 0) + (i32.load offset=22 + (get_local $var$0) + ) + (i32.atomic.load offset=22 + (get_local $var$0) + ) + ) + ) +) diff --git a/test/passes/code-folding.wast b/test/passes/code-folding.wast index 56eea3a59..1721c3e99 100644 --- a/test/passes/code-folding.wast +++ b/test/passes/code-folding.wast @@ -134,4 +134,20 @@ ) ) ) +(module + (memory $0 (shared 1 1)) + (export "func_2224" (func $0)) + (func $0 (result i32) + (local $var$0 i32) + (if (result i32) + (i32.const 0) + (i32.load offset=22 + (get_local $var$0) + ) + (i32.atomic.load offset=22 + (get_local $var$0) + ) + ) + ) +) |