summaryrefslogtreecommitdiff
path: root/test/i64-setTempRet0.fromasm
blob: fcbff937a438513d8f56bffe5dbd51542ddd1754 (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
29
30
31
32
33
(module
 (type $FUNCSIG$vi (func (param i32)))
 (type $FUNCSIG$i (func (result i32)))
 (import "env" "memory" (memory $memory 256 256))
 (data (global.get $__memory_base) "i64-setTempRet0.asm.js")
 (import "env" "__memory_base" (global $__memory_base i32))
 (import "env" "setTempRet0" (func $setTempRet0 (param i32)))
 (import "env" "getTempRet0" (func $getTempRet0 (result i32)))
 (import "env" "illegalImportResult" (func $legalimport$illegalImportResult (result i32)))
 (export "illegalResult" (func $legalstub$illegalResult))
 (export "imports" (func $imports))
 (func $imports (; 3 ;) (; has Stack IR ;) (result i32)
  (i32.wrap_i64
   (i64.or
    (i64.extend_i32_u
     (call $legalimport$illegalImportResult)
    )
    (i64.shl
     (i64.extend_i32_u
      (call $getTempRet0)
     )
     (i64.const 32)
    )
   )
  )
 )
 (func $legalstub$illegalResult (; 4 ;) (; has Stack IR ;) (result i32)
  (call $setTempRet0
   (i32.const 2)
  )
  (i32.const 1)
 )
)