summaryrefslogtreecommitdiff
path: root/test/i64-setTempRet0.fromasm.clamp
blob: 74c231fd918e05de3556ed57691f88d8da273db0 (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
(module
 (type $legaltype$illegalImportResult (func (result i32)))
 (import "env" "memory" (memory $memory 256 256))
 (data (get_global $memoryBase) "i64-setTempRet0.asm.js")
 (import "env" "memoryBase" (global $memoryBase 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 ;) (; has Stack IR ;) (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 ;) (; has Stack IR ;) (result i32)
  (set_global $tempRet0
   (i32.const 2)
  )
  (i32.const 1)
 )
)