summaryrefslogtreecommitdiff
path: root/test/debugInfo.fromasm
diff options
context:
space:
mode:
Diffstat (limited to 'test/debugInfo.fromasm')
-rw-r--r--test/debugInfo.fromasm57
1 files changed, 26 insertions, 31 deletions
diff --git a/test/debugInfo.fromasm b/test/debugInfo.fromasm
index 38249c476..09e692304 100644
--- a/test/debugInfo.fromasm
+++ b/test/debugInfo.fromasm
@@ -29,41 +29,36 @@
(i32.const 1)
)
)
- (func $i32s-rem (; 2 ;) (; has Stack IR ;) (param $0 i32) (param $1 i32) (result i32)
- (if (result i32)
- (local.get $1)
- (i32.rem_s
- (local.get $0)
- (local.get $1)
- )
- (i32.const 0)
- )
- )
- (func $opts (; 3 ;) (; has Stack IR ;) (param $0 i32) (param $1 i32) (result i32)
- ;;@ even-opted.cpp:1:0
- (local.set $0
- (i32.add
- (local.get $0)
- (local.get $1)
- )
- )
- ;;@ even-opted.cpp:2:0
- (local.set $1
- (i32.shr_s
- (local.get $1)
- (local.get $0)
- )
- )
+ (func $opts (; 2 ;) (; has Stack IR ;) (param $0 i32) (param $1 i32) (result i32)
+ (local $2 i32)
;;@ even-opted.cpp:3:0
(i32.add
- (call $i32s-rem
- (local.get $0)
- (local.get $1)
+ (if (result i32)
+ (local.tee $2
+ ;;@ even-opted.cpp:2:0
+ (local.tee $1
+ (i32.shr_s
+ (local.get $1)
+ ;;@ even-opted.cpp:1:0
+ (local.tee $0
+ (i32.add
+ (local.get $0)
+ (local.get $1)
+ )
+ )
+ )
+ )
+ )
+ (i32.rem_s
+ (local.get $0)
+ (local.get $2)
+ )
+ (i32.const 0)
)
(local.get $1)
)
)
- (func $fib (; 4 ;) (; has Stack IR ;) (param $0 i32) (result i32)
+ (func $fib (; 3 ;) (; has Stack IR ;) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@@ -126,7 +121,7 @@
;;@ fib.c:8:0
(local.get $1)
)
- (func $switch_reach (; 5 ;) (; has Stack IR ;) (param $0 i32) (result i32)
+ (func $switch_reach (; 4 ;) (; has Stack IR ;) (param $0 i32) (result i32)
(local $1 i32)
(local.set $1
(block $__rjto$0 (result i32)
@@ -175,7 +170,7 @@
;;@ /tmp/emscripten_test_binaryen2_28hnAe/src.c:59950:0
(local.get $1)
)
- (func $nofile (; 6 ;) (; has Stack IR ;)
+ (func $nofile (; 5 ;) (; has Stack IR ;)
;;@ (unknown):1337:0
(call $nofile)
)