blob: b3eaf1c5dc6cfe2a9af9ee98bef3667cfd65a482 [file] [log] [blame]
Bob Wilsone60fee02009-06-22 23:27:02 +00001; RUN: llvm-as < %s | llc -march=arm -mattr=+neon > %t
2; RUN: grep vand %t | count 8
3; Note: function names do not include "vand" to allow simple grep for opcodes
4
5define <8 x i8> @v_andi8(<8 x i8>* %A, <8 x i8>* %B) nounwind {
6 %tmp1 = load <8 x i8>* %A
7 %tmp2 = load <8 x i8>* %B
8 %tmp3 = and <8 x i8> %tmp1, %tmp2
9 ret <8 x i8> %tmp3
10}
11
12define <4 x i16> @v_andi16(<4 x i16>* %A, <4 x i16>* %B) nounwind {
13 %tmp1 = load <4 x i16>* %A
14 %tmp2 = load <4 x i16>* %B
15 %tmp3 = and <4 x i16> %tmp1, %tmp2
16 ret <4 x i16> %tmp3
17}
18
19define <2 x i32> @v_andi32(<2 x i32>* %A, <2 x i32>* %B) nounwind {
20 %tmp1 = load <2 x i32>* %A
21 %tmp2 = load <2 x i32>* %B
22 %tmp3 = and <2 x i32> %tmp1, %tmp2
23 ret <2 x i32> %tmp3
24}
25
26define <1 x i64> @v_andi64(<1 x i64>* %A, <1 x i64>* %B) nounwind {
27 %tmp1 = load <1 x i64>* %A
28 %tmp2 = load <1 x i64>* %B
29 %tmp3 = and <1 x i64> %tmp1, %tmp2
30 ret <1 x i64> %tmp3
31}
32
33define <16 x i8> @v_andQi8(<16 x i8>* %A, <16 x i8>* %B) nounwind {
34 %tmp1 = load <16 x i8>* %A
35 %tmp2 = load <16 x i8>* %B
36 %tmp3 = and <16 x i8> %tmp1, %tmp2
37 ret <16 x i8> %tmp3
38}
39
40define <8 x i16> @v_andQi16(<8 x i16>* %A, <8 x i16>* %B) nounwind {
41 %tmp1 = load <8 x i16>* %A
42 %tmp2 = load <8 x i16>* %B
43 %tmp3 = and <8 x i16> %tmp1, %tmp2
44 ret <8 x i16> %tmp3
45}
46
47define <4 x i32> @v_andQi32(<4 x i32>* %A, <4 x i32>* %B) nounwind {
48 %tmp1 = load <4 x i32>* %A
49 %tmp2 = load <4 x i32>* %B
50 %tmp3 = and <4 x i32> %tmp1, %tmp2
51 ret <4 x i32> %tmp3
52}
53
54define <2 x i64> @v_andQi64(<2 x i64>* %A, <2 x i64>* %B) nounwind {
55 %tmp1 = load <2 x i64>* %A
56 %tmp2 = load <2 x i64>* %B
57 %tmp3 = and <2 x i64> %tmp1, %tmp2
58 ret <2 x i64> %tmp3
59}