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