forked from WebAssembly/binaryen
/
20021120-2.c.s
62 lines (57 loc) · 1.46 KB
/
20021120-2.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
.text
.file "/usr/local/google/home/dschuff/s/wasm-waterfall/src/work/gcc/gcc/testsuite/gcc.c-torture/execute/20021120-2.c"
.section .text.foo,"ax",@progbits
.hidden foo
.globl foo
.type foo,@function
foo: # @foo
.param i32
# BB#0: # %entry
i32.const $push1=, 0
i32.const $push0=, 10
i32.store g1($pop1), $pop0
i32.const $push4=, 0
i32.const $push2=, 7930
i32.div_s $push3=, $pop2, $0
i32.store g2($pop4), $pop3
# fallthrough-return
.endfunc
.Lfunc_end0:
.size foo, .Lfunc_end0-foo
.section .text.main,"ax",@progbits
.hidden main
.globl main
.type main,@function
main: # @main
.result i32
# BB#0: # %if.end
i32.const $push1=, 0
i32.const $push0=, 10
i32.store g2($pop1), $pop0
i32.const $push4=, 0
i32.const $push3=, 10
i32.store g1($pop4), $pop3
i32.const $push2=, 0
call exit@FUNCTION, $pop2
unreachable
.endfunc
.Lfunc_end1:
.size main, .Lfunc_end1-main
.hidden g1 # @g1
.type g1,@object
.section .bss.g1,"aw",@nobits
.globl g1
.p2align 2
g1:
.int32 0 # 0x0
.size g1, 4
.hidden g2 # @g2
.type g2,@object
.section .bss.g2,"aw",@nobits
.globl g2
.p2align 2
g2:
.int32 0 # 0x0
.size g2, 4
.ident "clang version 4.0.0 (trunk 283460) (llvm/trunk 283507)"
.functype exit, void, i32