forked from WebAssembly/binaryen
/
20010118-1.c.s
80 lines (76 loc) · 2.3 KB
/
20010118-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
.text
.file "/usr/local/google/home/dschuff/s/wasm-waterfall/src/work/gcc/gcc/testsuite/gcc.c-torture/execute/20010118-1.c"
.section .text.foo,"ax",@progbits
.hidden foo
.globl foo
.type foo,@function
foo: # @foo
.param i32, i32, i32, i32, i32
# BB#0: # %entry
# fallthrough-return
.endfunc
.Lfunc_end0:
.size foo, .Lfunc_end0-foo
.section .text.bar,"ax",@progbits
.hidden bar
.globl bar
.type bar,@function
bar: # @bar
.param i32, i32, i32, i32, i32
# BB#0: # %entry
block
block
i32.load $push0=, 0($0)
i32.ne $push1=, $pop0, $1
br_if 0, $pop1 # 0: down to label1
# BB#1: # %lor.lhs.false
i32.const $push2=, 4
i32.add $push3=, $0, $pop2
i32.load $push4=, 0($pop3)
i32.eq $push5=, $pop4, $2
br_if 1, $pop5 # 1: down to label0
.LBB1_2: # %if.then
end_block # label1:
i32.store 8($0), $3
i32.store 12($0), $4
i32.load $push6=, 16($0)
f64.convert_s/i32 $push7=, $pop6
f64.const $push8=, 0x0p0
f64.mul $push9=, $pop7, $pop8
f64.const $push10=, 0x1p-1
f64.mul $push11=, $pop9, $pop10
i32.trunc_s/f64 $push12=, $pop11
i32.add $push13=, $pop12, $1
i32.store 0($0), $pop13
i32.const $push14=, 4
i32.add $push15=, $0, $pop14
i32.load $push16=, 20($0)
f64.convert_s/i32 $push17=, $pop16
f64.const $push23=, 0x0p0
f64.mul $push18=, $pop17, $pop23
f64.const $push22=, 0x1p-1
f64.mul $push19=, $pop18, $pop22
i32.trunc_s/f64 $push20=, $pop19
i32.add $push21=, $pop20, $2
i32.store 0($pop15), $pop21
.LBB1_3: # %if.end
end_block # label0:
# fallthrough-return
.endfunc
.Lfunc_end1:
.size bar, .Lfunc_end1-bar
.section .text.main,"ax",@progbits
.hidden main
.globl main
.type main,@function
main: # @main
.result i32
# BB#0: # %if.end
i32.const $push0=, 0
call exit@FUNCTION, $pop0
unreachable
.endfunc
.Lfunc_end2:
.size main, .Lfunc_end2-main
.ident "clang version 4.0.0 (trunk 283460) (llvm/trunk 283507)"
.functype exit, void, i32