]> git.proxmox.com Git - rustc.git/blob - src/binaryen/test/i64-setTempRet0.fromasm.clamp
New upstream version 1.23.0+dfsg1
[rustc.git] / src / binaryen / test / i64-setTempRet0.fromasm.clamp
1 (module
2 (type $FUNCSIG$j (func (result i64)))
3 (type $legaltype$illegalImportResult (func (result i32)))
4 (import "env" "illegalImportResult" (func $illegalImportResult (result i64)))
5 (import "env" "illegalImportResult" (func $legalimport$illegalImportResult (result i32)))
6 (import "env" "memory" (memory $0 256 256))
7 (import "env" "table" (table 0 0 anyfunc))
8 (import "env" "memoryBase" (global $memoryBase i32))
9 (import "env" "tableBase" (global $tableBase i32))
10 (global $tempRet0 (mut i32) (i32.const 0))
11 (data (get_global $memoryBase) "i64-setTempRet0.asm.js")
12 (export "illegalResult" (func $legalstub$illegalResult))
13 (export "imports" (func $imports))
14 (func $illegalResult (; 2 ;) (result i64)
15 (i64.const 8589934593)
16 )
17 (func $imports (; 3 ;) (result i32)
18 (i32.wrap/i64
19 (call $legalfunc$illegalImportResult)
20 )
21 )
22 (func $legalstub$illegalResult (; 4 ;) (result i32)
23 (local $0 i64)
24 (set_local $0
25 (call $illegalResult)
26 )
27 (set_global $tempRet0
28 (i32.wrap/i64
29 (i64.shr_u
30 (get_local $0)
31 (i64.const 32)
32 )
33 )
34 )
35 (i32.wrap/i64
36 (get_local $0)
37 )
38 )
39 (func $legalfunc$illegalImportResult (; 5 ;) (result i64)
40 (i64.or
41 (i64.extend_u/i32
42 (call $legalimport$illegalImportResult)
43 )
44 (i64.shl
45 (i64.extend_u/i32
46 (get_global $tempRet0)
47 )
48 (i64.const 32)
49 )
50 )
51 )
52 )