forked from WebAssembly/binaryen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pr43008.c.s
70 lines (66 loc) · 1.86 KB
/
pr43008.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
.text
.file "/b/build/slave/linux/build/src/src/work/gcc/gcc/testsuite/gcc.c-torture/execute/pr43008.c"
.section .text.my_alloc,"ax",@progbits
.hidden my_alloc
.globl my_alloc
.type my_alloc,@function
my_alloc: # @my_alloc
.result i32
.local i32
# BB#0: # %entry
i32.const $push0=, 4
i32.call $push3=, __builtin_malloc@FUNCTION, $pop0
tee_local $push2=, $0=, $pop3
i32.const $push1=, i
i32.store $drop=, 0($pop2), $pop1
copy_local $push4=, $0
# fallthrough-return: $pop4
.endfunc
.Lfunc_end0:
.size my_alloc, .Lfunc_end0-my_alloc
.section .text.main,"ax",@progbits
.hidden main
.globl main
.type main,@function
main: # @main
.result i32
.local i32, i32
# BB#0: # %entry
i32.const $push0=, 4
i32.call $push11=, __builtin_malloc@FUNCTION, $pop0
tee_local $push10=, $1=, $pop11
i32.const $push1=, i
i32.store $0=, 0($pop10), $pop1
i32.const $push9=, 4
i32.call $push2=, __builtin_malloc@FUNCTION, $pop9
i32.store $drop=, 0($pop2), $0
i32.load $push8=, 0($1)
tee_local $push7=, $1=, $pop8
i32.const $push3=, 1
i32.store $drop=, 0($pop7), $pop3
i32.const $push4=, 0
i32.const $push6=, 0
i32.store $0=, i($pop4), $pop6
block
i32.load $push5=, 0($1)
br_if 0, $pop5 # 0: down to label0
# BB#1: # %if.end
return $0
.LBB1_2: # %if.then
end_block # label0:
call abort@FUNCTION
unreachable
.endfunc
.Lfunc_end1:
.size main, .Lfunc_end1-main
.hidden i # @i
.type i,@object
.section .bss.i,"aw",@nobits
.globl i
.p2align 2
i:
.int32 0 # 0x0
.size i, 4
.ident "clang version 3.9.0 "
.functype __builtin_malloc, i32
.functype abort, void