forked from WebAssembly/binaryen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nestfunc-4.c.s
91 lines (86 loc) · 2.37 KB
/
nestfunc-4.c.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
.text
.file "/b/build/slave/linux/build/src/src/work/gcc/gcc/testsuite/gcc.c-torture/execute/nestfunc-4.c"
.section .text.main,"ax",@progbits
.hidden main
.globl main
.type main,@function
main: # @main
.result i32
.local i32
# BB#0: # %if.then
i32.const $push0=, 0
i32.const $push10=, 0
i32.load $push9=, level($pop10)
tee_local $push8=, $0=, $pop9
i32.const $push1=, 2040
i32.const $push7=, 2040
i32.gt_s $push2=, $0, $pop7
i32.select $push3=, $pop8, $pop1, $pop2
i32.const $push4=, 1
i32.add $push5=, $pop3, $pop4
i32.store $drop=, level($pop0), $pop5
i32.const $push6=, 0
call exit@FUNCTION, $pop6
unreachable
.endfunc
.Lfunc_end0:
.size main, .Lfunc_end0-main
.section .text.foo,"ax",@progbits
.hidden foo
.globl foo
.type foo,@function
foo: # @foo
.result i32
.local i32
# BB#0: # %entry
i32.const $push0=, 0
i32.const $push10=, 0
i32.load $push9=, level($pop10)
tee_local $push8=, $0=, $pop9
i32.const $push1=, 2040
i32.const $push7=, 2040
i32.gt_s $push2=, $0, $pop7
i32.select $push3=, $pop8, $pop1, $pop2
i32.const $push4=, 1
i32.add $push5=, $pop3, $pop4
i32.store $drop=, level($pop0), $pop5
i32.const $push6=, -42
# fallthrough-return: $pop6
.endfunc
.Lfunc_end1:
.size foo, .Lfunc_end1-foo
.section .text.bar,"ax",@progbits
.hidden bar
.globl bar
.type bar,@function
bar: # @bar
.result i32
.local i32, i32
# BB#0: # %entry
i32.const $1=, -42
block
i32.const $push0=, 0
i32.load $push5=, level($pop0)
tee_local $push4=, $0=, $pop5
i32.const $push1=, 2040
i32.gt_s $push2=, $pop4, $pop1
br_if 0, $pop2 # 0: down to label0
# BB#1: # %cond.false
i32.call $1=, foo@FUNCTION
.LBB2_2: # %cond.end
end_block # label0:
i32.sub $push3=, $1, $0
# fallthrough-return: $pop3
.endfunc
.Lfunc_end2:
.size bar, .Lfunc_end2-bar
.hidden level # @level
.type level,@object
.section .bss.level,"aw",@nobits
.globl level
.p2align 2
level:
.int32 0 # 0x0
.size level, 4
.ident "clang version 3.9.0 "
.functype exit, void, i32