1 ; Test the MSA intrinsics that are encoded with the 3R instruction format.
2 ; There are lots of these so this covers those beginning with 'm'
4 ; RUN: llc -march=mips -mattr=+msa,+fp64,+mips32r2 < %s | FileCheck %s
5 ; RUN: llc -march=mipsel -mattr=+msa,+fp64,+mips32r2 < %s | FileCheck %s
7 @llvm_mips_max_a_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
8 @llvm_mips_max_a_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
9 @llvm_mips_max_a_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
11 define void @llvm_mips_max_a_b_test() nounwind {
13 %0 = load <16 x i8>, ptr @llvm_mips_max_a_b_ARG1
14 %1 = load <16 x i8>, ptr @llvm_mips_max_a_b_ARG2
15 %2 = tail call <16 x i8> @llvm.mips.max.a.b(<16 x i8> %0, <16 x i8> %1)
16 store <16 x i8> %2, ptr @llvm_mips_max_a_b_RES
20 declare <16 x i8> @llvm.mips.max.a.b(<16 x i8>, <16 x i8>) nounwind
22 ; CHECK: llvm_mips_max_a_b_test:
27 ; CHECK: .size llvm_mips_max_a_b_test
29 @llvm_mips_max_a_h_ARG1 = global <8 x i16> <i16 0, i16 1, i16 2, i16 3, i16 4, i16 5, i16 6, i16 7>, align 16
30 @llvm_mips_max_a_h_ARG2 = global <8 x i16> <i16 8, i16 9, i16 10, i16 11, i16 12, i16 13, i16 14, i16 15>, align 16
31 @llvm_mips_max_a_h_RES = global <8 x i16> <i16 0, i16 0, i16 0, i16 0, i16 0, i16 0, i16 0, i16 0>, align 16
33 define void @llvm_mips_max_a_h_test() nounwind {
35 %0 = load <8 x i16>, ptr @llvm_mips_max_a_h_ARG1
36 %1 = load <8 x i16>, ptr @llvm_mips_max_a_h_ARG2
37 %2 = tail call <8 x i16> @llvm.mips.max.a.h(<8 x i16> %0, <8 x i16> %1)
38 store <8 x i16> %2, ptr @llvm_mips_max_a_h_RES
42 declare <8 x i16> @llvm.mips.max.a.h(<8 x i16>, <8 x i16>) nounwind
44 ; CHECK: llvm_mips_max_a_h_test:
49 ; CHECK: .size llvm_mips_max_a_h_test
51 @llvm_mips_max_a_w_ARG1 = global <4 x i32> <i32 0, i32 1, i32 2, i32 3>, align 16
52 @llvm_mips_max_a_w_ARG2 = global <4 x i32> <i32 4, i32 5, i32 6, i32 7>, align 16
53 @llvm_mips_max_a_w_RES = global <4 x i32> <i32 0, i32 0, i32 0, i32 0>, align 16
55 define void @llvm_mips_max_a_w_test() nounwind {
57 %0 = load <4 x i32>, ptr @llvm_mips_max_a_w_ARG1
58 %1 = load <4 x i32>, ptr @llvm_mips_max_a_w_ARG2
59 %2 = tail call <4 x i32> @llvm.mips.max.a.w(<4 x i32> %0, <4 x i32> %1)
60 store <4 x i32> %2, ptr @llvm_mips_max_a_w_RES
64 declare <4 x i32> @llvm.mips.max.a.w(<4 x i32>, <4 x i32>) nounwind
66 ; CHECK: llvm_mips_max_a_w_test:
71 ; CHECK: .size llvm_mips_max_a_w_test
73 @llvm_mips_max_a_d_ARG1 = global <2 x i64> <i64 0, i64 1>, align 16
74 @llvm_mips_max_a_d_ARG2 = global <2 x i64> <i64 2, i64 3>, align 16
75 @llvm_mips_max_a_d_RES = global <2 x i64> <i64 0, i64 0>, align 16
77 define void @llvm_mips_max_a_d_test() nounwind {
79 %0 = load <2 x i64>, ptr @llvm_mips_max_a_d_ARG1
80 %1 = load <2 x i64>, ptr @llvm_mips_max_a_d_ARG2
81 %2 = tail call <2 x i64> @llvm.mips.max.a.d(<2 x i64> %0, <2 x i64> %1)
82 store <2 x i64> %2, ptr @llvm_mips_max_a_d_RES
86 declare <2 x i64> @llvm.mips.max.a.d(<2 x i64>, <2 x i64>) nounwind
88 ; CHECK: llvm_mips_max_a_d_test:
93 ; CHECK: .size llvm_mips_max_a_d_test
95 @llvm_mips_max_s_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
96 @llvm_mips_max_s_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
97 @llvm_mips_max_s_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
99 define void @llvm_mips_max_s_b_test() nounwind {
101 %0 = load <16 x i8>, ptr @llvm_mips_max_s_b_ARG1
102 %1 = load <16 x i8>, ptr @llvm_mips_max_s_b_ARG2
103 %2 = tail call <16 x i8> @llvm.mips.max.s.b(<16 x i8> %0, <16 x i8> %1)
104 store <16 x i8> %2, ptr @llvm_mips_max_s_b_RES
108 declare <16 x i8> @llvm.mips.max.s.b(<16 x i8>, <16 x i8>) nounwind
110 ; CHECK: llvm_mips_max_s_b_test:
115 ; CHECK: .size llvm_mips_max_s_b_test
117 @llvm_mips_max_s_h_ARG1 = global <8 x i16> <i16 0, i16 1, i16 2, i16 3, i16 4, i16 5, i16 6, i16 7>, align 16
118 @llvm_mips_max_s_h_ARG2 = global <8 x i16> <i16 8, i16 9, i16 10, i16 11, i16 12, i16 13, i16 14, i16 15>, align 16
119 @llvm_mips_max_s_h_RES = global <8 x i16> <i16 0, i16 0, i16 0, i16 0, i16 0, i16 0, i16 0, i16 0>, align 16
121 define void @llvm_mips_max_s_h_test() nounwind {
123 %0 = load <8 x i16>, ptr @llvm_mips_max_s_h_ARG1
124 %1 = load <8 x i16>, ptr @llvm_mips_max_s_h_ARG2
125 %2 = tail call <8 x i16> @llvm.mips.max.s.h(<8 x i16> %0, <8 x i16> %1)
126 store <8 x i16> %2, ptr @llvm_mips_max_s_h_RES
130 declare <8 x i16> @llvm.mips.max.s.h(<8 x i16>, <8 x i16>) nounwind
132 ; CHECK: llvm_mips_max_s_h_test:
137 ; CHECK: .size llvm_mips_max_s_h_test
139 @llvm_mips_max_s_w_ARG1 = global <4 x i32> <i32 0, i32 1, i32 2, i32 3>, align 16
140 @llvm_mips_max_s_w_ARG2 = global <4 x i32> <i32 4, i32 5, i32 6, i32 7>, align 16
141 @llvm_mips_max_s_w_RES = global <4 x i32> <i32 0, i32 0, i32 0, i32 0>, align 16
143 define void @llvm_mips_max_s_w_test() nounwind {
145 %0 = load <4 x i32>, ptr @llvm_mips_max_s_w_ARG1
146 %1 = load <4 x i32>, ptr @llvm_mips_max_s_w_ARG2
147 %2 = tail call <4 x i32> @llvm.mips.max.s.w(<4 x i32> %0, <4 x i32> %1)
148 store <4 x i32> %2, ptr @llvm_mips_max_s_w_RES
152 declare <4 x i32> @llvm.mips.max.s.w(<4 x i32>, <4 x i32>) nounwind
154 ; CHECK: llvm_mips_max_s_w_test:
159 ; CHECK: .size llvm_mips_max_s_w_test
161 @llvm_mips_max_s_d_ARG1 = global <2 x i64> <i64 0, i64 1>, align 16
162 @llvm_mips_max_s_d_ARG2 = global <2 x i64> <i64 2, i64 3>, align 16
163 @llvm_mips_max_s_d_RES = global <2 x i64> <i64 0, i64 0>, align 16
165 define void @llvm_mips_max_s_d_test() nounwind {
167 %0 = load <2 x i64>, ptr @llvm_mips_max_s_d_ARG1
168 %1 = load <2 x i64>, ptr @llvm_mips_max_s_d_ARG2
169 %2 = tail call <2 x i64> @llvm.mips.max.s.d(<2 x i64> %0, <2 x i64> %1)
170 store <2 x i64> %2, ptr @llvm_mips_max_s_d_RES
174 declare <2 x i64> @llvm.mips.max.s.d(<2 x i64>, <2 x i64>) nounwind
176 ; CHECK: llvm_mips_max_s_d_test:
181 ; CHECK: .size llvm_mips_max_s_d_test
183 @llvm_mips_max_u_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
184 @llvm_mips_max_u_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
185 @llvm_mips_max_u_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
187 define void @llvm_mips_max_u_b_test() nounwind {
189 %0 = load <16 x i8>, ptr @llvm_mips_max_u_b_ARG1
190 %1 = load <16 x i8>, ptr @llvm_mips_max_u_b_ARG2
191 %2 = tail call <16 x i8> @llvm.mips.max.u.b(<16 x i8> %0, <16 x i8> %1)
192 store <16 x i8> %2, ptr @llvm_mips_max_u_b_RES
196 declare <16 x i8> @llvm.mips.max.u.b(<16 x i8>, <16 x i8>) nounwind
198 ; CHECK: llvm_mips_max_u_b_test:
203 ; CHECK: .size llvm_mips_max_u_b_test
205 @llvm_mips_max_u_h_ARG1 = global <8 x i16> <i16 0, i16 1, i16 2, i16 3, i16 4, i16 5, i16 6, i16 7>, align 16
206 @llvm_mips_max_u_h_ARG2 = global <8 x i16> <i16 8, i16 9, i16 10, i16 11, i16 12, i16 13, i16 14, i16 15>, align 16
207 @llvm_mips_max_u_h_RES = global <8 x i16> <i16 0, i16 0, i16 0, i16 0, i16 0, i16 0, i16 0, i16 0>, align 16
209 define void @llvm_mips_max_u_h_test() nounwind {
211 %0 = load <8 x i16>, ptr @llvm_mips_max_u_h_ARG1
212 %1 = load <8 x i16>, ptr @llvm_mips_max_u_h_ARG2
213 %2 = tail call <8 x i16> @llvm.mips.max.u.h(<8 x i16> %0, <8 x i16> %1)
214 store <8 x i16> %2, ptr @llvm_mips_max_u_h_RES
218 declare <8 x i16> @llvm.mips.max.u.h(<8 x i16>, <8 x i16>) nounwind
220 ; CHECK: llvm_mips_max_u_h_test:
225 ; CHECK: .size llvm_mips_max_u_h_test
227 @llvm_mips_max_u_w_ARG1 = global <4 x i32> <i32 0, i32 1, i32 2, i32 3>, align 16
228 @llvm_mips_max_u_w_ARG2 = global <4 x i32> <i32 4, i32 5, i32 6, i32 7>, align 16
229 @llvm_mips_max_u_w_RES = global <4 x i32> <i32 0, i32 0, i32 0, i32 0>, align 16
231 define void @llvm_mips_max_u_w_test() nounwind {
233 %0 = load <4 x i32>, ptr @llvm_mips_max_u_w_ARG1
234 %1 = load <4 x i32>, ptr @llvm_mips_max_u_w_ARG2
235 %2 = tail call <4 x i32> @llvm.mips.max.u.w(<4 x i32> %0, <4 x i32> %1)
236 store <4 x i32> %2, ptr @llvm_mips_max_u_w_RES
240 declare <4 x i32> @llvm.mips.max.u.w(<4 x i32>, <4 x i32>) nounwind
242 ; CHECK: llvm_mips_max_u_w_test:
247 ; CHECK: .size llvm_mips_max_u_w_test
249 @llvm_mips_max_u_d_ARG1 = global <2 x i64> <i64 0, i64 1>, align 16
250 @llvm_mips_max_u_d_ARG2 = global <2 x i64> <i64 2, i64 3>, align 16
251 @llvm_mips_max_u_d_RES = global <2 x i64> <i64 0, i64 0>, align 16
253 define void @llvm_mips_max_u_d_test() nounwind {
255 %0 = load <2 x i64>, ptr @llvm_mips_max_u_d_ARG1
256 %1 = load <2 x i64>, ptr @llvm_mips_max_u_d_ARG2
257 %2 = tail call <2 x i64> @llvm.mips.max.u.d(<2 x i64> %0, <2 x i64> %1)
258 store <2 x i64> %2, ptr @llvm_mips_max_u_d_RES
262 declare <2 x i64> @llvm.mips.max.u.d(<2 x i64>, <2 x i64>) nounwind
264 ; CHECK: llvm_mips_max_u_d_test:
269 ; CHECK: .size llvm_mips_max_u_d_test
271 @llvm_mips_min_a_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
272 @llvm_mips_min_a_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
273 @llvm_mips_min_a_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
275 define void @llvm_mips_min_a_b_test() nounwind {
277 %0 = load <16 x i8>, ptr @llvm_mips_min_a_b_ARG1
278 %1 = load <16 x i8>, ptr @llvm_mips_min_a_b_ARG2
279 %2 = tail call <16 x i8> @llvm.mips.min.a.b(<16 x i8> %0, <16 x i8> %1)
280 store <16 x i8> %2, ptr @llvm_mips_min_a_b_RES
284 declare <16 x i8> @llvm.mips.min.a.b(<16 x i8>, <16 x i8>) nounwind
286 ; CHECK: llvm_mips_min_a_b_test:
291 ; CHECK: .size llvm_mips_min_a_b_test
293 @llvm_mips_min_a_h_ARG1 = global <8 x i16> <i16 0, i16 1, i16 2, i16 3, i16 4, i16 5, i16 6, i16 7>, align 16
294 @llvm_mips_min_a_h_ARG2 = global <8 x i16> <i16 8, i16 9, i16 10, i16 11, i16 12, i16 13, i16 14, i16 15>, align 16
295 @llvm_mips_min_a_h_RES = global <8 x i16> <i16 0, i16 0, i16 0, i16 0, i16 0, i16 0, i16 0, i16 0>, align 16
297 define void @llvm_mips_min_a_h_test() nounwind {
299 %0 = load <8 x i16>, ptr @llvm_mips_min_a_h_ARG1
300 %1 = load <8 x i16>, ptr @llvm_mips_min_a_h_ARG2
301 %2 = tail call <8 x i16> @llvm.mips.min.a.h(<8 x i16> %0, <8 x i16> %1)
302 store <8 x i16> %2, ptr @llvm_mips_min_a_h_RES
306 declare <8 x i16> @llvm.mips.min.a.h(<8 x i16>, <8 x i16>) nounwind
308 ; CHECK: llvm_mips_min_a_h_test:
313 ; CHECK: .size llvm_mips_min_a_h_test
315 @llvm_mips_min_a_w_ARG1 = global <4 x i32> <i32 0, i32 1, i32 2, i32 3>, align 16
316 @llvm_mips_min_a_w_ARG2 = global <4 x i32> <i32 4, i32 5, i32 6, i32 7>, align 16
317 @llvm_mips_min_a_w_RES = global <4 x i32> <i32 0, i32 0, i32 0, i32 0>, align 16
319 define void @llvm_mips_min_a_w_test() nounwind {
321 %0 = load <4 x i32>, ptr @llvm_mips_min_a_w_ARG1
322 %1 = load <4 x i32>, ptr @llvm_mips_min_a_w_ARG2
323 %2 = tail call <4 x i32> @llvm.mips.min.a.w(<4 x i32> %0, <4 x i32> %1)
324 store <4 x i32> %2, ptr @llvm_mips_min_a_w_RES
328 declare <4 x i32> @llvm.mips.min.a.w(<4 x i32>, <4 x i32>) nounwind
330 ; CHECK: llvm_mips_min_a_w_test:
335 ; CHECK: .size llvm_mips_min_a_w_test
337 @llvm_mips_min_a_d_ARG1 = global <2 x i64> <i64 0, i64 1>, align 16
338 @llvm_mips_min_a_d_ARG2 = global <2 x i64> <i64 2, i64 3>, align 16
339 @llvm_mips_min_a_d_RES = global <2 x i64> <i64 0, i64 0>, align 16
341 define void @llvm_mips_min_a_d_test() nounwind {
343 %0 = load <2 x i64>, ptr @llvm_mips_min_a_d_ARG1
344 %1 = load <2 x i64>, ptr @llvm_mips_min_a_d_ARG2
345 %2 = tail call <2 x i64> @llvm.mips.min.a.d(<2 x i64> %0, <2 x i64> %1)
346 store <2 x i64> %2, ptr @llvm_mips_min_a_d_RES
350 declare <2 x i64> @llvm.mips.min.a.d(<2 x i64>, <2 x i64>) nounwind
352 ; CHECK: llvm_mips_min_a_d_test:
357 ; CHECK: .size llvm_mips_min_a_d_test
359 @llvm_mips_min_s_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
360 @llvm_mips_min_s_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
361 @llvm_mips_min_s_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
363 define void @llvm_mips_min_s_b_test() nounwind {
365 %0 = load <16 x i8>, ptr @llvm_mips_min_s_b_ARG1
366 %1 = load <16 x i8>, ptr @llvm_mips_min_s_b_ARG2
367 %2 = tail call <16 x i8> @llvm.mips.min.s.b(<16 x i8> %0, <16 x i8> %1)
368 store <16 x i8> %2, ptr @llvm_mips_min_s_b_RES
372 declare <16 x i8> @llvm.mips.min.s.b(<16 x i8>, <16 x i8>) nounwind
374 ; CHECK: llvm_mips_min_s_b_test:
379 ; CHECK: .size llvm_mips_min_s_b_test
381 @llvm_mips_min_s_h_ARG1 = global <8 x i16> <i16 0, i16 1, i16 2, i16 3, i16 4, i16 5, i16 6, i16 7>, align 16
382 @llvm_mips_min_s_h_ARG2 = global <8 x i16> <i16 8, i16 9, i16 10, i16 11, i16 12, i16 13, i16 14, i16 15>, align 16
383 @llvm_mips_min_s_h_RES = global <8 x i16> <i16 0, i16 0, i16 0, i16 0, i16 0, i16 0, i16 0, i16 0>, align 16
385 define void @llvm_mips_min_s_h_test() nounwind {
387 %0 = load <8 x i16>, ptr @llvm_mips_min_s_h_ARG1
388 %1 = load <8 x i16>, ptr @llvm_mips_min_s_h_ARG2
389 %2 = tail call <8 x i16> @llvm.mips.min.s.h(<8 x i16> %0, <8 x i16> %1)
390 store <8 x i16> %2, ptr @llvm_mips_min_s_h_RES
394 declare <8 x i16> @llvm.mips.min.s.h(<8 x i16>, <8 x i16>) nounwind
396 ; CHECK: llvm_mips_min_s_h_test:
401 ; CHECK: .size llvm_mips_min_s_h_test
403 @llvm_mips_min_s_w_ARG1 = global <4 x i32> <i32 0, i32 1, i32 2, i32 3>, align 16
404 @llvm_mips_min_s_w_ARG2 = global <4 x i32> <i32 4, i32 5, i32 6, i32 7>, align 16
405 @llvm_mips_min_s_w_RES = global <4 x i32> <i32 0, i32 0, i32 0, i32 0>, align 16
407 define void @llvm_mips_min_s_w_test() nounwind {
409 %0 = load <4 x i32>, ptr @llvm_mips_min_s_w_ARG1
410 %1 = load <4 x i32>, ptr @llvm_mips_min_s_w_ARG2
411 %2 = tail call <4 x i32> @llvm.mips.min.s.w(<4 x i32> %0, <4 x i32> %1)
412 store <4 x i32> %2, ptr @llvm_mips_min_s_w_RES
416 declare <4 x i32> @llvm.mips.min.s.w(<4 x i32>, <4 x i32>) nounwind
418 ; CHECK: llvm_mips_min_s_w_test:
423 ; CHECK: .size llvm_mips_min_s_w_test
425 @llvm_mips_min_s_d_ARG1 = global <2 x i64> <i64 0, i64 1>, align 16
426 @llvm_mips_min_s_d_ARG2 = global <2 x i64> <i64 2, i64 3>, align 16
427 @llvm_mips_min_s_d_RES = global <2 x i64> <i64 0, i64 0>, align 16
429 define void @llvm_mips_min_s_d_test() nounwind {
431 %0 = load <2 x i64>, ptr @llvm_mips_min_s_d_ARG1
432 %1 = load <2 x i64>, ptr @llvm_mips_min_s_d_ARG2
433 %2 = tail call <2 x i64> @llvm.mips.min.s.d(<2 x i64> %0, <2 x i64> %1)
434 store <2 x i64> %2, ptr @llvm_mips_min_s_d_RES
438 declare <2 x i64> @llvm.mips.min.s.d(<2 x i64>, <2 x i64>) nounwind
440 ; CHECK: llvm_mips_min_s_d_test:
445 ; CHECK: .size llvm_mips_min_s_d_test
447 @llvm_mips_min_u_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
448 @llvm_mips_min_u_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
449 @llvm_mips_min_u_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
451 define void @llvm_mips_min_u_b_test() nounwind {
453 %0 = load <16 x i8>, ptr @llvm_mips_min_u_b_ARG1
454 %1 = load <16 x i8>, ptr @llvm_mips_min_u_b_ARG2
455 %2 = tail call <16 x i8> @llvm.mips.min.u.b(<16 x i8> %0, <16 x i8> %1)
456 store <16 x i8> %2, ptr @llvm_mips_min_u_b_RES
460 declare <16 x i8> @llvm.mips.min.u.b(<16 x i8>, <16 x i8>) nounwind
462 ; CHECK: llvm_mips_min_u_b_test:
467 ; CHECK: .size llvm_mips_min_u_b_test
469 @llvm_mips_min_u_h_ARG1 = global <8 x i16> <i16 0, i16 1, i16 2, i16 3, i16 4, i16 5, i16 6, i16 7>, align 16
470 @llvm_mips_min_u_h_ARG2 = global <8 x i16> <i16 8, i16 9, i16 10, i16 11, i16 12, i16 13, i16 14, i16 15>, align 16
471 @llvm_mips_min_u_h_RES = global <8 x i16> <i16 0, i16 0, i16 0, i16 0, i16 0, i16 0, i16 0, i16 0>, align 16
473 define void @llvm_mips_min_u_h_test() nounwind {
475 %0 = load <8 x i16>, ptr @llvm_mips_min_u_h_ARG1
476 %1 = load <8 x i16>, ptr @llvm_mips_min_u_h_ARG2
477 %2 = tail call <8 x i16> @llvm.mips.min.u.h(<8 x i16> %0, <8 x i16> %1)
478 store <8 x i16> %2, ptr @llvm_mips_min_u_h_RES
482 declare <8 x i16> @llvm.mips.min.u.h(<8 x i16>, <8 x i16>) nounwind
484 ; CHECK: llvm_mips_min_u_h_test:
489 ; CHECK: .size llvm_mips_min_u_h_test
491 @llvm_mips_min_u_w_ARG1 = global <4 x i32> <i32 0, i32 1, i32 2, i32 3>, align 16
492 @llvm_mips_min_u_w_ARG2 = global <4 x i32> <i32 4, i32 5, i32 6, i32 7>, align 16
493 @llvm_mips_min_u_w_RES = global <4 x i32> <i32 0, i32 0, i32 0, i32 0>, align 16
495 define void @llvm_mips_min_u_w_test() nounwind {
497 %0 = load <4 x i32>, ptr @llvm_mips_min_u_w_ARG1
498 %1 = load <4 x i32>, ptr @llvm_mips_min_u_w_ARG2
499 %2 = tail call <4 x i32> @llvm.mips.min.u.w(<4 x i32> %0, <4 x i32> %1)
500 store <4 x i32> %2, ptr @llvm_mips_min_u_w_RES
504 declare <4 x i32> @llvm.mips.min.u.w(<4 x i32>, <4 x i32>) nounwind
506 ; CHECK: llvm_mips_min_u_w_test:
511 ; CHECK: .size llvm_mips_min_u_w_test
513 @llvm_mips_min_u_d_ARG1 = global <2 x i64> <i64 0, i64 1>, align 16
514 @llvm_mips_min_u_d_ARG2 = global <2 x i64> <i64 2, i64 3>, align 16
515 @llvm_mips_min_u_d_RES = global <2 x i64> <i64 0, i64 0>, align 16
517 define void @llvm_mips_min_u_d_test() nounwind {
519 %0 = load <2 x i64>, ptr @llvm_mips_min_u_d_ARG1
520 %1 = load <2 x i64>, ptr @llvm_mips_min_u_d_ARG2
521 %2 = tail call <2 x i64> @llvm.mips.min.u.d(<2 x i64> %0, <2 x i64> %1)
522 store <2 x i64> %2, ptr @llvm_mips_min_u_d_RES
526 declare <2 x i64> @llvm.mips.min.u.d(<2 x i64>, <2 x i64>) nounwind
528 ; CHECK: llvm_mips_min_u_d_test:
533 ; CHECK: .size llvm_mips_min_u_d_test
535 @llvm_mips_mod_s_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
536 @llvm_mips_mod_s_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
537 @llvm_mips_mod_s_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
539 define void @llvm_mips_mod_s_b_test() nounwind {
541 %0 = load <16 x i8>, ptr @llvm_mips_mod_s_b_ARG1
542 %1 = load <16 x i8>, ptr @llvm_mips_mod_s_b_ARG2
543 %2 = tail call <16 x i8> @llvm.mips.mod.s.b(<16 x i8> %0, <16 x i8> %1)
544 store <16 x i8> %2, ptr @llvm_mips_mod_s_b_RES
548 declare <16 x i8> @llvm.mips.mod.s.b(<16 x i8>, <16 x i8>) nounwind
550 ; CHECK: llvm_mips_mod_s_b_test:
555 ; CHECK: .size llvm_mips_mod_s_b_test
557 @llvm_mips_mod_s_h_ARG1 = global <8 x i16> <i16 0, i16 1, i16 2, i16 3, i16 4, i16 5, i16 6, i16 7>, align 16
558 @llvm_mips_mod_s_h_ARG2 = global <8 x i16> <i16 8, i16 9, i16 10, i16 11, i16 12, i16 13, i16 14, i16 15>, align 16
559 @llvm_mips_mod_s_h_RES = global <8 x i16> <i16 0, i16 0, i16 0, i16 0, i16 0, i16 0, i16 0, i16 0>, align 16
561 define void @llvm_mips_mod_s_h_test() nounwind {
563 %0 = load <8 x i16>, ptr @llvm_mips_mod_s_h_ARG1
564 %1 = load <8 x i16>, ptr @llvm_mips_mod_s_h_ARG2
565 %2 = tail call <8 x i16> @llvm.mips.mod.s.h(<8 x i16> %0, <8 x i16> %1)
566 store <8 x i16> %2, ptr @llvm_mips_mod_s_h_RES
570 declare <8 x i16> @llvm.mips.mod.s.h(<8 x i16>, <8 x i16>) nounwind
572 ; CHECK: llvm_mips_mod_s_h_test:
577 ; CHECK: .size llvm_mips_mod_s_h_test
579 @llvm_mips_mod_s_w_ARG1 = global <4 x i32> <i32 0, i32 1, i32 2, i32 3>, align 16
580 @llvm_mips_mod_s_w_ARG2 = global <4 x i32> <i32 4, i32 5, i32 6, i32 7>, align 16
581 @llvm_mips_mod_s_w_RES = global <4 x i32> <i32 0, i32 0, i32 0, i32 0>, align 16
583 define void @llvm_mips_mod_s_w_test() nounwind {
585 %0 = load <4 x i32>, ptr @llvm_mips_mod_s_w_ARG1
586 %1 = load <4 x i32>, ptr @llvm_mips_mod_s_w_ARG2
587 %2 = tail call <4 x i32> @llvm.mips.mod.s.w(<4 x i32> %0, <4 x i32> %1)
588 store <4 x i32> %2, ptr @llvm_mips_mod_s_w_RES
592 declare <4 x i32> @llvm.mips.mod.s.w(<4 x i32>, <4 x i32>) nounwind
594 ; CHECK: llvm_mips_mod_s_w_test:
599 ; CHECK: .size llvm_mips_mod_s_w_test
601 @llvm_mips_mod_s_d_ARG1 = global <2 x i64> <i64 0, i64 1>, align 16
602 @llvm_mips_mod_s_d_ARG2 = global <2 x i64> <i64 2, i64 3>, align 16
603 @llvm_mips_mod_s_d_RES = global <2 x i64> <i64 0, i64 0>, align 16
605 define void @llvm_mips_mod_s_d_test() nounwind {
607 %0 = load <2 x i64>, ptr @llvm_mips_mod_s_d_ARG1
608 %1 = load <2 x i64>, ptr @llvm_mips_mod_s_d_ARG2
609 %2 = tail call <2 x i64> @llvm.mips.mod.s.d(<2 x i64> %0, <2 x i64> %1)
610 store <2 x i64> %2, ptr @llvm_mips_mod_s_d_RES
614 declare <2 x i64> @llvm.mips.mod.s.d(<2 x i64>, <2 x i64>) nounwind
616 ; CHECK: llvm_mips_mod_s_d_test:
621 ; CHECK: .size llvm_mips_mod_s_d_test
623 @llvm_mips_mod_u_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
624 @llvm_mips_mod_u_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
625 @llvm_mips_mod_u_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
627 define void @llvm_mips_mod_u_b_test() nounwind {
629 %0 = load <16 x i8>, ptr @llvm_mips_mod_u_b_ARG1
630 %1 = load <16 x i8>, ptr @llvm_mips_mod_u_b_ARG2
631 %2 = tail call <16 x i8> @llvm.mips.mod.u.b(<16 x i8> %0, <16 x i8> %1)
632 store <16 x i8> %2, ptr @llvm_mips_mod_u_b_RES
636 declare <16 x i8> @llvm.mips.mod.u.b(<16 x i8>, <16 x i8>) nounwind
638 ; CHECK: llvm_mips_mod_u_b_test:
643 ; CHECK: .size llvm_mips_mod_u_b_test
645 @llvm_mips_mod_u_h_ARG1 = global <8 x i16> <i16 0, i16 1, i16 2, i16 3, i16 4, i16 5, i16 6, i16 7>, align 16
646 @llvm_mips_mod_u_h_ARG2 = global <8 x i16> <i16 8, i16 9, i16 10, i16 11, i16 12, i16 13, i16 14, i16 15>, align 16
647 @llvm_mips_mod_u_h_RES = global <8 x i16> <i16 0, i16 0, i16 0, i16 0, i16 0, i16 0, i16 0, i16 0>, align 16
649 define void @llvm_mips_mod_u_h_test() nounwind {
651 %0 = load <8 x i16>, ptr @llvm_mips_mod_u_h_ARG1
652 %1 = load <8 x i16>, ptr @llvm_mips_mod_u_h_ARG2
653 %2 = tail call <8 x i16> @llvm.mips.mod.u.h(<8 x i16> %0, <8 x i16> %1)
654 store <8 x i16> %2, ptr @llvm_mips_mod_u_h_RES
658 declare <8 x i16> @llvm.mips.mod.u.h(<8 x i16>, <8 x i16>) nounwind
660 ; CHECK: llvm_mips_mod_u_h_test:
665 ; CHECK: .size llvm_mips_mod_u_h_test
667 @llvm_mips_mod_u_w_ARG1 = global <4 x i32> <i32 0, i32 1, i32 2, i32 3>, align 16
668 @llvm_mips_mod_u_w_ARG2 = global <4 x i32> <i32 4, i32 5, i32 6, i32 7>, align 16
669 @llvm_mips_mod_u_w_RES = global <4 x i32> <i32 0, i32 0, i32 0, i32 0>, align 16
671 define void @llvm_mips_mod_u_w_test() nounwind {
673 %0 = load <4 x i32>, ptr @llvm_mips_mod_u_w_ARG1
674 %1 = load <4 x i32>, ptr @llvm_mips_mod_u_w_ARG2
675 %2 = tail call <4 x i32> @llvm.mips.mod.u.w(<4 x i32> %0, <4 x i32> %1)
676 store <4 x i32> %2, ptr @llvm_mips_mod_u_w_RES
680 declare <4 x i32> @llvm.mips.mod.u.w(<4 x i32>, <4 x i32>) nounwind
682 ; CHECK: llvm_mips_mod_u_w_test:
687 ; CHECK: .size llvm_mips_mod_u_w_test
689 @llvm_mips_mod_u_d_ARG1 = global <2 x i64> <i64 0, i64 1>, align 16
690 @llvm_mips_mod_u_d_ARG2 = global <2 x i64> <i64 2, i64 3>, align 16
691 @llvm_mips_mod_u_d_RES = global <2 x i64> <i64 0, i64 0>, align 16
693 define void @llvm_mips_mod_u_d_test() nounwind {
695 %0 = load <2 x i64>, ptr @llvm_mips_mod_u_d_ARG1
696 %1 = load <2 x i64>, ptr @llvm_mips_mod_u_d_ARG2
697 %2 = tail call <2 x i64> @llvm.mips.mod.u.d(<2 x i64> %0, <2 x i64> %1)
698 store <2 x i64> %2, ptr @llvm_mips_mod_u_d_RES
702 declare <2 x i64> @llvm.mips.mod.u.d(<2 x i64>, <2 x i64>) nounwind
704 ; CHECK: llvm_mips_mod_u_d_test:
709 ; CHECK: .size llvm_mips_mod_u_d_test
711 @llvm_mips_mulv_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
712 @llvm_mips_mulv_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
713 @llvm_mips_mulv_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
715 define void @llvm_mips_mulv_b_test() nounwind {
717 %0 = load <16 x i8>, ptr @llvm_mips_mulv_b_ARG1
718 %1 = load <16 x i8>, ptr @llvm_mips_mulv_b_ARG2
719 %2 = tail call <16 x i8> @llvm.mips.mulv.b(<16 x i8> %0, <16 x i8> %1)
720 store <16 x i8> %2, ptr @llvm_mips_mulv_b_RES
724 declare <16 x i8> @llvm.mips.mulv.b(<16 x i8>, <16 x i8>) nounwind
726 ; CHECK: llvm_mips_mulv_b_test:
731 ; CHECK: .size llvm_mips_mulv_b_test
733 @llvm_mips_mulv_h_ARG1 = global <8 x i16> <i16 0, i16 1, i16 2, i16 3, i16 4, i16 5, i16 6, i16 7>, align 16
734 @llvm_mips_mulv_h_ARG2 = global <8 x i16> <i16 8, i16 9, i16 10, i16 11, i16 12, i16 13, i16 14, i16 15>, align 16
735 @llvm_mips_mulv_h_RES = global <8 x i16> <i16 0, i16 0, i16 0, i16 0, i16 0, i16 0, i16 0, i16 0>, align 16
737 define void @llvm_mips_mulv_h_test() nounwind {
739 %0 = load <8 x i16>, ptr @llvm_mips_mulv_h_ARG1
740 %1 = load <8 x i16>, ptr @llvm_mips_mulv_h_ARG2
741 %2 = tail call <8 x i16> @llvm.mips.mulv.h(<8 x i16> %0, <8 x i16> %1)
742 store <8 x i16> %2, ptr @llvm_mips_mulv_h_RES
746 declare <8 x i16> @llvm.mips.mulv.h(<8 x i16>, <8 x i16>) nounwind
748 ; CHECK: llvm_mips_mulv_h_test:
753 ; CHECK: .size llvm_mips_mulv_h_test
755 @llvm_mips_mulv_w_ARG1 = global <4 x i32> <i32 0, i32 1, i32 2, i32 3>, align 16
756 @llvm_mips_mulv_w_ARG2 = global <4 x i32> <i32 4, i32 5, i32 6, i32 7>, align 16
757 @llvm_mips_mulv_w_RES = global <4 x i32> <i32 0, i32 0, i32 0, i32 0>, align 16
759 define void @llvm_mips_mulv_w_test() nounwind {
761 %0 = load <4 x i32>, ptr @llvm_mips_mulv_w_ARG1
762 %1 = load <4 x i32>, ptr @llvm_mips_mulv_w_ARG2
763 %2 = tail call <4 x i32> @llvm.mips.mulv.w(<4 x i32> %0, <4 x i32> %1)
764 store <4 x i32> %2, ptr @llvm_mips_mulv_w_RES
768 declare <4 x i32> @llvm.mips.mulv.w(<4 x i32>, <4 x i32>) nounwind
770 ; CHECK: llvm_mips_mulv_w_test:
775 ; CHECK: .size llvm_mips_mulv_w_test
777 @llvm_mips_mulv_d_ARG1 = global <2 x i64> <i64 0, i64 1>, align 16
778 @llvm_mips_mulv_d_ARG2 = global <2 x i64> <i64 2, i64 3>, align 16
779 @llvm_mips_mulv_d_RES = global <2 x i64> <i64 0, i64 0>, align 16
781 define void @llvm_mips_mulv_d_test() nounwind {
783 %0 = load <2 x i64>, ptr @llvm_mips_mulv_d_ARG1
784 %1 = load <2 x i64>, ptr @llvm_mips_mulv_d_ARG2
785 %2 = tail call <2 x i64> @llvm.mips.mulv.d(<2 x i64> %0, <2 x i64> %1)
786 store <2 x i64> %2, ptr @llvm_mips_mulv_d_RES
790 declare <2 x i64> @llvm.mips.mulv.d(<2 x i64>, <2 x i64>) nounwind
792 ; CHECK: llvm_mips_mulv_d_test:
797 ; CHECK: .size llvm_mips_mulv_d_test
799 define void @mulv_b_test() nounwind {
801 %0 = load <16 x i8>, ptr @llvm_mips_mulv_b_ARG1
802 %1 = load <16 x i8>, ptr @llvm_mips_mulv_b_ARG2
803 %2 = mul <16 x i8> %0, %1
804 store <16 x i8> %2, ptr @llvm_mips_mulv_b_RES
808 ; CHECK: mulv_b_test:
813 ; CHECK: .size mulv_b_test
815 define void @mulv_h_test() nounwind {
817 %0 = load <8 x i16>, ptr @llvm_mips_mulv_h_ARG1
818 %1 = load <8 x i16>, ptr @llvm_mips_mulv_h_ARG2
819 %2 = mul <8 x i16> %0, %1
820 store <8 x i16> %2, ptr @llvm_mips_mulv_h_RES
824 ; CHECK: mulv_h_test:
829 ; CHECK: .size mulv_h_test
831 define void @mulv_w_test() nounwind {
833 %0 = load <4 x i32>, ptr @llvm_mips_mulv_w_ARG1
834 %1 = load <4 x i32>, ptr @llvm_mips_mulv_w_ARG2
835 %2 = mul <4 x i32> %0, %1
836 store <4 x i32> %2, ptr @llvm_mips_mulv_w_RES
840 ; CHECK: mulv_w_test:
845 ; CHECK: .size mulv_w_test
847 define void @mulv_d_test() nounwind {
849 %0 = load <2 x i64>, ptr @llvm_mips_mulv_d_ARG1
850 %1 = load <2 x i64>, ptr @llvm_mips_mulv_d_ARG2
851 %2 = mul <2 x i64> %0, %1
852 store <2 x i64> %2, ptr @llvm_mips_mulv_d_RES
856 ; CHECK: mulv_d_test:
861 ; CHECK: .size mulv_d_test