1 ; RUN: llc -mtriple=arm-eabi -mattr=+neon %s -o - | FileCheck %s
3 define <2 x i32> @vrecpei32(ptr %A) nounwind {
4 ;CHECK-LABEL: vrecpei32:
6 %tmp1 = load <2 x i32>, ptr %A
7 %tmp2 = call <2 x i32> @llvm.arm.neon.vrecpe.v2i32(<2 x i32> %tmp1)
11 define <4 x i32> @vrecpeQi32(ptr %A) nounwind {
12 ;CHECK-LABEL: vrecpeQi32:
14 %tmp1 = load <4 x i32>, ptr %A
15 %tmp2 = call <4 x i32> @llvm.arm.neon.vrecpe.v4i32(<4 x i32> %tmp1)
19 define <2 x float> @vrecpef32(ptr %A) nounwind {
20 ;CHECK-LABEL: vrecpef32:
22 %tmp1 = load <2 x float>, ptr %A
23 %tmp2 = call <2 x float> @llvm.arm.neon.vrecpe.v2f32(<2 x float> %tmp1)
27 define <4 x float> @vrecpeQf32(ptr %A) nounwind {
28 ;CHECK-LABEL: vrecpeQf32:
30 %tmp1 = load <4 x float>, ptr %A
31 %tmp2 = call <4 x float> @llvm.arm.neon.vrecpe.v4f32(<4 x float> %tmp1)
35 declare <2 x i32> @llvm.arm.neon.vrecpe.v2i32(<2 x i32>) nounwind readnone
36 declare <4 x i32> @llvm.arm.neon.vrecpe.v4i32(<4 x i32>) nounwind readnone
38 declare <2 x float> @llvm.arm.neon.vrecpe.v2f32(<2 x float>) nounwind readnone
39 declare <4 x float> @llvm.arm.neon.vrecpe.v4f32(<4 x float>) nounwind readnone
41 define <2 x float> @vrecpsf32(ptr %A, ptr %B) nounwind {
42 ;CHECK-LABEL: vrecpsf32:
44 %tmp1 = load <2 x float>, ptr %A
45 %tmp2 = load <2 x float>, ptr %B
46 %tmp3 = call <2 x float> @llvm.arm.neon.vrecps.v2f32(<2 x float> %tmp1, <2 x float> %tmp2)
50 define <4 x float> @vrecpsQf32(ptr %A, ptr %B) nounwind {
51 ;CHECK-LABEL: vrecpsQf32:
53 %tmp1 = load <4 x float>, ptr %A
54 %tmp2 = load <4 x float>, ptr %B
55 %tmp3 = call <4 x float> @llvm.arm.neon.vrecps.v4f32(<4 x float> %tmp1, <4 x float> %tmp2)
59 declare <2 x float> @llvm.arm.neon.vrecps.v2f32(<2 x float>, <2 x float>) nounwind readnone
60 declare <4 x float> @llvm.arm.neon.vrecps.v4f32(<4 x float>, <4 x float>) nounwind readnone
62 define <2 x i32> @vrsqrtei32(ptr %A) nounwind {
63 ;CHECK-LABEL: vrsqrtei32:
65 %tmp1 = load <2 x i32>, ptr %A
66 %tmp2 = call <2 x i32> @llvm.arm.neon.vrsqrte.v2i32(<2 x i32> %tmp1)
70 define <4 x i32> @vrsqrteQi32(ptr %A) nounwind {
71 ;CHECK-LABEL: vrsqrteQi32:
73 %tmp1 = load <4 x i32>, ptr %A
74 %tmp2 = call <4 x i32> @llvm.arm.neon.vrsqrte.v4i32(<4 x i32> %tmp1)
78 define <2 x float> @vrsqrtef32(ptr %A) nounwind {
79 ;CHECK-LABEL: vrsqrtef32:
81 %tmp1 = load <2 x float>, ptr %A
82 %tmp2 = call <2 x float> @llvm.arm.neon.vrsqrte.v2f32(<2 x float> %tmp1)
86 define <4 x float> @vrsqrteQf32(ptr %A) nounwind {
87 ;CHECK-LABEL: vrsqrteQf32:
89 %tmp1 = load <4 x float>, ptr %A
90 %tmp2 = call <4 x float> @llvm.arm.neon.vrsqrte.v4f32(<4 x float> %tmp1)
94 declare <2 x i32> @llvm.arm.neon.vrsqrte.v2i32(<2 x i32>) nounwind readnone
95 declare <4 x i32> @llvm.arm.neon.vrsqrte.v4i32(<4 x i32>) nounwind readnone
97 declare <2 x float> @llvm.arm.neon.vrsqrte.v2f32(<2 x float>) nounwind readnone
98 declare <4 x float> @llvm.arm.neon.vrsqrte.v4f32(<4 x float>) nounwind readnone
100 define <2 x float> @vrsqrtsf32(ptr %A, ptr %B) nounwind {
101 ;CHECK-LABEL: vrsqrtsf32:
103 %tmp1 = load <2 x float>, ptr %A
104 %tmp2 = load <2 x float>, ptr %B
105 %tmp3 = call <2 x float> @llvm.arm.neon.vrsqrts.v2f32(<2 x float> %tmp1, <2 x float> %tmp2)
106 ret <2 x float> %tmp3
109 define <4 x float> @vrsqrtsQf32(ptr %A, ptr %B) nounwind {
110 ;CHECK-LABEL: vrsqrtsQf32:
112 %tmp1 = load <4 x float>, ptr %A
113 %tmp2 = load <4 x float>, ptr %B
114 %tmp3 = call <4 x float> @llvm.arm.neon.vrsqrts.v4f32(<4 x float> %tmp1, <4 x float> %tmp2)
115 ret <4 x float> %tmp3
118 declare <2 x float> @llvm.arm.neon.vrsqrts.v2f32(<2 x float>, <2 x float>) nounwind readnone
119 declare <4 x float> @llvm.arm.neon.vrsqrts.v4f32(<4 x float>, <4 x float>) nounwind readnone