1 ; RUN: llc < %s -march=arm -mattr=+neon | FileCheck %s
3 define <2 x i32> @vcvt_f32tos32(<2 x float>* %A) nounwind {
6 %tmp1 = load <2 x float>* %A
7 %tmp2 = call <2 x i32> @llvm.arm.neon.vcvtfp2fxs.v2i32.v2f32(<2 x float> %tmp1, i32 1)
11 define <2 x i32> @vcvt_f32tou32(<2 x float>* %A) nounwind {
12 ;CHECK: vcvt_f32tou32:
14 %tmp1 = load <2 x float>* %A
15 %tmp2 = call <2 x i32> @llvm.arm.neon.vcvtfp2fxu.v2i32.v2f32(<2 x float> %tmp1, i32 1)
19 define <2 x float> @vcvt_s32tof32(<2 x i32>* %A) nounwind {
20 ;CHECK: vcvt_s32tof32:
22 %tmp1 = load <2 x i32>* %A
23 %tmp2 = call <2 x float> @llvm.arm.neon.vcvtfxs2fp.v2f32.v2i32(<2 x i32> %tmp1, i32 1)
27 define <2 x float> @vcvt_u32tof32(<2 x i32>* %A) nounwind {
28 ;CHECK: vcvt_u32tof32:
30 %tmp1 = load <2 x i32>* %A
31 %tmp2 = call <2 x float> @llvm.arm.neon.vcvtfxu2fp.v2f32.v2i32(<2 x i32> %tmp1, i32 1)
35 declare <2 x i32> @llvm.arm.neon.vcvtfp2fxs.v2i32.v2f32(<2 x float>, i32) nounwind readnone
36 declare <2 x i32> @llvm.arm.neon.vcvtfp2fxu.v2i32.v2f32(<2 x float>, i32) nounwind readnone
37 declare <2 x float> @llvm.arm.neon.vcvtfxs2fp.v2f32.v2i32(<2 x i32>, i32) nounwind readnone
38 declare <2 x float> @llvm.arm.neon.vcvtfxu2fp.v2f32.v2i32(<2 x i32>, i32) nounwind readnone
40 define <4 x i32> @vcvtQ_f32tos32(<4 x float>* %A) nounwind {
41 ;CHECK: vcvtQ_f32tos32:
43 %tmp1 = load <4 x float>* %A
44 %tmp2 = call <4 x i32> @llvm.arm.neon.vcvtfp2fxs.v4i32.v4f32(<4 x float> %tmp1, i32 1)
48 define <4 x i32> @vcvtQ_f32tou32(<4 x float>* %A) nounwind {
49 ;CHECK: vcvtQ_f32tou32:
51 %tmp1 = load <4 x float>* %A
52 %tmp2 = call <4 x i32> @llvm.arm.neon.vcvtfp2fxu.v4i32.v4f32(<4 x float> %tmp1, i32 1)
56 define <4 x float> @vcvtQ_s32tof32(<4 x i32>* %A) nounwind {
57 ;CHECK: vcvtQ_s32tof32:
59 %tmp1 = load <4 x i32>* %A
60 %tmp2 = call <4 x float> @llvm.arm.neon.vcvtfxs2fp.v4f32.v4i32(<4 x i32> %tmp1, i32 1)
64 define <4 x float> @vcvtQ_u32tof32(<4 x i32>* %A) nounwind {
65 ;CHECK: vcvtQ_u32tof32:
67 %tmp1 = load <4 x i32>* %A
68 %tmp2 = call <4 x float> @llvm.arm.neon.vcvtfxu2fp.v4f32.v4i32(<4 x i32> %tmp1, i32 1)
72 declare <4 x i32> @llvm.arm.neon.vcvtfp2fxs.v4i32.v4f32(<4 x float>, i32) nounwind readnone
73 declare <4 x i32> @llvm.arm.neon.vcvtfp2fxu.v4i32.v4f32(<4 x float>, i32) nounwind readnone
74 declare <4 x float> @llvm.arm.neon.vcvtfxs2fp.v4f32.v4i32(<4 x i32>, i32) nounwind readnone
75 declare <4 x float> @llvm.arm.neon.vcvtfxu2fp.v4f32.v4i32(<4 x i32>, i32) nounwind readnone