summaryrefslogtreecommitdiff
path: root/test/debugInfo.fromasm
diff options
context:
space:
mode:
Diffstat (limited to 'test/debugInfo.fromasm')
-rw-r--r--test/debugInfo.fromasm12
1 files changed, 10 insertions, 2 deletions
diff --git a/test/debugInfo.fromasm b/test/debugInfo.fromasm
index f073f66a1..f19f244f5 100644
--- a/test/debugInfo.fromasm
+++ b/test/debugInfo.fromasm
@@ -1,7 +1,5 @@
(module
- (type $FUNCSIG$iii (func (param i32 i32) (result i32)))
(type $FUNCSIG$vii (func (param i32 i32)))
- (import "asm2wasm" "i32s-rem" (func $i32s-rem (param i32 i32) (result i32)))
(import "env" "memory" (memory $0 256 256))
(import "env" "table" (table 0 0 anyfunc))
(import "env" "memoryBase" (global $memoryBase i32))
@@ -25,6 +23,16 @@
(i32.const 1)
)
)
+ (func $i32s-rem (param $0 i32) (param $1 i32) (result i32)
+ (if i32
+ (get_local $1)
+ (i32.rem_s
+ (get_local $0)
+ (get_local $1)
+ )
+ (i32.const 0)
+ )
+ )
(func $opts (param $0 i32) (param $1 i32) (result i32)
;; even-opted.cpp:2
(set_local $1