]> git.proxmox.com Git - rustc.git/blob - src/binaryen/test/torture-s/20071029-1.c.s
New upstream version 1.23.0+dfsg1
[rustc.git] / src / binaryen / test / torture-s / 20071029-1.c.s
1 .text
2 .file "20071029-1.c"
3 .section .text.test,"ax",@progbits
4 .hidden test # -- Begin function test
5 .globl test
6 .type test,@function
7 test: # @test
8 .param i32
9 .local i32, i32, i32
10 # BB#0: # %entry
11 i32.load $3=, 0($0)
12 i32.const $push0=, 0
13 i32.const $push20=, 0
14 i32.load $push19=, test.i($pop20)
15 tee_local $push18=, $2=, $pop19
16 i32.const $push1=, 1
17 i32.add $push17=, $pop18, $pop1
18 tee_local $push16=, $1=, $pop17
19 i32.store test.i($pop0), $pop16
20 block
21 block
22 i32.ne $push2=, $3, $2
23 br_if 0, $pop2 # 0: down to label1
24 # BB#1: # %if.end
25 i32.load $push3=, 4($0)
26 br_if 0, $pop3 # 0: down to label1
27 # BB#2: # %lor.lhs.false
28 i32.load $push4=, 8($0)
29 br_if 0, $pop4 # 0: down to label1
30 # BB#3: # %lor.lhs.false6
31 i32.load $push5=, 12($0)
32 br_if 0, $pop5 # 0: down to label1
33 # BB#4: # %lor.lhs.false10
34 i32.load $push6=, 16($0)
35 br_if 0, $pop6 # 0: down to label1
36 # BB#5: # %lor.lhs.false13
37 i32.load $push7=, 20($0)
38 br_if 0, $pop7 # 0: down to label1
39 # BB#6: # %lor.lhs.false16
40 i32.load $push8=, 24($0)
41 br_if 0, $pop8 # 0: down to label1
42 # BB#7: # %lor.lhs.false20
43 i32.load $push9=, 28($0)
44 br_if 0, $pop9 # 0: down to label1
45 # BB#8: # %lor.lhs.false23
46 i32.load $push10=, 32($0)
47 br_if 0, $pop10 # 0: down to label1
48 # BB#9: # %lor.lhs.false26
49 i32.load $push11=, 36($0)
50 br_if 0, $pop11 # 0: down to label1
51 # BB#10: # %lor.lhs.false29
52 i32.load $push12=, 40($0)
53 br_if 0, $pop12 # 0: down to label1
54 # BB#11: # %if.end34
55 i32.const $push13=, 20
56 i32.eq $push14=, $1, $pop13
57 br_if 1, $pop14 # 1: down to label0
58 # BB#12: # %if.end37
59 return
60 .LBB0_13: # %if.then
61 end_block # label1:
62 call abort@FUNCTION
63 unreachable
64 .LBB0_14: # %if.then36
65 end_block # label0:
66 i32.const $push15=, 0
67 call exit@FUNCTION, $pop15
68 unreachable
69 .endfunc
70 .Lfunc_end0:
71 .size test, .Lfunc_end0-test
72 # -- End function
73 .section .text.foo,"ax",@progbits
74 .hidden foo # -- Begin function foo
75 .globl foo
76 .type foo,@function
77 foo: # @foo
78 .param i32
79 .local i32, i32, i32, i32, i32, i32, i32, i32
80 # BB#0: # %entry
81 i32.const $push10=, 0
82 i32.const $push8=, 0
83 i32.load $push7=, __stack_pointer($pop8)
84 i32.const $push9=, 64
85 i32.sub $push19=, $pop7, $pop9
86 tee_local $push18=, $8=, $pop19
87 i32.store __stack_pointer($pop10), $pop18
88 i32.const $push17=, 1
89 i32.add $0=, $0, $pop17
90 i32.const $push11=, 8
91 i32.add $push12=, $8, $pop11
92 i32.const $push0=, 4
93 i32.or $push16=, $pop12, $pop0
94 tee_local $push15=, $1=, $pop16
95 i32.const $push1=, 48
96 i32.add $2=, $pop15, $pop1
97 i32.const $push2=, 40
98 i32.add $3=, $1, $pop2
99 i32.const $push3=, 32
100 i32.add $4=, $1, $pop3
101 i32.const $push4=, 24
102 i32.add $5=, $1, $pop4
103 i32.const $push5=, 16
104 i32.add $6=, $1, $pop5
105 i32.const $push6=, 8
106 i32.add $7=, $1, $pop6
107 .LBB1_1: # %again
108 # =>This Inner Loop Header: Depth=1
109 loop # label2:
110 i64.const $push27=, 0
111 i64.store 0($1):p2align=2, $pop27
112 i32.const $push26=, 0
113 i32.store 0($2), $pop26
114 i64.const $push25=, 0
115 i64.store 0($3):p2align=2, $pop25
116 i64.const $push24=, 0
117 i64.store 0($4):p2align=2, $pop24
118 i64.const $push23=, 0
119 i64.store 0($5):p2align=2, $pop23
120 i64.const $push22=, 0
121 i64.store 0($6):p2align=2, $pop22
122 i64.const $push21=, 0
123 i64.store 0($7):p2align=2, $pop21
124 i32.store 8($8), $0
125 i32.const $push20=, 1
126 i32.add $0=, $0, $pop20
127 i32.const $push13=, 8
128 i32.add $push14=, $8, $pop13
129 call test@FUNCTION, $pop14
130 br 0 # 0: up to label2
131 .LBB1_2:
132 end_loop
133 .endfunc
134 .Lfunc_end1:
135 .size foo, .Lfunc_end1-foo
136 # -- End function
137 .section .text.main,"ax",@progbits
138 .hidden main # -- Begin function main
139 .globl main
140 .type main,@function
141 main: # @main
142 .result i32
143 # BB#0: # %if.end6
144 i32.const $push0=, 10
145 call foo@FUNCTION, $pop0
146 unreachable
147 .endfunc
148 .Lfunc_end2:
149 .size main, .Lfunc_end2-main
150 # -- End function
151 .type test.i,@object # @test.i
152 .section .data.test.i,"aw",@progbits
153 .p2align 2
154 test.i:
155 .int32 11 # 0xb
156 .size test.i, 4
157
158
159 .ident "clang version 6.0.0 (https://llvm.googlesource.com/clang.git a1774cccdccfa673c057f93ccf23bc2d8cb04932) (https://llvm.googlesource.com/llvm.git fc50e1c6121255333bc42d6faf2b524c074eae25)"
160 .functype abort, void
161 .functype exit, void, i32