Alter 79292 to produce output that actually assembles.
[oota-llvm.git] / test / CodeGen / ARM / vrecpe.ll
1 ; RUN: llvm-as < %s | llc -march=arm -mattr=+neon > %t
2 ; RUN: grep {vrecpe\\.u32} %t | count 2
3 ; RUN: grep {vrecpe\\.f32} %t | count 2
4
5 define <2 x i32> @vrecpei32(<2 x i32>* %A) nounwind {
6         %tmp1 = load <2 x i32>* %A
7         %tmp2 = call <2 x i32> @llvm.arm.neon.vrecpe.v2i32(<2 x i32> %tmp1)
8         ret <2 x i32> %tmp2
9 }
10
11 define <4 x i32> @vrecpeQi32(<4 x i32>* %A) nounwind {
12         %tmp1 = load <4 x i32>* %A
13         %tmp2 = call <4 x i32> @llvm.arm.neon.vrecpe.v4i32(<4 x i32> %tmp1)
14         ret <4 x i32> %tmp2
15 }
16
17 define <2 x float> @vrecpef32(<2 x float>* %A) nounwind {
18         %tmp1 = load <2 x float>* %A
19         %tmp2 = call <2 x float> @llvm.arm.neon.vrecpe.v2f32(<2 x float> %tmp1)
20         ret <2 x float> %tmp2
21 }
22
23 define <4 x float> @vrecpeQf32(<4 x float>* %A) nounwind {
24         %tmp1 = load <4 x float>* %A
25         %tmp2 = call <4 x float> @llvm.arm.neon.vrecpe.v4f32(<4 x float> %tmp1)
26         ret <4 x float> %tmp2
27 }
28
29 declare <2 x i32> @llvm.arm.neon.vrecpe.v2i32(<2 x i32>) nounwind readnone
30 declare <4 x i32> @llvm.arm.neon.vrecpe.v4i32(<4 x i32>) nounwind readnone
31
32 declare <2 x float> @llvm.arm.neon.vrecpe.v2f32(<2 x float>) nounwind readnone
33 declare <4 x float> @llvm.arm.neon.vrecpe.v4f32(<4 x float>) nounwind readnone