1 ; RUN: llc -mtriple=arm-eabi -mattr=+neon %s -o - | FileCheck %s
3 define <8 x i8> @vabss8(<8 x i8>* %A) nounwind {
6 %tmp1 = load <8 x i8>, <8 x i8>* %A
7 %tmp2 = call <8 x i8> @llvm.arm.neon.vabs.v8i8(<8 x i8> %tmp1)
11 define <4 x i16> @vabss16(<4 x i16>* %A) nounwind {
12 ;CHECK-LABEL: vabss16:
14 %tmp1 = load <4 x i16>, <4 x i16>* %A
15 %tmp2 = call <4 x i16> @llvm.arm.neon.vabs.v4i16(<4 x i16> %tmp1)
19 define <2 x i32> @vabss32(<2 x i32>* %A) nounwind {
20 ;CHECK-LABEL: vabss32:
22 %tmp1 = load <2 x i32>, <2 x i32>* %A
23 %tmp2 = call <2 x i32> @llvm.arm.neon.vabs.v2i32(<2 x i32> %tmp1)
27 define <2 x float> @vabsf32(<2 x float>* %A) nounwind {
28 ;CHECK-LABEL: vabsf32:
30 %tmp1 = load <2 x float>, <2 x float>* %A
31 %tmp2 = call <2 x float> @llvm.fabs.v2f32(<2 x float> %tmp1)
35 define <16 x i8> @vabsQs8(<16 x i8>* %A) nounwind {
36 ;CHECK-LABEL: vabsQs8:
38 %tmp1 = load <16 x i8>, <16 x i8>* %A
39 %tmp2 = call <16 x i8> @llvm.arm.neon.vabs.v16i8(<16 x i8> %tmp1)
43 define <8 x i16> @vabsQs16(<8 x i16>* %A) nounwind {
44 ;CHECK-LABEL: vabsQs16:
46 %tmp1 = load <8 x i16>, <8 x i16>* %A
47 %tmp2 = call <8 x i16> @llvm.arm.neon.vabs.v8i16(<8 x i16> %tmp1)
51 define <4 x i32> @vabsQs32(<4 x i32>* %A) nounwind {
52 ;CHECK-LABEL: vabsQs32:
54 %tmp1 = load <4 x i32>, <4 x i32>* %A
55 %tmp2 = call <4 x i32> @llvm.arm.neon.vabs.v4i32(<4 x i32> %tmp1)
59 define <4 x float> @vabsQf32(<4 x float>* %A) nounwind {
60 ;CHECK-LABEL: vabsQf32:
62 %tmp1 = load <4 x float>, <4 x float>* %A
63 %tmp2 = call <4 x float> @llvm.fabs.v4f32(<4 x float> %tmp1)
67 declare <8 x i8> @llvm.arm.neon.vabs.v8i8(<8 x i8>) nounwind readnone
68 declare <4 x i16> @llvm.arm.neon.vabs.v4i16(<4 x i16>) nounwind readnone
69 declare <2 x i32> @llvm.arm.neon.vabs.v2i32(<2 x i32>) nounwind readnone
70 declare <2 x float> @llvm.fabs.v2f32(<2 x float>) nounwind readnone
72 declare <16 x i8> @llvm.arm.neon.vabs.v16i8(<16 x i8>) nounwind readnone
73 declare <8 x i16> @llvm.arm.neon.vabs.v8i16(<8 x i16>) nounwind readnone
74 declare <4 x i32> @llvm.arm.neon.vabs.v4i32(<4 x i32>) nounwind readnone
75 declare <4 x float> @llvm.fabs.v4f32(<4 x float>) nounwind readnone
77 define <8 x i8> @vqabss8(<8 x i8>* %A) nounwind {
78 ;CHECK-LABEL: vqabss8:
80 %tmp1 = load <8 x i8>, <8 x i8>* %A
81 %tmp2 = call <8 x i8> @llvm.arm.neon.vqabs.v8i8(<8 x i8> %tmp1)
85 define <4 x i16> @vqabss16(<4 x i16>* %A) nounwind {
86 ;CHECK-LABEL: vqabss16:
88 %tmp1 = load <4 x i16>, <4 x i16>* %A
89 %tmp2 = call <4 x i16> @llvm.arm.neon.vqabs.v4i16(<4 x i16> %tmp1)
93 define <2 x i32> @vqabss32(<2 x i32>* %A) nounwind {
94 ;CHECK-LABEL: vqabss32:
96 %tmp1 = load <2 x i32>, <2 x i32>* %A
97 %tmp2 = call <2 x i32> @llvm.arm.neon.vqabs.v2i32(<2 x i32> %tmp1)
101 define <16 x i8> @vqabsQs8(<16 x i8>* %A) nounwind {
102 ;CHECK-LABEL: vqabsQs8:
104 %tmp1 = load <16 x i8>, <16 x i8>* %A
105 %tmp2 = call <16 x i8> @llvm.arm.neon.vqabs.v16i8(<16 x i8> %tmp1)
109 define <8 x i16> @vqabsQs16(<8 x i16>* %A) nounwind {
110 ;CHECK-LABEL: vqabsQs16:
112 %tmp1 = load <8 x i16>, <8 x i16>* %A
113 %tmp2 = call <8 x i16> @llvm.arm.neon.vqabs.v8i16(<8 x i16> %tmp1)
117 define <4 x i32> @vqabsQs32(<4 x i32>* %A) nounwind {
118 ;CHECK-LABEL: vqabsQs32:
120 %tmp1 = load <4 x i32>, <4 x i32>* %A
121 %tmp2 = call <4 x i32> @llvm.arm.neon.vqabs.v4i32(<4 x i32> %tmp1)
125 declare <8 x i8> @llvm.arm.neon.vqabs.v8i8(<8 x i8>) nounwind readnone
126 declare <4 x i16> @llvm.arm.neon.vqabs.v4i16(<4 x i16>) nounwind readnone
127 declare <2 x i32> @llvm.arm.neon.vqabs.v2i32(<2 x i32>) nounwind readnone
129 declare <16 x i8> @llvm.arm.neon.vqabs.v16i8(<16 x i8>) nounwind readnone
130 declare <8 x i16> @llvm.arm.neon.vqabs.v8i16(<8 x i16>) nounwind readnone
131 declare <4 x i32> @llvm.arm.neon.vqabs.v4i32(<4 x i32>) nounwind readnone