forked from WebAssembly/binaryen
/
931004-4.c.s
107 lines (104 loc) · 3.09 KB
/
931004-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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
.text
.file "/usr/local/google/home/dschuff/s/wasm-waterfall/src/work/gcc/gcc/testsuite/gcc.c-torture/execute/931004-4.c"
.section .text.f,"ax",@progbits
.hidden f
.globl f
.type f,@function
f: # @f
.param i32, i32
.result i32
.local i32, i32, i32
# BB#0: # %entry
i32.const $push13=, 0
i32.const $push10=, 0
i32.load $push11=, __stack_pointer($pop10)
i32.const $push12=, 16
i32.sub $push20=, $pop11, $pop12
tee_local $push19=, $4=, $pop20
i32.store __stack_pointer($pop13), $pop19
i32.store 12($4), $1
i32.const $push18=, 4
i32.add $push1=, $1, $pop18
i32.store 12($4), $pop1
block
block
block
i32.const $push17=, 1
i32.lt_s $push2=, $0, $pop17
br_if 0, $pop2 # 0: down to label2
# BB#1: # %for.body.preheader
i32.const $3=, 10
.LBB0_2: # %for.body
# =>This Inner Loop Header: Depth=1
loop # label3:
i32.load16_s $push3=, 0($1)
i32.ne $push4=, $3, $pop3
br_if 2, $pop4 # 2: down to label1
# BB#3: # %for.cond
# in Loop: Header=BB0_2 Depth=1
i32.const $push24=, 8
i32.add $push5=, $1, $pop24
i32.store 12($4), $pop5
i32.const $push23=, 4
i32.add $1=, $1, $pop23
i32.const $push22=, -9
i32.add $2=, $3, $pop22
i32.const $push21=, 1
i32.add $push0=, $3, $pop21
copy_local $3=, $pop0
i32.lt_s $push6=, $2, $0
br_if 0, $pop6 # 0: up to label3
.LBB0_4: # %for.end
end_loop
end_block # label2:
i32.load $push7=, 0($1)
i32.const $push8=, 123
i32.ne $push9=, $pop7, $pop8
br_if 1, $pop9 # 1: down to label0
# BB#5: # %if.end10
i32.const $push16=, 0
i32.const $push14=, 16
i32.add $push15=, $4, $pop14
i32.store __stack_pointer($pop16), $pop15
return $1
.LBB0_6: # %if.then
end_block # label1:
call abort@FUNCTION
unreachable
.LBB0_7: # %if.then9
end_block # label0:
call abort@FUNCTION
unreachable
.endfunc
.Lfunc_end0:
.size f, .Lfunc_end0-f
.section .text.main,"ax",@progbits
.hidden main
.globl main
.type main,@function
main: # @main
.result i32
.local i32
# BB#0: # %entry
i32.const $push7=, 0
i32.const $push4=, 0
i32.load $push5=, __stack_pointer($pop4)
i32.const $push6=, 16
i32.sub $push9=, $pop5, $pop6
tee_local $push8=, $0=, $pop9
i32.store __stack_pointer($pop7), $pop8
i64.const $push0=, 528280977420
i64.store 8($0), $pop0
i64.const $push1=, 47244640266
i64.store 0($0), $pop1
i32.const $push2=, 3
i32.call $drop=, f@FUNCTION, $pop2, $0
i32.const $push3=, 0
call exit@FUNCTION, $pop3
unreachable
.endfunc
.Lfunc_end1:
.size main, .Lfunc_end1-main
.ident "clang version 4.0.0 (trunk 283460) (llvm/trunk 283507)"
.functype abort, void
.functype exit, void, i32