1 ; RUN: llc < %s -march=arm -mattr=+neon | FileCheck %s
3 define arm_apcscc <8 x i8> @test_vrev64D8(<8 x i8>* %A) nounwind {
6 %tmp1 = load <8 x i8>* %A
7 %tmp2 = shufflevector <8 x i8> %tmp1, <8 x i8> undef, <8 x i32> <i32 7, i32 6, i32 5, i32 4, i32 3, i32 2, i32 1, i32 0>
11 define arm_apcscc <4 x i16> @test_vrev64D16(<4 x i16>* %A) nounwind {
12 ;CHECK: test_vrev64D16:
14 %tmp1 = load <4 x i16>* %A
15 %tmp2 = shufflevector <4 x i16> %tmp1, <4 x i16> undef, <4 x i32> <i32 3, i32 2, i32 1, i32 0>
19 define arm_apcscc <2 x i32> @test_vrev64D32(<2 x i32>* %A) nounwind {
20 ;CHECK: test_vrev64D32:
22 %tmp1 = load <2 x i32>* %A
23 %tmp2 = shufflevector <2 x i32> %tmp1, <2 x i32> undef, <2 x i32> <i32 1, i32 0>
27 define arm_apcscc <2 x float> @test_vrev64Df(<2 x float>* %A) nounwind {
28 ;CHECK: test_vrev64Df:
30 %tmp1 = load <2 x float>* %A
31 %tmp2 = shufflevector <2 x float> %tmp1, <2 x float> undef, <2 x i32> <i32 1, i32 0>
35 define arm_apcscc <16 x i8> @test_vrev64Q8(<16 x i8>* %A) nounwind {
36 ;CHECK: test_vrev64Q8:
38 %tmp1 = load <16 x i8>* %A
39 %tmp2 = shufflevector <16 x i8> %tmp1, <16 x i8> undef, <16 x i32> <i32 7, i32 6, i32 5, i32 4, i32 3, i32 2, i32 1, i32 0, i32 15, i32 14, i32 13, i32 12, i32 11, i32 10, i32 9, i32 8>
43 define arm_apcscc <8 x i16> @test_vrev64Q16(<8 x i16>* %A) nounwind {
44 ;CHECK: test_vrev64Q16:
46 %tmp1 = load <8 x i16>* %A
47 %tmp2 = shufflevector <8 x i16> %tmp1, <8 x i16> undef, <8 x i32> <i32 3, i32 2, i32 1, i32 0, i32 7, i32 6, i32 5, i32 4>
51 define arm_apcscc <4 x i32> @test_vrev64Q32(<4 x i32>* %A) nounwind {
52 ;CHECK: test_vrev64Q32:
54 %tmp1 = load <4 x i32>* %A
55 %tmp2 = shufflevector <4 x i32> %tmp1, <4 x i32> undef, <4 x i32> <i32 1, i32 0, i32 3, i32 2>
59 define arm_apcscc <4 x float> @test_vrev64Qf(<4 x float>* %A) nounwind {
60 ;CHECK: test_vrev64Qf:
62 %tmp1 = load <4 x float>* %A
63 %tmp2 = shufflevector <4 x float> %tmp1, <4 x float> undef, <4 x i32> <i32 1, i32 0, i32 3, i32 2>
67 define arm_apcscc <8 x i8> @test_vrev32D8(<8 x i8>* %A) nounwind {
68 ;CHECK: test_vrev32D8:
70 %tmp1 = load <8 x i8>* %A
71 %tmp2 = shufflevector <8 x i8> %tmp1, <8 x i8> undef, <8 x i32> <i32 3, i32 2, i32 1, i32 0, i32 7, i32 6, i32 5, i32 4>
75 define arm_apcscc <4 x i16> @test_vrev32D16(<4 x i16>* %A) nounwind {
76 ;CHECK: test_vrev32D16:
78 %tmp1 = load <4 x i16>* %A
79 %tmp2 = shufflevector <4 x i16> %tmp1, <4 x i16> undef, <4 x i32> <i32 1, i32 0, i32 3, i32 2>
83 define arm_apcscc <16 x i8> @test_vrev32Q8(<16 x i8>* %A) nounwind {
84 ;CHECK: test_vrev32Q8:
86 %tmp1 = load <16 x i8>* %A
87 %tmp2 = shufflevector <16 x i8> %tmp1, <16 x i8> undef, <16 x i32> <i32 3, i32 2, i32 1, i32 0, i32 7, i32 6, i32 5, i32 4, i32 11, i32 10, i32 9, i32 8, i32 15, i32 14, i32 13, i32 12>
91 define arm_apcscc <8 x i16> @test_vrev32Q16(<8 x i16>* %A) nounwind {
92 ;CHECK: test_vrev32Q16:
94 %tmp1 = load <8 x i16>* %A
95 %tmp2 = shufflevector <8 x i16> %tmp1, <8 x i16> undef, <8 x i32> <i32 1, i32 0, i32 3, i32 2, i32 5, i32 4, i32 7, i32 6>
99 define arm_apcscc <8 x i8> @test_vrev16D8(<8 x i8>* %A) nounwind {
100 ;CHECK: test_vrev16D8:
102 %tmp1 = load <8 x i8>* %A
103 %tmp2 = shufflevector <8 x i8> %tmp1, <8 x i8> undef, <8 x i32> <i32 1, i32 0, i32 3, i32 2, i32 5, i32 4, i32 7, i32 6>
107 define arm_apcscc <16 x i8> @test_vrev16Q8(<16 x i8>* %A) nounwind {
108 ;CHECK: test_vrev16Q8:
110 %tmp1 = load <16 x i8>* %A
111 %tmp2 = shufflevector <16 x i8> %tmp1, <16 x i8> undef, <16 x i32> <i32 1, i32 0, i32 3, i32 2, i32 5, i32 4, i32 7, i32 6, i32 9, i32 8, i32 11, i32 10, i32 13, i32 12, i32 15, i32 14>