forked from WebAssembly/binaryen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pr42614.c.s
74 lines (70 loc) · 2.1 KB
/
pr42614.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
.text
.file "/b/build/slave/linux/build/src/src/work/gcc/gcc/testsuite/gcc.c-torture/execute/pr42614.c"
.section .text.init,"ax",@progbits
.hidden init
.globl init
.type init,@function
init: # @init
.result i32
# BB#0: # %entry
i32.const $push0=, 2
i32.call $push1=, malloc@FUNCTION, $pop0
# fallthrough-return: $pop1
.endfunc
.Lfunc_end0:
.size init, .Lfunc_end0-init
.section .text.expect_func,"ax",@progbits
.hidden expect_func
.globl expect_func
.type expect_func,@function
expect_func: # @expect_func
.param i32, i32
# BB#0: # %entry
block
i32.eqz $push0=, $0
br_if 0, $pop0 # 0: down to label0
# BB#1: # %if.end
i32.eqz $push1=, $1
br_if 0, $pop1 # 0: down to label0
# BB#2: # %if.end6
return
.LBB1_3: # %if.then5
end_block # label0:
call abort@FUNCTION
unreachable
.endfunc
.Lfunc_end1:
.size expect_func, .Lfunc_end1-expect_func
.section .text.main,"ax",@progbits
.hidden main
.globl main
.type main,@function
main: # @main
.result 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 $push13=, __stack_pointer($pop5), $pop11
tee_local $push12=, $1=, $pop13
i32.const $push0=, 0
i32.store8 $0=, 15($pop12), $pop0
i32.const $push1=, 1
i32.const $push9=, 15
i32.add $push10=, $1, $pop9
call expect_func@FUNCTION, $pop1, $pop10
i32.const $push8=, 0
i32.const $push6=, 16
i32.add $push7=, $1, $pop6
i32.store $drop=, __stack_pointer($pop8), $pop7
copy_local $push14=, $0
# fallthrough-return: $pop14
.endfunc
.Lfunc_end2:
.size main, .Lfunc_end2-main
.ident "clang version 3.9.0 "
.functype malloc, i32, i32
.functype abort, void