forked from WebAssembly/binaryen
/
indirect-import.s
53 lines (51 loc) · 1.46 KB
/
indirect-import.s
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
.text
.file "/s/llvm-upstream/llvm/test/CodeGen/WebAssembly/indirect-import.ll"
.hidden bar
.globl bar
.type bar,@function
bar:
.result i32
.local i32, i32
i32.const $push13=, 0
i32.const $push10=, 0
i32.load $push11=, __stack_pointer($pop10)
i32.const $push12=, 32
i32.sub $push19=, $pop11, $pop12
tee_local $push18=, $1=, $pop19
i32.store __stack_pointer($pop13), $pop18
i32.const $push0=, extern_fd@FUNCTION
i32.store 28($1), $pop0
i32.const $push1=, extern_vj@FUNCTION
i32.store 24($1), $pop1
i64.const $push2=, 1
call extern_vj@FUNCTION, $pop2
i32.const $push3=, extern_v@FUNCTION
i32.store 20($1), $pop3
call extern_v@FUNCTION
i32.const $push4=, extern_ijidf@FUNCTION
i32.store 16($1), $pop4
i64.const $push17=, 1
i32.const $push7=, 2
f64.const $push6=, 0x1.8p1
f32.const $push5=, 0x1p2
i32.call $drop=, extern_ijidf@FUNCTION, $pop17, $pop7, $pop6, $pop5
i32.const $push8=, extern_struct@FUNCTION
i32.store 12($1), $pop8
i32.const $push9=, extern_sret@FUNCTION
i32.store 8($1), $pop9
i32.load $0=, 28($1)
i32.const $push16=, 0
i32.const $push14=, 32
i32.add $push15=, $1, $pop14
i32.store __stack_pointer($pop16), $pop15
return $0
.endfunc
.Lfunc_end0:
.size bar, .Lfunc_end0-bar
.functype extern_fd, f32, f64
.functype extern_vj, void, i64
.functype extern_v, void
.functype extern_ijidf, i32, i64, i32, f64, f32
.functype extern_struct, void, i32
.functype extern_sret, void, i32
.functype extern_i128ret, void, i32, i64