]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/CodeGen/ARM/vrsqrte.ll
Update llvm to r84175.
[FreeBSD/FreeBSD.git] / test / CodeGen / ARM / vrsqrte.ll
1 ; RUN: llvm-as < %s | llc -march=arm -mattr=+neon > %t
2 ; RUN: grep {vrsqrte\\.u32} %t | count 2
3 ; RUN: grep {vrsqrte\\.f32} %t | count 2
4
5 define <2 x i32> @vrsqrtei32(<2 x i32>* %A) nounwind {
6         %tmp1 = load <2 x i32>* %A
7         %tmp2 = call <2 x i32> @llvm.arm.neon.vrsqrte.v2i32(<2 x i32> %tmp1)
8         ret <2 x i32> %tmp2
9 }
10
11 define <4 x i32> @vrsqrteQi32(<4 x i32>* %A) nounwind {
12         %tmp1 = load <4 x i32>* %A
13         %tmp2 = call <4 x i32> @llvm.arm.neon.vrsqrte.v4i32(<4 x i32> %tmp1)
14         ret <4 x i32> %tmp2
15 }
16
17 define <2 x float> @vrsqrtef32(<2 x float>* %A) nounwind {
18         %tmp1 = load <2 x float>* %A
19         %tmp2 = call <2 x float> @llvm.arm.neon.vrsqrtef.v2f32(<2 x float> %tmp1)
20         ret <2 x float> %tmp2
21 }
22
23 define <4 x float> @vrsqrteQf32(<4 x float>* %A) nounwind {
24         %tmp1 = load <4 x float>* %A
25         %tmp2 = call <4 x float> @llvm.arm.neon.vrsqrtef.v4f32(<4 x float> %tmp1)
26         ret <4 x float> %tmp2
27 }
28
29 declare <2 x i32> @llvm.arm.neon.vrsqrte.v2i32(<2 x i32>) nounwind readnone
30 declare <4 x i32> @llvm.arm.neon.vrsqrte.v4i32(<4 x i32>) nounwind readnone
31
32 declare <2 x float> @llvm.arm.neon.vrsqrtef.v2f32(<2 x float>) nounwind readnone
33 declare <4 x float> @llvm.arm.neon.vrsqrtef.v4f32(<4 x float>) nounwind readnone