blob: ef0aa8a0584d57f8930993d6dd833ced33eac1df [file] [log] [blame]
Bob Wilsone76c5942009-10-08 23:33:03 +00001; RUN: llc < %s -march=arm -mattr=+neon | FileCheck %s
Bob Wilsone60fee02009-06-22 23:27:02 +00002
3define <2 x i32> @vrsqrtei32(<2 x i32>* %A) nounwind {
Bob Wilsone76c5942009-10-08 23:33:03 +00004;CHECK: vrsqrtei32:
5;CHECK: vrsqrte.u32
Bob Wilsone60fee02009-06-22 23:27:02 +00006 %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
11define <4 x i32> @vrsqrteQi32(<4 x i32>* %A) nounwind {
Bob Wilsone76c5942009-10-08 23:33:03 +000012;CHECK: vrsqrteQi32:
13;CHECK: vrsqrte.u32
Bob Wilsone60fee02009-06-22 23:27:02 +000014 %tmp1 = load <4 x i32>* %A
15 %tmp2 = call <4 x i32> @llvm.arm.neon.vrsqrte.v4i32(<4 x i32> %tmp1)
16 ret <4 x i32> %tmp2
17}
18
19define <2 x float> @vrsqrtef32(<2 x float>* %A) nounwind {
Bob Wilsone76c5942009-10-08 23:33:03 +000020;CHECK: vrsqrtef32:
21;CHECK: vrsqrte.f32
Bob Wilsone60fee02009-06-22 23:27:02 +000022 %tmp1 = load <2 x float>* %A
Bob Wilson8f10b3f2009-08-11 05:39:44 +000023 %tmp2 = call <2 x float> @llvm.arm.neon.vrsqrte.v2f32(<2 x float> %tmp1)
Bob Wilsone60fee02009-06-22 23:27:02 +000024 ret <2 x float> %tmp2
25}
26
27define <4 x float> @vrsqrteQf32(<4 x float>* %A) nounwind {
Bob Wilsone76c5942009-10-08 23:33:03 +000028;CHECK: vrsqrteQf32:
29;CHECK: vrsqrte.f32
Bob Wilsone60fee02009-06-22 23:27:02 +000030 %tmp1 = load <4 x float>* %A
Bob Wilson8f10b3f2009-08-11 05:39:44 +000031 %tmp2 = call <4 x float> @llvm.arm.neon.vrsqrte.v4f32(<4 x float> %tmp1)
Bob Wilsone60fee02009-06-22 23:27:02 +000032 ret <4 x float> %tmp2
33}
34
35declare <2 x i32> @llvm.arm.neon.vrsqrte.v2i32(<2 x i32>) nounwind readnone
36declare <4 x i32> @llvm.arm.neon.vrsqrte.v4i32(<4 x i32>) nounwind readnone
37
Bob Wilson8f10b3f2009-08-11 05:39:44 +000038declare <2 x float> @llvm.arm.neon.vrsqrte.v2f32(<2 x float>) nounwind readnone
39declare <4 x float> @llvm.arm.neon.vrsqrte.v4f32(<4 x float>) nounwind readnone