1 ; Test the absence of the andi.b / and.v instructions
3 ; RUN: llc -march=mips -mattr=+msa,+fp64,+mips32r2 -relocation-model=pic < %s | FileCheck %s
4 ; RUN: llc -march=mipsel -mattr=+msa,+fp64,+mips32r2 -relocation-model=pic < %s | FileCheck %s
6 @llvm_mips_bclr_b_ARG1 = global <16 x i8> <i8 0, i8 1, i8 2, i8 3, i8 4, i8 5, i8 6, i8 7, i8 8, i8 9, i8 10, i8 11, i8 12, i8 13, i8 14, i8 15>, align 16
7 @llvm_mips_bclr_b_ARG2 = global <16 x i8> <i8 16, i8 17, i8 18, i8 19, i8 20, i8 21, i8 22, i8 23, i8 24, i8 25, i8 26, i8 27, i8 28, i8 29, i8 30, i8 31>, align 16
8 @llvm_mips_bclr_b_RES = global <16 x i8> <i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0>, align 16
10 define void @llvm_mips_bclr_b_test() nounwind {
12 %0 = load <16 x i8>, <16 x i8>* @llvm_mips_bclr_b_ARG1
13 %1 = load <16 x i8>, <16 x i8>* @llvm_mips_bclr_b_ARG2
14 %2 = tail call <16 x i8> @llvm.mips.bclr.b(<16 x i8> %0, <16 x i8> %1)
15 store <16 x i8> %2, <16 x i8>* @llvm_mips_bclr_b_RES
19 declare <16 x i8> @llvm.mips.bclr.b(<16 x i8>, <16 x i8>) nounwind
21 ; CHECK-LABEL: llvm_mips_bclr_b_test:
25 @llvm_mips_bclr_h_ARG1 = global <8 x i16> <i16 0, i16 1, i16 2, i16 3, i16 4, i16 5, i16 6, i16 7>, align 16
26 @llvm_mips_bclr_h_ARG2 = global <8 x i16> <i16 8, i16 9, i16 10, i16 11, i16 12, i16 13, i16 14, i16 15>, align 16
27 @llvm_mips_bclr_h_RES = global <8 x i16> <i16 0, i16 0, i16 0, i16 0, i16 0, i16 0, i16 0, i16 0>, align 16
29 define void @llvm_mips_bclr_h_test() nounwind {
31 %0 = load <8 x i16>, <8 x i16>* @llvm_mips_bclr_h_ARG1
32 %1 = load <8 x i16>, <8 x i16>* @llvm_mips_bclr_h_ARG2
33 %2 = tail call <8 x i16> @llvm.mips.bclr.h(<8 x i16> %0, <8 x i16> %1)
34 store <8 x i16> %2, <8 x i16>* @llvm_mips_bclr_h_RES
38 declare <8 x i16> @llvm.mips.bclr.h(<8 x i16>, <8 x i16>) nounwind
40 ; CHECK-LABEL: llvm_mips_bclr_h_test:
44 @llvm_mips_bclr_w_ARG1 = global <4 x i32> <i32 0, i32 1, i32 2, i32 3>, align 16
45 @llvm_mips_bclr_w_ARG2 = global <4 x i32> <i32 4, i32 5, i32 6, i32 7>, align 16
46 @llvm_mips_bclr_w_RES = global <4 x i32> <i32 0, i32 0, i32 0, i32 0>, align 16
48 define void @llvm_mips_bclr_w_test() nounwind {
50 %0 = load <4 x i32>, <4 x i32>* @llvm_mips_bclr_w_ARG1
51 %1 = load <4 x i32>, <4 x i32>* @llvm_mips_bclr_w_ARG2
52 %2 = tail call <4 x i32> @llvm.mips.bclr.w(<4 x i32> %0, <4 x i32> %1)
53 store <4 x i32> %2, <4 x i32>* @llvm_mips_bclr_w_RES
57 declare <4 x i32> @llvm.mips.bclr.w(<4 x i32>, <4 x i32>) nounwind
59 ; CHECK-LABEL: llvm_mips_bclr_w_test:
63 @llvm_mips_bclr_d_ARG1 = global <2 x i64> <i64 0, i64 1>, align 16
64 @llvm_mips_bclr_d_ARG2 = global <2 x i64> <i64 2, i64 3>, align 16
65 @llvm_mips_bclr_d_RES = global <2 x i64> <i64 0, i64 0>, align 16
67 define void @llvm_mips_bclr_d_test() nounwind {
69 %0 = load <2 x i64>, <2 x i64>* @llvm_mips_bclr_d_ARG1
70 %1 = load <2 x i64>, <2 x i64>* @llvm_mips_bclr_d_ARG2
71 %2 = tail call <2 x i64> @llvm.mips.bclr.d(<2 x i64> %0, <2 x i64> %1)
72 store <2 x i64> %2, <2 x i64>* @llvm_mips_bclr_d_RES
76 declare <2 x i64> @llvm.mips.bclr.d(<2 x i64>, <2 x i64>) nounwind
78 ; CHECK-LABEL: llvm_mips_bclr_d_test:
82 @llvm_mips_bneg_b_ARG1 = global <16 x i8> <i8 0, i8 1, i8 2, i8 3, i8 4, i8 5, i8 6, i8 7, i8 8, i8 9, i8 10, i8 11, i8 12, i8 13, i8 14, i8 15>, align 16
83 @llvm_mips_bneg_b_ARG2 = global <16 x i8> <i8 16, i8 17, i8 18, i8 19, i8 20, i8 21, i8 22, i8 23, i8 24, i8 25, i8 26, i8 27, i8 28, i8 29, i8 30, i8 31>, align 16
84 @llvm_mips_bneg_b_RES = global <16 x i8> <i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0>, align 16
86 define void @llvm_mips_bneg_b_test() nounwind {
88 %0 = load <16 x i8>, <16 x i8>* @llvm_mips_bneg_b_ARG1
89 %1 = load <16 x i8>, <16 x i8>* @llvm_mips_bneg_b_ARG2
90 %2 = tail call <16 x i8> @llvm.mips.bneg.b(<16 x i8> %0, <16 x i8> %1)
91 store <16 x i8> %2, <16 x i8>* @llvm_mips_bneg_b_RES
95 declare <16 x i8> @llvm.mips.bneg.b(<16 x i8>, <16 x i8>) nounwind
97 ; CHECK-LABEL: llvm_mips_bneg_b_test:
101 @llvm_mips_bneg_h_ARG1 = global <8 x i16> <i16 0, i16 1, i16 2, i16 3, i16 4, i16 5, i16 6, i16 7>, align 16
102 @llvm_mips_bneg_h_ARG2 = global <8 x i16> <i16 8, i16 9, i16 10, i16 11, i16 12, i16 13, i16 14, i16 15>, align 16
103 @llvm_mips_bneg_h_RES = global <8 x i16> <i16 0, i16 0, i16 0, i16 0, i16 0, i16 0, i16 0, i16 0>, align 16
105 define void @llvm_mips_bneg_h_test() nounwind {
107 %0 = load <8 x i16>, <8 x i16>* @llvm_mips_bneg_h_ARG1
108 %1 = load <8 x i16>, <8 x i16>* @llvm_mips_bneg_h_ARG2
109 %2 = tail call <8 x i16> @llvm.mips.bneg.h(<8 x i16> %0, <8 x i16> %1)
110 store <8 x i16> %2, <8 x i16>* @llvm_mips_bneg_h_RES
114 declare <8 x i16> @llvm.mips.bneg.h(<8 x i16>, <8 x i16>) nounwind
116 ; CHECK-LABEL: llvm_mips_bneg_h_test:
120 @llvm_mips_bneg_w_ARG1 = global <4 x i32> <i32 0, i32 1, i32 2, i32 3>, align 16
121 @llvm_mips_bneg_w_ARG2 = global <4 x i32> <i32 4, i32 5, i32 6, i32 7>, align 16
122 @llvm_mips_bneg_w_RES = global <4 x i32> <i32 0, i32 0, i32 0, i32 0>, align 16
124 define void @llvm_mips_bneg_w_test() nounwind {
126 %0 = load <4 x i32>, <4 x i32>* @llvm_mips_bneg_w_ARG1
127 %1 = load <4 x i32>, <4 x i32>* @llvm_mips_bneg_w_ARG2
128 %2 = tail call <4 x i32> @llvm.mips.bneg.w(<4 x i32> %0, <4 x i32> %1)
129 store <4 x i32> %2, <4 x i32>* @llvm_mips_bneg_w_RES
133 declare <4 x i32> @llvm.mips.bneg.w(<4 x i32>, <4 x i32>) nounwind
135 ; CHECK-LABEL: llvm_mips_bneg_w_test:
139 @llvm_mips_bneg_d_ARG1 = global <2 x i64> <i64 0, i64 1>, align 16
140 @llvm_mips_bneg_d_ARG2 = global <2 x i64> <i64 2, i64 3>, align 16
141 @llvm_mips_bneg_d_RES = global <2 x i64> <i64 0, i64 0>, align 16
143 define void @llvm_mips_bneg_d_test() nounwind {
145 %0 = load <2 x i64>, <2 x i64>* @llvm_mips_bneg_d_ARG1
146 %1 = load <2 x i64>, <2 x i64>* @llvm_mips_bneg_d_ARG2
147 %2 = tail call <2 x i64> @llvm.mips.bneg.d(<2 x i64> %0, <2 x i64> %1)
148 store <2 x i64> %2, <2 x i64>* @llvm_mips_bneg_d_RES
152 declare <2 x i64> @llvm.mips.bneg.d(<2 x i64>, <2 x i64>) nounwind
154 ; CHECK-LABEL: llvm_mips_bneg_d_test:
158 @llvm_mips_bset_b_ARG1 = global <16 x i8> <i8 0, i8 1, i8 2, i8 3, i8 4, i8 5, i8 6, i8 7, i8 8, i8 9, i8 10, i8 11, i8 12, i8 13, i8 14, i8 15>, align 16
159 @llvm_mips_bset_b_ARG2 = global <16 x i8> <i8 16, i8 17, i8 18, i8 19, i8 20, i8 21, i8 22, i8 23, i8 24, i8 25, i8 26, i8 27, i8 28, i8 29, i8 30, i8 31>, align 16
160 @llvm_mips_bset_b_RES = global <16 x i8> <i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0>, align 16
162 define void @llvm_mips_bset_b_test() nounwind {
164 %0 = load <16 x i8>, <16 x i8>* @llvm_mips_bset_b_ARG1
165 %1 = load <16 x i8>, <16 x i8>* @llvm_mips_bset_b_ARG2
166 %2 = tail call <16 x i8> @llvm.mips.bset.b(<16 x i8> %0, <16 x i8> %1)
167 store <16 x i8> %2, <16 x i8>* @llvm_mips_bset_b_RES
171 declare <16 x i8> @llvm.mips.bset.b(<16 x i8>, <16 x i8>) nounwind
173 ; CHECK-LABEL: llvm_mips_bset_b_test:
177 @llvm_mips_bset_h_ARG1 = global <8 x i16> <i16 0, i16 1, i16 2, i16 3, i16 4, i16 5, i16 6, i16 7>, align 16
178 @llvm_mips_bset_h_ARG2 = global <8 x i16> <i16 8, i16 9, i16 10, i16 11, i16 12, i16 13, i16 14, i16 15>, align 16
179 @llvm_mips_bset_h_RES = global <8 x i16> <i16 0, i16 0, i16 0, i16 0, i16 0, i16 0, i16 0, i16 0>, align 16
181 define void @llvm_mips_bset_h_test() nounwind {
183 %0 = load <8 x i16>, <8 x i16>* @llvm_mips_bset_h_ARG1
184 %1 = load <8 x i16>, <8 x i16>* @llvm_mips_bset_h_ARG2
185 %2 = tail call <8 x i16> @llvm.mips.bset.h(<8 x i16> %0, <8 x i16> %1)
186 store <8 x i16> %2, <8 x i16>* @llvm_mips_bset_h_RES
190 declare <8 x i16> @llvm.mips.bset.h(<8 x i16>, <8 x i16>) nounwind
192 ; CHECK-LABEL: llvm_mips_bset_h_test:
196 @llvm_mips_bset_w_ARG1 = global <4 x i32> <i32 0, i32 1, i32 2, i32 3>, align 16
197 @llvm_mips_bset_w_ARG2 = global <4 x i32> <i32 4, i32 5, i32 6, i32 7>, align 16
198 @llvm_mips_bset_w_RES = global <4 x i32> <i32 0, i32 0, i32 0, i32 0>, align 16
200 define void @llvm_mips_bset_w_test() nounwind {
202 %0 = load <4 x i32>, <4 x i32>* @llvm_mips_bset_w_ARG1
203 %1 = load <4 x i32>, <4 x i32>* @llvm_mips_bset_w_ARG2
204 %2 = tail call <4 x i32> @llvm.mips.bset.w(<4 x i32> %0, <4 x i32> %1)
205 store <4 x i32> %2, <4 x i32>* @llvm_mips_bset_w_RES
209 declare <4 x i32> @llvm.mips.bset.w(<4 x i32>, <4 x i32>) nounwind
211 ; CHECK-LABEL: llvm_mips_bset_w_test:
215 @llvm_mips_bset_d_ARG1 = global <2 x i64> <i64 0, i64 1>, align 16
216 @llvm_mips_bset_d_ARG2 = global <2 x i64> <i64 2, i64 3>, align 16
217 @llvm_mips_bset_d_RES = global <2 x i64> <i64 0, i64 0>, align 16
219 define void @llvm_mips_bset_d_test() nounwind {
221 %0 = load <2 x i64>, <2 x i64>* @llvm_mips_bset_d_ARG1
222 %1 = load <2 x i64>, <2 x i64>* @llvm_mips_bset_d_ARG2
223 %2 = tail call <2 x i64> @llvm.mips.bset.d(<2 x i64> %0, <2 x i64> %1)
224 store <2 x i64> %2, <2 x i64>* @llvm_mips_bset_d_RES
228 declare <2 x i64> @llvm.mips.bset.d(<2 x i64>, <2 x i64>) nounwind
230 ; CHECK-LABEL: llvm_mips_bset_d_test:
234 @llvm_mips_sll_b_ARG1 = global <16 x i8> <i8 0, i8 1, i8 2, i8 3, i8 4, i8 5, i8 6, i8 7, i8 8, i8 9, i8 10, i8 11, i8 12, i8 13, i8 14, i8 15>, align 16
235 @llvm_mips_sll_b_ARG2 = global <16 x i8> <i8 16, i8 17, i8 18, i8 19, i8 20, i8 21, i8 22, i8 23, i8 24, i8 25, i8 26, i8 27, i8 28, i8 29, i8 30, i8 31>, align 16
236 @llvm_mips_sll_b_RES = global <16 x i8> <i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0>, align 16
238 define void @llvm_mips_sll_b_test() nounwind {
240 %0 = load <16 x i8>, <16 x i8>* @llvm_mips_sll_b_ARG1
241 %1 = load <16 x i8>, <16 x i8>* @llvm_mips_sll_b_ARG2
242 %2 = tail call <16 x i8> @llvm.mips.sll.b(<16 x i8> %0, <16 x i8> %1)
243 store <16 x i8> %2, <16 x i8>* @llvm_mips_sll_b_RES
247 declare <16 x i8> @llvm.mips.sll.b(<16 x i8>, <16 x i8>) nounwind
249 ; CHECK-LABEL: llvm_mips_sll_b_test:
253 @llvm_mips_sll_h_ARG1 = global <8 x i16> <i16 0, i16 1, i16 2, i16 3, i16 4, i16 5, i16 6, i16 7>, align 16
254 @llvm_mips_sll_h_ARG2 = global <8 x i16> <i16 8, i16 9, i16 10, i16 11, i16 12, i16 13, i16 14, i16 15>, align 16
255 @llvm_mips_sll_h_RES = global <8 x i16> <i16 0, i16 0, i16 0, i16 0, i16 0, i16 0, i16 0, i16 0>, align 16
257 define void @llvm_mips_sll_h_test() nounwind {
259 %0 = load <8 x i16>, <8 x i16>* @llvm_mips_sll_h_ARG1
260 %1 = load <8 x i16>, <8 x i16>* @llvm_mips_sll_h_ARG2
261 %2 = tail call <8 x i16> @llvm.mips.sll.h(<8 x i16> %0, <8 x i16> %1)
262 store <8 x i16> %2, <8 x i16>* @llvm_mips_sll_h_RES
266 declare <8 x i16> @llvm.mips.sll.h(<8 x i16>, <8 x i16>) nounwind
268 ; CHECK-LABEL: llvm_mips_sll_h_test:
272 @llvm_mips_sll_w_ARG1 = global <4 x i32> <i32 0, i32 1, i32 2, i32 3>, align 16
273 @llvm_mips_sll_w_ARG2 = global <4 x i32> <i32 4, i32 5, i32 6, i32 7>, align 16
274 @llvm_mips_sll_w_RES = global <4 x i32> <i32 0, i32 0, i32 0, i32 0>, align 16
276 define void @llvm_mips_sll_w_test() nounwind {
278 %0 = load <4 x i32>, <4 x i32>* @llvm_mips_sll_w_ARG1
279 %1 = load <4 x i32>, <4 x i32>* @llvm_mips_sll_w_ARG2
280 %2 = tail call <4 x i32> @llvm.mips.sll.w(<4 x i32> %0, <4 x i32> %1)
281 store <4 x i32> %2, <4 x i32>* @llvm_mips_sll_w_RES
285 declare <4 x i32> @llvm.mips.sll.w(<4 x i32>, <4 x i32>) nounwind
287 ; CHECK-LABEL: llvm_mips_sll_w_test:
291 @llvm_mips_sll_d_ARG1 = global <2 x i64> <i64 0, i64 1>, align 16
292 @llvm_mips_sll_d_ARG2 = global <2 x i64> <i64 2, i64 3>, align 16
293 @llvm_mips_sll_d_RES = global <2 x i64> <i64 0, i64 0>, align 16
295 define void @llvm_mips_sll_d_test() nounwind {
297 %0 = load <2 x i64>, <2 x i64>* @llvm_mips_sll_d_ARG1
298 %1 = load <2 x i64>, <2 x i64>* @llvm_mips_sll_d_ARG2
299 %2 = tail call <2 x i64> @llvm.mips.sll.d(<2 x i64> %0, <2 x i64> %1)
300 store <2 x i64> %2, <2 x i64>* @llvm_mips_sll_d_RES
304 declare <2 x i64> @llvm.mips.sll.d(<2 x i64>, <2 x i64>) nounwind
306 ; CHECK-LABEL: llvm_mips_sll_d_test:
310 @llvm_mips_sra_b_ARG1 = global <16 x i8> <i8 0, i8 1, i8 2, i8 3, i8 4, i8 5, i8 6, i8 7, i8 8, i8 9, i8 10, i8 11, i8 12, i8 13, i8 14, i8 15>, align 16
311 @llvm_mips_sra_b_ARG2 = global <16 x i8> <i8 16, i8 17, i8 18, i8 19, i8 20, i8 21, i8 22, i8 23, i8 24, i8 25, i8 26, i8 27, i8 28, i8 29, i8 30, i8 31>, align 16
312 @llvm_mips_sra_b_RES = global <16 x i8> <i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0>, align 16
314 define void @llvm_mips_sra_b_test() nounwind {
316 %0 = load <16 x i8>, <16 x i8>* @llvm_mips_sra_b_ARG1
317 %1 = load <16 x i8>, <16 x i8>* @llvm_mips_sra_b_ARG2
318 %2 = tail call <16 x i8> @llvm.mips.sra.b(<16 x i8> %0, <16 x i8> %1)
319 store <16 x i8> %2, <16 x i8>* @llvm_mips_sra_b_RES
323 declare <16 x i8> @llvm.mips.sra.b(<16 x i8>, <16 x i8>) nounwind
325 ; CHECK-LABEL: llvm_mips_sra_b_test:
329 @llvm_mips_sra_h_ARG1 = global <8 x i16> <i16 0, i16 1, i16 2, i16 3, i16 4, i16 5, i16 6, i16 7>, align 16
330 @llvm_mips_sra_h_ARG2 = global <8 x i16> <i16 8, i16 9, i16 10, i16 11, i16 12, i16 13, i16 14, i16 15>, align 16
331 @llvm_mips_sra_h_RES = global <8 x i16> <i16 0, i16 0, i16 0, i16 0, i16 0, i16 0, i16 0, i16 0>, align 16
333 define void @llvm_mips_sra_h_test() nounwind {
335 %0 = load <8 x i16>, <8 x i16>* @llvm_mips_sra_h_ARG1
336 %1 = load <8 x i16>, <8 x i16>* @llvm_mips_sra_h_ARG2
337 %2 = tail call <8 x i16> @llvm.mips.sra.h(<8 x i16> %0, <8 x i16> %1)
338 store <8 x i16> %2, <8 x i16>* @llvm_mips_sra_h_RES
342 declare <8 x i16> @llvm.mips.sra.h(<8 x i16>, <8 x i16>) nounwind
344 ; CHECK-LABEL: llvm_mips_sra_h_test:
348 @llvm_mips_sra_w_ARG1 = global <4 x i32> <i32 0, i32 1, i32 2, i32 3>, align 16
349 @llvm_mips_sra_w_ARG2 = global <4 x i32> <i32 4, i32 5, i32 6, i32 7>, align 16
350 @llvm_mips_sra_w_RES = global <4 x i32> <i32 0, i32 0, i32 0, i32 0>, align 16
352 define void @llvm_mips_sra_w_test() nounwind {
354 %0 = load <4 x i32>, <4 x i32>* @llvm_mips_sra_w_ARG1
355 %1 = load <4 x i32>, <4 x i32>* @llvm_mips_sra_w_ARG2
356 %2 = tail call <4 x i32> @llvm.mips.sra.w(<4 x i32> %0, <4 x i32> %1)
357 store <4 x i32> %2, <4 x i32>* @llvm_mips_sra_w_RES
361 declare <4 x i32> @llvm.mips.sra.w(<4 x i32>, <4 x i32>) nounwind
363 ; CHECK-LABEL: llvm_mips_sra_w_test:
367 @llvm_mips_sra_d_ARG1 = global <2 x i64> <i64 0, i64 1>, align 16
368 @llvm_mips_sra_d_ARG2 = global <2 x i64> <i64 2, i64 3>, align 16
369 @llvm_mips_sra_d_RES = global <2 x i64> <i64 0, i64 0>, align 16
371 define void @llvm_mips_sra_d_test() nounwind {
373 %0 = load <2 x i64>, <2 x i64>* @llvm_mips_sra_d_ARG1
374 %1 = load <2 x i64>, <2 x i64>* @llvm_mips_sra_d_ARG2
375 %2 = tail call <2 x i64> @llvm.mips.sra.d(<2 x i64> %0, <2 x i64> %1)
376 store <2 x i64> %2, <2 x i64>* @llvm_mips_sra_d_RES
380 declare <2 x i64> @llvm.mips.sra.d(<2 x i64>, <2 x i64>) nounwind
382 ; CHECK-LABEL: llvm_mips_sra_d_test:
386 @llvm_mips_srl_b_ARG1 = global <16 x i8> <i8 0, i8 1, i8 2, i8 3, i8 4, i8 5, i8 6, i8 7, i8 8, i8 9, i8 10, i8 11, i8 12, i8 13, i8 14, i8 15>, align 16
387 @llvm_mips_srl_b_ARG2 = global <16 x i8> <i8 16, i8 17, i8 18, i8 19, i8 20, i8 21, i8 22, i8 23, i8 24, i8 25, i8 26, i8 27, i8 28, i8 29, i8 30, i8 31>, align 16
388 @llvm_mips_srl_b_RES = global <16 x i8> <i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0, i8 0>, align 16
390 define void @llvm_mips_srl_b_test() nounwind {
392 %0 = load <16 x i8>, <16 x i8>* @llvm_mips_srl_b_ARG1
393 %1 = load <16 x i8>, <16 x i8>* @llvm_mips_srl_b_ARG2
394 %2 = tail call <16 x i8> @llvm.mips.srl.b(<16 x i8> %0, <16 x i8> %1)
395 store <16 x i8> %2, <16 x i8>* @llvm_mips_srl_b_RES
399 declare <16 x i8> @llvm.mips.srl.b(<16 x i8>, <16 x i8>) nounwind
401 ; CHECK-LABEL: llvm_mips_srl_b_test:
405 @llvm_mips_srl_h_ARG1 = global <8 x i16> <i16 0, i16 1, i16 2, i16 3, i16 4, i16 5, i16 6, i16 7>, align 16
406 @llvm_mips_srl_h_ARG2 = global <8 x i16> <i16 8, i16 9, i16 10, i16 11, i16 12, i16 13, i16 14, i16 15>, align 16
407 @llvm_mips_srl_h_RES = global <8 x i16> <i16 0, i16 0, i16 0, i16 0, i16 0, i16 0, i16 0, i16 0>, align 16
409 define void @llvm_mips_srl_h_test() nounwind {
411 %0 = load <8 x i16>, <8 x i16>* @llvm_mips_srl_h_ARG1
412 %1 = load <8 x i16>, <8 x i16>* @llvm_mips_srl_h_ARG2
413 %2 = tail call <8 x i16> @llvm.mips.srl.h(<8 x i16> %0, <8 x i16> %1)
414 store <8 x i16> %2, <8 x i16>* @llvm_mips_srl_h_RES
418 declare <8 x i16> @llvm.mips.srl.h(<8 x i16>, <8 x i16>) nounwind
420 ; CHECK-LABEL: llvm_mips_srl_h_test:
424 @llvm_mips_srl_w_ARG1 = global <4 x i32> <i32 0, i32 1, i32 2, i32 3>, align 16
425 @llvm_mips_srl_w_ARG2 = global <4 x i32> <i32 4, i32 5, i32 6, i32 7>, align 16
426 @llvm_mips_srl_w_RES = global <4 x i32> <i32 0, i32 0, i32 0, i32 0>, align 16
428 define void @llvm_mips_srl_w_test() nounwind {
430 %0 = load <4 x i32>, <4 x i32>* @llvm_mips_srl_w_ARG1
431 %1 = load <4 x i32>, <4 x i32>* @llvm_mips_srl_w_ARG2
432 %2 = tail call <4 x i32> @llvm.mips.srl.w(<4 x i32> %0, <4 x i32> %1)
433 store <4 x i32> %2, <4 x i32>* @llvm_mips_srl_w_RES
437 declare <4 x i32> @llvm.mips.srl.w(<4 x i32>, <4 x i32>) nounwind
439 ; CHECK-LABEL: llvm_mips_srl_w_test:
443 @llvm_mips_srl_d_ARG1 = global <2 x i64> <i64 0, i64 1>, align 16
444 @llvm_mips_srl_d_ARG2 = global <2 x i64> <i64 2, i64 3>, align 16
445 @llvm_mips_srl_d_RES = global <2 x i64> <i64 0, i64 0>, align 16
447 define void @llvm_mips_srl_d_test() nounwind {
449 %0 = load <2 x i64>, <2 x i64>* @llvm_mips_srl_d_ARG1
450 %1 = load <2 x i64>, <2 x i64>* @llvm_mips_srl_d_ARG2
451 %2 = tail call <2 x i64> @llvm.mips.srl.d(<2 x i64> %0, <2 x i64> %1)
452 store <2 x i64> %2, <2 x i64>* @llvm_mips_srl_d_RES
456 declare <2 x i64> @llvm.mips.srl.d(<2 x i64>, <2 x i64>) nounwind
458 ; CHECK-LABEL: llvm_mips_srl_d_test: