]> git.proxmox.com Git - rustc.git/blob - src/binaryen/test/torture-s/20010224-1.c.s
New upstream version 1.23.0+dfsg1
[rustc.git] / src / binaryen / test / torture-s / 20010224-1.c.s
1 .text
2 .file "20010224-1.c"
3 .section .text.ba_compute_psd,"ax",@progbits
4 .hidden ba_compute_psd # -- Begin function ba_compute_psd
5 .globl ba_compute_psd
6 .type ba_compute_psd,@function
7 ba_compute_psd: # @ba_compute_psd
8 .param i32
9 .local i32, i32, i32, i32
10 # BB#0: # %entry
11 i32.const $push22=, 1
12 i32.shl $push21=, $0, $pop22
13 tee_local $push20=, $2=, $pop21
14 i32.const $push1=, masktab
15 i32.add $push2=, $pop20, $pop1
16 i32.load16_s $push3=, 0($pop2)
17 i32.const $push19=, 1
18 i32.shl $push4=, $pop3, $pop19
19 i32.const $push5=, bndpsd
20 i32.add $push18=, $pop4, $pop5
21 tee_local $push17=, $1=, $pop18
22 i32.const $push6=, psd
23 i32.add $push7=, $2, $pop6
24 i32.load16_u $push16=, 0($pop7)
25 tee_local $push15=, $4=, $pop16
26 i32.store16 0($pop17), $pop15
27 block
28 i32.const $push14=, 2
29 i32.gt_s $push8=, $0, $pop14
30 br_if 0, $pop8 # 0: down to label0
31 # BB#1: # %for.body.preheader
32 i32.const $push9=, -1
33 i32.add $3=, $0, $pop9
34 i32.const $push10=, psd+2
35 i32.add $0=, $2, $pop10
36 .LBB0_2: # %for.body
37 # =>This Inner Loop Header: Depth=1
38 loop # label1:
39 i32.load16_u $push12=, 0($0)
40 i32.const $push28=, 65535
41 i32.and $push11=, $4, $pop28
42 i32.add $4=, $pop12, $pop11
43 i32.const $push27=, 2
44 i32.add $push0=, $0, $pop27
45 copy_local $0=, $pop0
46 i32.const $push26=, 1
47 i32.add $push25=, $3, $pop26
48 tee_local $push24=, $3=, $pop25
49 i32.const $push23=, 2
50 i32.lt_s $push13=, $pop24, $pop23
51 br_if 0, $pop13 # 0: up to label1
52 # BB#3: # %for.cond.for.end_crit_edge
53 end_loop
54 i32.store16 0($1), $4
55 .LBB0_4: # %for.end
56 end_block # label0:
57 # fallthrough-return
58 .endfunc
59 .Lfunc_end0:
60 .size ba_compute_psd, .Lfunc_end0-ba_compute_psd
61 # -- End function
62 .section .text.logadd,"ax",@progbits
63 .hidden logadd # -- Begin function logadd
64 .globl logadd
65 .type logadd,@function
66 logadd: # @logadd
67 .param i32, i32
68 .result i32
69 # BB#0: # %entry
70 i32.load16_u $push1=, 0($1)
71 i32.load16_u $push0=, 0($0)
72 i32.add $push2=, $pop1, $pop0
73 i32.const $push3=, 16
74 i32.shl $push4=, $pop2, $pop3
75 i32.const $push6=, 16
76 i32.shr_s $push5=, $pop4, $pop6
77 # fallthrough-return: $pop5
78 .endfunc
79 .Lfunc_end1:
80 .size logadd, .Lfunc_end1-logadd
81 # -- End function
82 .section .text.main,"ax",@progbits
83 .hidden main # -- Begin function main
84 .globl main
85 .type main,@function
86 main: # @main
87 .result i32
88 # BB#0: # %entry
89 i32.const $push20=, 0
90 i32.load16_s $push0=, masktab($pop20)
91 i32.const $push1=, 1
92 i32.shl $push2=, $pop0, $pop1
93 i32.const $push3=, bndpsd
94 i32.add $push4=, $pop2, $pop3
95 i32.const $push19=, 0
96 i32.load16_u $push6=, psd+2($pop19)
97 i32.const $push18=, 0
98 i32.load16_u $push5=, psd($pop18)
99 i32.add $push7=, $pop6, $pop5
100 i32.const $push17=, 0
101 i32.load16_u $push8=, psd+4($pop17)
102 i32.add $push9=, $pop7, $pop8
103 i32.const $push16=, 0
104 i32.load16_u $push10=, psd+6($pop16)
105 i32.add $push11=, $pop9, $pop10
106 i32.store16 0($pop4), $pop11
107 block
108 i32.const $push15=, 0
109 i32.load16_u $push12=, bndpsd+2($pop15)
110 i32.const $push13=, 140
111 i32.ne $push14=, $pop12, $pop13
112 br_if 0, $pop14 # 0: down to label2
113 # BB#1: # %if.end
114 i32.const $push21=, 0
115 return $pop21
116 .LBB2_2: # %if.then
117 end_block # label2:
118 call abort@FUNCTION
119 unreachable
120 .endfunc
121 .Lfunc_end2:
122 .size main, .Lfunc_end2-main
123 # -- End function
124 .hidden masktab # @masktab
125 .type masktab,@object
126 .section .data.masktab,"aw",@progbits
127 .globl masktab
128 .p2align 1
129 masktab:
130 .int16 1 # 0x1
131 .int16 2 # 0x2
132 .int16 3 # 0x3
133 .int16 4 # 0x4
134 .int16 5 # 0x5
135 .int16 0 # 0x0
136 .size masktab, 12
137
138 .hidden psd # @psd
139 .type psd,@object
140 .section .data.psd,"aw",@progbits
141 .globl psd
142 .p2align 1
143 psd:
144 .int16 50 # 0x32
145 .int16 40 # 0x28
146 .int16 30 # 0x1e
147 .int16 20 # 0x14
148 .int16 10 # 0xa
149 .int16 0 # 0x0
150 .size psd, 12
151
152 .hidden bndpsd # @bndpsd
153 .type bndpsd,@object
154 .section .data.bndpsd,"aw",@progbits
155 .globl bndpsd
156 .p2align 1
157 bndpsd:
158 .int16 1 # 0x1
159 .int16 2 # 0x2
160 .int16 3 # 0x3
161 .int16 4 # 0x4
162 .int16 5 # 0x5
163 .int16 0 # 0x0
164 .size bndpsd, 12
165
166
167 .ident "clang version 6.0.0 (https://llvm.googlesource.com/clang.git a1774cccdccfa673c057f93ccf23bc2d8cb04932) (https://llvm.googlesource.com/llvm.git fc50e1c6121255333bc42d6faf2b524c074eae25)"
168 .functype abort, void