summaryrefslogtreecommitdiff
path: root/test/i64-setTempRet0.fromasm.imprecise.no-opts
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2018-08-30 16:52:52 -0700
committerGitHub <noreply@github.com>2018-08-30 16:52:52 -0700
commite4d014f4293e38f179354af7b049133679b256d8 (patch)
tree741175a2306e779015e060df61a12f315b76fb9e /test/i64-setTempRet0.fromasm.imprecise.no-opts
parentf109f3cae1cd81db22ba490a4da17a7a4c495047 (diff)
downloadbinaryen-e4d014f4293e38f179354af7b049133679b256d8.tar.gz
binaryen-e4d014f4293e38f179354af7b049133679b256d8.tar.bz2
binaryen-e4d014f4293e38f179354af7b049133679b256d8.zip
Remove replaced imports in LegalizeJSInterface (#1657)
This pass was replacing all the uses of certain imports but wasn't bothering to delete the old ones.
Diffstat (limited to 'test/i64-setTempRet0.fromasm.imprecise.no-opts')
-rw-r--r--test/i64-setTempRet0.fromasm.imprecise.no-opts9
1 files changed, 4 insertions, 5 deletions
diff --git a/test/i64-setTempRet0.fromasm.imprecise.no-opts b/test/i64-setTempRet0.fromasm.imprecise.no-opts
index 6ade6f2a8..8a8dc9a8f 100644
--- a/test/i64-setTempRet0.fromasm.imprecise.no-opts
+++ b/test/i64-setTempRet0.fromasm.imprecise.no-opts
@@ -5,24 +5,23 @@
(import "env" "table" (table 0 0 anyfunc))
(import "env" "memoryBase" (global $memoryBase i32))
(import "env" "tableBase" (global $tableBase i32))
- (import "env" "illegalImportResult" (func $illegalImportResult (result i64)))
(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 (; 2 ;) (result i64)
+ (func $illegalResult (; 1 ;) (result i64)
(return
(i64.const 8589934593)
)
)
- (func $imports (; 3 ;) (result i32)
+ (func $imports (; 2 ;) (result i32)
(return
(i32.wrap/i64
(call $legalfunc$illegalImportResult)
)
)
)
- (func $legalstub$illegalResult (; 4 ;) (result i32)
+ (func $legalstub$illegalResult (; 3 ;) (result i32)
(local $0 i64)
(set_local $0
(call $illegalResult)
@@ -39,7 +38,7 @@
(get_local $0)
)
)
- (func $legalfunc$illegalImportResult (; 5 ;) (result i64)
+ (func $legalfunc$illegalImportResult (; 4 ;) (result i64)
(i64.or
(i64.extend_u/i32
(call $legalimport$illegalImportResult)