summaryrefslogtreecommitdiff
path: root/test/i64-setTempRet0.fromasm.imprecise
blob: c1ead5c7975e2b4019c7aa5e14eac50b719bdf8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
(module
 (type $legaltype$illegalImportResult (func (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 $imports (; 1 ;) (result i32)
  (i32.wrap/i64
   (i64.or
    (i64.extend_u/i32
     (call $legalimport$illegalImportResult)
    )
    (i64.shl
     (i64.extend_u/i32
      (get_global $tempRet0)
     )
     (i64.const 32)
    )
   )
  )
 )
 (func $legalstub$illegalResult (; 2 ;) (result i32)
  (set_global $tempRet0
   (i32.const 2)
  )
  (i32.const 1)
 )
)