]> git.proxmox.com Git - rustc.git/blob - src/binaryen/test/torture-s/pr58209.c.s
New upstream version 1.23.0+dfsg1
[rustc.git] / src / binaryen / test / torture-s / pr58209.c.s
1 .text
2 .file "pr58209.c"
3 .section .text.foo,"ax",@progbits
4 .hidden foo # -- Begin function foo
5 .globl foo
6 .type foo,@function
7 foo: # @foo
8 .param i32
9 .result i32
10 # BB#0: # %entry
11 block
12 i32.eqz $push6=, $0
13 br_if 0, $pop6 # 0: down to label0
14 # BB#1: # %if.end
15 i32.const $push0=, -1
16 i32.add $push1=, $0, $pop0
17 i32.call $push2=, foo@FUNCTION, $pop1
18 i32.const $push3=, 4
19 i32.add $push4=, $pop2, $pop3
20 return $pop4
21 .LBB0_2: # %return
22 end_block # label0:
23 i32.const $push5=, buf
24 # fallthrough-return: $pop5
25 .endfunc
26 .Lfunc_end0:
27 .size foo, .Lfunc_end0-foo
28 # -- End function
29 .section .text.bar,"ax",@progbits
30 .hidden bar # -- Begin function bar
31 .globl bar
32 .type bar,@function
33 bar: # @bar
34 .param i32
35 .result i32
36 # BB#0: # %entry
37 block
38 i32.eqz $push6=, $0
39 br_if 0, $pop6 # 0: down to label1
40 # BB#1: # %if.end
41 i32.const $push0=, -1
42 i32.add $push1=, $0, $pop0
43 i32.call $push2=, foo@FUNCTION, $pop1
44 i32.const $push3=, 4
45 i32.add $push4=, $pop2, $pop3
46 return $pop4
47 .LBB1_2:
48 end_block # label1:
49 i32.const $push5=, buf
50 # fallthrough-return: $pop5
51 .endfunc
52 .Lfunc_end1:
53 .size bar, .Lfunc_end1-bar
54 # -- End function
55 .section .text.main,"ax",@progbits
56 .hidden main # -- Begin function main
57 .globl main
58 .type main,@function
59 main: # @main
60 .result i32
61 .local i32, i32, i32
62 # BB#0: # %entry
63 i32.const $2=, 0
64 i32.const $1=, buf-4
65 .LBB2_1: # %for.body
66 # =>This Inner Loop Header: Depth=1
67 block
68 loop # label3:
69 i32.const $push13=, 4
70 i32.add $push12=, $1, $pop13
71 tee_local $push11=, $1=, $pop12
72 i32.call $push10=, foo@FUNCTION, $2
73 tee_local $push9=, $0=, $pop10
74 i32.ne $push1=, $pop11, $pop9
75 br_if 1, $pop1 # 1: down to label2
76 # BB#2: # %lor.lhs.false
77 # in Loop: Header=BB2_1 Depth=1
78 block
79 block
80 i32.eqz $push18=, $2
81 br_if 0, $pop18 # 0: down to label5
82 # BB#3: # %if.end.i
83 # in Loop: Header=BB2_1 Depth=1
84 i32.const $push15=, -1
85 i32.add $push2=, $2, $pop15
86 i32.call $push3=, foo@FUNCTION, $pop2
87 i32.const $push14=, 4
88 i32.add $push7=, $pop3, $pop14
89 i32.eq $push5=, $pop7, $0
90 br_if 1, $pop5 # 1: down to label4
91 br 3 # 3: down to label2
92 .LBB2_4: # in Loop: Header=BB2_1 Depth=1
93 end_block # label5:
94 i32.const $push8=, buf
95 i32.ne $push4=, $pop8, $0
96 br_if 2, $pop4 # 2: down to label2
97 .LBB2_5: # %for.cond
98 # in Loop: Header=BB2_1 Depth=1
99 end_block # label4:
100 i32.const $push17=, 25
101 i32.gt_u $0=, $2, $pop17
102 i32.const $push16=, 1
103 i32.add $push0=, $2, $pop16
104 copy_local $2=, $pop0
105 i32.eqz $push19=, $0
106 br_if 0, $pop19 # 0: up to label3
107 # BB#6: # %for.end
108 end_loop
109 i32.const $push6=, 0
110 return $pop6
111 .LBB2_7: # %if.then
112 end_block # label2:
113 call abort@FUNCTION
114 unreachable
115 .endfunc
116 .Lfunc_end2:
117 .size main, .Lfunc_end2-main
118 # -- End function
119 .hidden buf # @buf
120 .type buf,@object
121 .section .bss.buf,"aw",@nobits
122 .globl buf
123 .p2align 4
124 buf:
125 .skip 4096
126 .size buf, 4096
127
128
129 .ident "clang version 6.0.0 (https://llvm.googlesource.com/clang.git a1774cccdccfa673c057f93ccf23bc2d8cb04932) (https://llvm.googlesource.com/llvm.git fc50e1c6121255333bc42d6faf2b524c074eae25)"
130 .functype abort, void