diff options
Diffstat (limited to 'test/passes/local-cse_ignore-implicit-traps.txt')
-rw-r--r-- | test/passes/local-cse_ignore-implicit-traps.txt | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/test/passes/local-cse_ignore-implicit-traps.txt b/test/passes/local-cse_ignore-implicit-traps.txt new file mode 100644 index 000000000..7b8ebba69 --- /dev/null +++ b/test/passes/local-cse_ignore-implicit-traps.txt @@ -0,0 +1,30 @@ +(module + (type $0 (func)) + (memory $0 100 100) + (func $loads (type $0) + (local $0 i32) + (drop + (tee_local $0 + (i32.load + (i32.const 10) + ) + ) + ) + (drop + (get_local $0) + ) + (drop + (i32.load offset=5 + (i32.const 10) + ) + ) + (drop + (i32.load + (i32.const 11) + ) + ) + (drop + (get_local $0) + ) + ) +) |