summaryrefslogtreecommitdiff
path: root/test/i64-setTempRet0.fromasm.no-opts
diff options
context:
space:
mode:
Diffstat (limited to 'test/i64-setTempRet0.fromasm.no-opts')
-rw-r--r--test/i64-setTempRet0.fromasm.no-opts16
1 files changed, 10 insertions, 6 deletions
diff --git a/test/i64-setTempRet0.fromasm.no-opts b/test/i64-setTempRet0.fromasm.no-opts
index 1de61524b..6d2f35d6d 100644
--- a/test/i64-setTempRet0.fromasm.no-opts
+++ b/test/i64-setTempRet0.fromasm.no-opts
@@ -1,32 +1,36 @@
(module
(type $FUNCSIG$j (func (result i64)))
+ (type $FUNCSIG$vi (func (param i32)))
+ (type $FUNCSIG$i (func (result i32)))
(type $legaltype$illegalImportResult (func (result i32)))
(import "env" "memory" (memory $memory 256 256))
(import "env" "table" (table $table 0 0 anyfunc))
(import "env" "__memory_base" (global $__memory_base i32))
(import "env" "__table_base" (global $__table_base i32))
+ (import "env" "setTempRet0" (func $setTempRet0 (param i32)))
+ (import "env" "getTempRet0" (func $getTempRet0 (result i32)))
(import "env" "illegalImportResult" (func $legalimport$illegalImportResult (result i32)))
(global $tempRet0 (mut i32) (i32.const 0))
(export "illegalResult" (func $legalstub$illegalResult))
(export "imports" (func $imports))
- (func $illegalResult (; 1 ;) (result i64)
+ (func $illegalResult (; 3 ;) (result i64)
(return
(i64.const 8589934593)
)
)
- (func $imports (; 2 ;) (result i32)
+ (func $imports (; 4 ;) (result i32)
(return
(i32.wrap/i64
(call $legalfunc$illegalImportResult)
)
)
)
- (func $legalstub$illegalResult (; 3 ;) (result i32)
+ (func $legalstub$illegalResult (; 5 ;) (result i32)
(local $0 i64)
(set_local $0
(call $illegalResult)
)
- (set_global $tempRet0
+ (call $setTempRet0
(i32.wrap/i64
(i64.shr_u
(get_local $0)
@@ -38,14 +42,14 @@
(get_local $0)
)
)
- (func $legalfunc$illegalImportResult (; 4 ;) (result i64)
+ (func $legalfunc$illegalImportResult (; 6 ;) (result i64)
(i64.or
(i64.extend_u/i32
(call $legalimport$illegalImportResult)
)
(i64.shl
(i64.extend_u/i32
- (get_global $tempRet0)
+ (call $getTempRet0)
)
(i64.const 32)
)