]> git.proxmox.com Git - rustc.git/blob - src/binaryen/test/torture-s/pr39339.c.s
New upstream version 1.23.0+dfsg1
[rustc.git] / src / binaryen / test / torture-s / pr39339.c.s
1 .text
2 .file "pr39339.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, i32, i32, i32
9 .local i32, i32, i32
10 # BB#0: # %entry
11 i32.const $push21=, 12
12 i32.add $push1=, $0, $pop21
13 i32.load $6=, 0($pop1)
14 i32.load $push3=, 0($3)
15 i32.load $push4=, 0($pop3)
16 i32.load $push0=, 4($0)
17 i32.const $push2=, 3
18 i32.shl $push20=, $pop0, $pop2
19 tee_local $push19=, $5=, $pop20
20 i32.add $push18=, $pop4, $pop19
21 tee_local $push17=, $0=, $pop18
22 i32.store 0($pop17), $1
23 i32.const $push7=, -16
24 i32.and $push8=, $6, $pop7
25 i32.const $push5=, 15
26 i32.and $push6=, $2, $pop5
27 i32.or $push16=, $pop8, $pop6
28 tee_local $push15=, $6=, $pop16
29 i32.store 4($0), $pop15
30 block
31 i32.const $push10=, 2
32 i32.lt_s $push11=, $2, $pop10
33 br_if 0, $pop11 # 0: down to label0
34 # BB#1: # %for.body.preheader
35 i32.const $push9=, 4194304
36 i32.or $4=, $6, $pop9
37 i32.const $push23=, -1
38 i32.add $0=, $2, $pop23
39 i32.const $push22=, 12
40 i32.add $2=, $5, $pop22
41 .LBB0_2: # %for.body
42 # =>This Inner Loop Header: Depth=1
43 loop # label1:
44 i32.load $push12=, 0($3)
45 i32.load $push13=, 0($pop12)
46 i32.add $push30=, $pop13, $2
47 tee_local $push29=, $6=, $pop30
48 i32.store 0($pop29), $4
49 i32.const $push28=, -4
50 i32.add $push14=, $6, $pop28
51 i32.store 0($pop14), $1
52 i32.const $push27=, 8
53 i32.add $2=, $2, $pop27
54 i32.const $push26=, -1
55 i32.add $push25=, $0, $pop26
56 tee_local $push24=, $0=, $pop25
57 br_if 0, $pop24 # 0: up to label1
58 .LBB0_3: # %for.end
59 end_loop
60 end_block # label0:
61 # fallthrough-return
62 .endfunc
63 .Lfunc_end0:
64 .size foo, .Lfunc_end0-foo
65 # -- End function
66 .section .text.main,"ax",@progbits
67 .hidden main # -- Begin function main
68 .globl main
69 .type main,@function
70 main: # @main
71 .result i32
72 .local i32
73 # BB#0: # %entry
74 i32.const $push22=, 0
75 i32.const $push20=, 0
76 i32.load $push19=, __stack_pointer($pop20)
77 i32.const $push21=, 64
78 i32.sub $push38=, $pop19, $pop21
79 tee_local $push37=, $0=, $pop38
80 i32.store __stack_pointer($pop22), $pop37
81 i32.const $push2=, 56
82 i32.add $push3=, $0, $pop2
83 i32.const $push0=, 0
84 i64.load $push1=, .Lmain.e+8($pop0):p2align=2
85 i64.store 0($pop3), $pop1
86 i32.const $push36=, 0
87 i64.load $push4=, .Lmain.e($pop36):p2align=2
88 i64.store 48($0), $pop4
89 i32.const $push5=, 4
90 i32.store 12($0), $pop5
91 i32.const $push26=, 16
92 i32.add $push27=, $0, $pop26
93 i32.store 8($0), $pop27
94 i32.const $push6=, 40
95 i32.add $push7=, $0, $pop6
96 i64.const $push8=, 0
97 i64.store 0($pop7), $pop8
98 i32.const $push9=, 32
99 i32.add $push10=, $0, $pop9
100 i64.const $push35=, 0
101 i64.store 0($pop10), $pop35
102 i32.const $push11=, 255
103 i32.store8 4($0), $pop11
104 i64.const $push34=, 0
105 i64.store 24($0), $pop34
106 i64.const $push33=, 0
107 i64.store 16($0), $pop33
108 i32.const $push28=, 8
109 i32.add $push29=, $0, $pop28
110 i32.store 0($0), $pop29
111 i32.const $push30=, 48
112 i32.add $push31=, $0, $pop30
113 i32.const $push13=, 65
114 i32.const $push12=, 2
115 call foo@FUNCTION, $pop31, $pop13, $pop12, $0
116 block
117 i32.load $push14=, 20($0)
118 i32.const $push32=, 1434451954
119 i32.ne $push15=, $pop14, $pop32
120 br_if 0, $pop15 # 0: down to label2
121 # BB#1: # %if.end
122 i32.load $push16=, 28($0)
123 i32.const $push39=, 1434451954
124 i32.ne $push17=, $pop16, $pop39
125 br_if 0, $pop17 # 0: down to label2
126 # BB#2: # %if.end13
127 i32.const $push25=, 0
128 i32.const $push23=, 64
129 i32.add $push24=, $0, $pop23
130 i32.store __stack_pointer($pop25), $pop24
131 i32.const $push18=, 0
132 return $pop18
133 .LBB1_3: # %if.then
134 end_block # label2:
135 call abort@FUNCTION
136 unreachable
137 .endfunc
138 .Lfunc_end1:
139 .size main, .Lfunc_end1-main
140 # -- End function
141 .type .Lmain.e,@object # @main.e
142 .section .rodata.cst16,"aM",@progbits,16
143 .p2align 2
144 .Lmain.e:
145 .int32 5 # 0x5
146 .int32 0 # 0x0
147 .int32 6 # 0x6
148 .int8 255 # 0xff
149 .int8 255 # 0xff
150 .int8 127 # 0x7f
151 .int8 85 # 0x55
152 .size .Lmain.e, 16
153
154
155 .ident "clang version 6.0.0 (https://llvm.googlesource.com/clang.git a1774cccdccfa673c057f93ccf23bc2d8cb04932) (https://llvm.googlesource.com/llvm.git fc50e1c6121255333bc42d6faf2b524c074eae25)"
156 .functype abort, void