forked from WebAssembly/binaryen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
20080604-1.c.s
94 lines (88 loc) · 2.37 KB
/
20080604-1.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
92
93
94
.text
.file "/b/build/slave/linux/build/src/src/work/gcc/gcc/testsuite/gcc.c-torture/execute/20080604-1.c"
.section .text.foo,"ax",@progbits
.hidden foo
.globl foo
.type foo,@function
foo: # @foo
# BB#0: # %entry
block
i32.const $push0=, 0
i32.load $push1=, x($pop0)
i32.eqz $push2=, $pop1
br_if 0, $pop2 # 0: down to label0
# BB#1: # %if.end
return
.LBB0_2: # %if.then
end_block # label0:
call abort@FUNCTION
unreachable
.endfunc
.Lfunc_end0:
.size foo, .Lfunc_end0-foo
.section .text.baz,"ax",@progbits
.hidden baz
.globl baz
.type baz,@function
baz: # @baz
.param i32
.local i32, i32
# BB#0: # %entry
i32.const $push5=, 0
i32.const $push2=, 0
i32.load $push3=, __stack_pointer($pop2)
i32.const $push4=, 16
i32.sub $push11=, $pop3, $pop4
i32.store $push15=, __stack_pointer($pop5), $pop11
tee_local $push14=, $2=, $pop15
i32.const $push9=, 12
i32.add $push10=, $pop14, $pop9
i32.const $push0=, x
i32.select $push13=, $pop10, $pop0, $0
tee_local $push12=, $0=, $pop13
i32.const $push1=, .L.str
i32.store $1=, 0($pop12), $pop1
call foo@FUNCTION
i32.store $drop=, 0($0), $1
i32.const $push8=, 0
i32.const $push6=, 16
i32.add $push7=, $2, $pop6
i32.store $drop=, __stack_pointer($pop8), $pop7
# fallthrough-return
.endfunc
.Lfunc_end1:
.size baz, .Lfunc_end1-baz
.section .text.main,"ax",@progbits
.hidden main
.globl main
.type main,@function
main: # @main
.result i32
.local i32
# BB#0: # %if.end
i32.const $push1=, 0
i32.const $push0=, .L.str
i32.store $0=, x($pop1), $pop0
call foo@FUNCTION
i32.const $push3=, 0
i32.store $drop=, x($pop3), $0
i32.const $push2=, 0
# fallthrough-return: $pop2
.endfunc
.Lfunc_end2:
.size main, .Lfunc_end2-main
.hidden x # @x
.type x,@object
.section .bss.x,"aw",@nobits
.globl x
.p2align 2
x:
.skip 4
.size x, 4
.type .L.str,@object # @.str
.section .rodata.str1.1,"aMS",@progbits,1
.L.str:
.asciz "Everything OK"
.size .L.str, 14
.ident "clang version 3.9.0 "
.functype abort, void