1 ; RUN: llc < %s -mtriple=armv8 -mattr=+neon | FileCheck %s
2 define <4 x i32> @vcvtasq(<4 x float>* %A) {
4 ; CHECK: vcvta.s32.f32 q{{[0-9]+}}, q{{[0-9]+}}
5 %tmp1 = load <4 x float>, <4 x float>* %A
6 %tmp2 = call <4 x i32> @llvm.arm.neon.vcvtas.v4i32.v4f32(<4 x float> %tmp1)
10 define <2 x i32> @vcvtasd(<2 x float>* %A) {
12 ; CHECK: vcvta.s32.f32 d{{[0-9]+}}, d{{[0-9]+}}
13 %tmp1 = load <2 x float>, <2 x float>* %A
14 %tmp2 = call <2 x i32> @llvm.arm.neon.vcvtas.v2i32.v2f32(<2 x float> %tmp1)
18 define <4 x i32> @vcvtnsq(<4 x float>* %A) {
20 ; CHECK: vcvtn.s32.f32 q{{[0-9]+}}, q{{[0-9]+}}
21 %tmp1 = load <4 x float>, <4 x float>* %A
22 %tmp2 = call <4 x i32> @llvm.arm.neon.vcvtns.v4i32.v4f32(<4 x float> %tmp1)
26 define <2 x i32> @vcvtnsd(<2 x float>* %A) {
28 ; CHECK: vcvtn.s32.f32 d{{[0-9]+}}, d{{[0-9]+}}
29 %tmp1 = load <2 x float>, <2 x float>* %A
30 %tmp2 = call <2 x i32> @llvm.arm.neon.vcvtns.v2i32.v2f32(<2 x float> %tmp1)
34 define <4 x i32> @vcvtpsq(<4 x float>* %A) {
36 ; CHECK: vcvtp.s32.f32 q{{[0-9]+}}, q{{[0-9]+}}
37 %tmp1 = load <4 x float>, <4 x float>* %A
38 %tmp2 = call <4 x i32> @llvm.arm.neon.vcvtps.v4i32.v4f32(<4 x float> %tmp1)
42 define <2 x i32> @vcvtpsd(<2 x float>* %A) {
44 ; CHECK: vcvtp.s32.f32 d{{[0-9]+}}, d{{[0-9]+}}
45 %tmp1 = load <2 x float>, <2 x float>* %A
46 %tmp2 = call <2 x i32> @llvm.arm.neon.vcvtps.v2i32.v2f32(<2 x float> %tmp1)
50 define <4 x i32> @vcvtmsq(<4 x float>* %A) {
52 ; CHECK: vcvtm.s32.f32 q{{[0-9]+}}, q{{[0-9]+}}
53 %tmp1 = load <4 x float>, <4 x float>* %A
54 %tmp2 = call <4 x i32> @llvm.arm.neon.vcvtms.v4i32.v4f32(<4 x float> %tmp1)
58 define <2 x i32> @vcvtmsd(<2 x float>* %A) {
60 ; CHECK: vcvtm.s32.f32 d{{[0-9]+}}, d{{[0-9]+}}
61 %tmp1 = load <2 x float>, <2 x float>* %A
62 %tmp2 = call <2 x i32> @llvm.arm.neon.vcvtms.v2i32.v2f32(<2 x float> %tmp1)
66 define <4 x i32> @vcvtauq(<4 x float>* %A) {
68 ; CHECK: vcvta.u32.f32 q{{[0-9]+}}, q{{[0-9]+}}
69 %tmp1 = load <4 x float>, <4 x float>* %A
70 %tmp2 = call <4 x i32> @llvm.arm.neon.vcvtau.v4i32.v4f32(<4 x float> %tmp1)
74 define <2 x i32> @vcvtaud(<2 x float>* %A) {
76 ; CHECK: vcvta.u32.f32 d{{[0-9]+}}, d{{[0-9]+}}
77 %tmp1 = load <2 x float>, <2 x float>* %A
78 %tmp2 = call <2 x i32> @llvm.arm.neon.vcvtau.v2i32.v2f32(<2 x float> %tmp1)
82 define <4 x i32> @vcvtnuq(<4 x float>* %A) {
84 ; CHECK: vcvtn.u32.f32 q{{[0-9]+}}, q{{[0-9]+}}
85 %tmp1 = load <4 x float>, <4 x float>* %A
86 %tmp2 = call <4 x i32> @llvm.arm.neon.vcvtnu.v4i32.v4f32(<4 x float> %tmp1)
90 define <2 x i32> @vcvtnud(<2 x float>* %A) {
92 ; CHECK: vcvtn.u32.f32 d{{[0-9]+}}, d{{[0-9]+}}
93 %tmp1 = load <2 x float>, <2 x float>* %A
94 %tmp2 = call <2 x i32> @llvm.arm.neon.vcvtnu.v2i32.v2f32(<2 x float> %tmp1)
98 define <4 x i32> @vcvtpuq(<4 x float>* %A) {
100 ; CHECK: vcvtp.u32.f32 q{{[0-9]+}}, q{{[0-9]+}}
101 %tmp1 = load <4 x float>, <4 x float>* %A
102 %tmp2 = call <4 x i32> @llvm.arm.neon.vcvtpu.v4i32.v4f32(<4 x float> %tmp1)
106 define <2 x i32> @vcvtpud(<2 x float>* %A) {
108 ; CHECK: vcvtp.u32.f32 d{{[0-9]+}}, d{{[0-9]+}}
109 %tmp1 = load <2 x float>, <2 x float>* %A
110 %tmp2 = call <2 x i32> @llvm.arm.neon.vcvtpu.v2i32.v2f32(<2 x float> %tmp1)
114 define <4 x i32> @vcvtmuq(<4 x float>* %A) {
116 ; CHECK: vcvtm.u32.f32 q{{[0-9]+}}, q{{[0-9]+}}
117 %tmp1 = load <4 x float>, <4 x float>* %A
118 %tmp2 = call <4 x i32> @llvm.arm.neon.vcvtmu.v4i32.v4f32(<4 x float> %tmp1)
122 define <2 x i32> @vcvtmud(<2 x float>* %A) {
124 ; CHECK: vcvtm.u32.f32 d{{[0-9]+}}, d{{[0-9]+}}
125 %tmp1 = load <2 x float>, <2 x float>* %A
126 %tmp2 = call <2 x i32> @llvm.arm.neon.vcvtmu.v2i32.v2f32(<2 x float> %tmp1)
130 declare <4 x i32> @llvm.arm.neon.vcvtas.v4i32.v4f32(<4 x float>) nounwind readnone
131 declare <2 x i32> @llvm.arm.neon.vcvtas.v2i32.v2f32(<2 x float>) nounwind readnone
132 declare <4 x i32> @llvm.arm.neon.vcvtns.v4i32.v4f32(<4 x float>) nounwind readnone
133 declare <2 x i32> @llvm.arm.neon.vcvtns.v2i32.v2f32(<2 x float>) nounwind readnone
134 declare <4 x i32> @llvm.arm.neon.vcvtps.v4i32.v4f32(<4 x float>) nounwind readnone
135 declare <2 x i32> @llvm.arm.neon.vcvtps.v2i32.v2f32(<2 x float>) nounwind readnone
136 declare <4 x i32> @llvm.arm.neon.vcvtms.v4i32.v4f32(<4 x float>) nounwind readnone
137 declare <2 x i32> @llvm.arm.neon.vcvtms.v2i32.v2f32(<2 x float>) nounwind readnone
138 declare <4 x i32> @llvm.arm.neon.vcvtau.v4i32.v4f32(<4 x float>) nounwind readnone
139 declare <2 x i32> @llvm.arm.neon.vcvtau.v2i32.v2f32(<2 x float>) nounwind readnone
140 declare <4 x i32> @llvm.arm.neon.vcvtnu.v4i32.v4f32(<4 x float>) nounwind readnone
141 declare <2 x i32> @llvm.arm.neon.vcvtnu.v2i32.v2f32(<2 x float>) nounwind readnone
142 declare <4 x i32> @llvm.arm.neon.vcvtpu.v4i32.v4f32(<4 x float>) nounwind readnone
143 declare <2 x i32> @llvm.arm.neon.vcvtpu.v2i32.v2f32(<2 x float>) nounwind readnone
144 declare <4 x i32> @llvm.arm.neon.vcvtmu.v4i32.v4f32(<4 x float>) nounwind readnone
145 declare <2 x i32> @llvm.arm.neon.vcvtmu.v2i32.v2f32(<2 x float>) nounwind readnone