99 ret <4 x half > %res
1010}
1111
12+ define <4 x half > @test_16x4_lane_1 (<4 x half > %a , <4 x half > %b , <4 x half > %c ) {
13+ entry:
14+ ; CHECK-LABEL: test_16x4_lane_1
15+ ; CHECK: fcmla v{{[0-9]+}}.4h, v{{[0-9]+}}.4h, v{{[0-9]+}}.h[1], #0
16+ ;
17+ %c.cast = bitcast <4 x half > %c to <2 x i32 >
18+ %c.dup = shufflevector <2 x i32 > %c.cast , <2 x i32 > undef , <2 x i32 > <i32 1 , i32 1 >
19+ %c.res = bitcast <2 x i32 > %c.dup to <4 x half >
20+ %res = tail call <4 x half > @llvm.aarch64.neon.vcmla.rot0.v4f16 (<4 x half > %a , <4 x half > %b , <4 x half > %c.res )
21+ ret <4 x half > %res
22+ }
1223
1324define <4 x half > @test_rot90_16x4 (<4 x half > %a , <4 x half > %b , <4 x half > %c ) {
1425entry:
@@ -19,6 +30,18 @@ entry:
1930 ret <4 x half > %res
2031}
2132
33+ define <4 x half > @test_rot90_16x4_lane_0 (<4 x half > %a , <4 x half > %b , <4 x half > %c ) {
34+ entry:
35+ ; CHECK-LABEL: test_rot90_16x4_lane_0
36+ ; CHECK: fcmla v{{[0-9]+}}.4h, v{{[0-9]+}}.4h, v{{[0-9]+}}.h[0], #90
37+ ;
38+ %c.cast = bitcast <4 x half > %c to <2 x i32 >
39+ %c.dup = shufflevector <2 x i32 > %c.cast , <2 x i32 > undef , <2 x i32 > <i32 0 , i32 0 >
40+ %c.res = bitcast <2 x i32 > %c.dup to <4 x half >
41+ %res = tail call <4 x half > @llvm.aarch64.neon.vcmla.rot90.v4f16 (<4 x half > %a , <4 x half > %b , <4 x half > %c.res )
42+ ret <4 x half > %res
43+ }
44+
2245define <4 x half > @test_rot180_16x4 (<4 x half > %a , <4 x half > %b , <4 x half > %c ) {
2346entry:
2447; CHECK-LABEL: test_rot180_16x4
@@ -28,6 +51,18 @@ entry:
2851 ret <4 x half > %res
2952}
3053
54+ define <4 x half > @test_rot180_16x4_lane_0 (<4 x half > %a , <4 x half > %b , <8 x half > %c ) {
55+ entry:
56+ ; CHECK-LABEL: test_rot180_16x4_lane_0
57+ ; CHECK: fcmla v{{[0-9]+}}.4h, v{{[0-9]+}}.4h, v{{[0-9]+}}.h[0], #180
58+
59+ %c.cast = bitcast <8 x half > %c to <4 x i32 >
60+ %c.dup = shufflevector <4 x i32 > %c.cast , <4 x i32 > undef , <2 x i32 > <i32 0 , i32 0 >
61+ %c.res = bitcast <2 x i32 > %c.dup to <4 x half >
62+ %res = tail call <4 x half > @llvm.aarch64.neon.vcmla.rot180.v4f16 (<4 x half > %a , <4 x half > %b , <4 x half > %c.res )
63+ ret <4 x half > %res
64+ }
65+
3166define <4 x half > @test_rot270_16x4 (<4 x half > %a , <4 x half > %b , <4 x half > %c ) {
3267entry:
3368; CHECK-LABEL: test_rot270_16x4
@@ -82,6 +117,18 @@ entry:
82117 ret <8 x half > %res
83118}
84119
120+ define <8 x half > @test_16x8_lane_0 (<8 x half > %a , <8 x half > %b , <8 x half > %c ) {
121+ entry:
122+ ; CHECK-LABEL: test_16x8_lane_0
123+ ; CHECK: fcmla v{{[0-9]+}}.8h, v{{[0-9]+}}.8h, v{{[0-9]+}}.h[0], #0
124+ ;
125+ %c.cast = bitcast <8 x half > %c to <4 x i32 >
126+ %c.dup = shufflevector <4 x i32 > %c.cast , <4 x i32 > undef , <4 x i32 > <i32 0 , i32 0 , i32 0 , i32 0 >
127+ %c.res = bitcast <4 x i32 > %c.dup to <8 x half >
128+ %res = tail call <8 x half > @llvm.aarch64.neon.vcmla.rot0.v8f16 (<8 x half > %a , <8 x half > %b , <8 x half > %c.res )
129+ ret <8 x half > %res
130+ }
131+
85132define <8 x half > @test_rot90_16x8 (<8 x half > %a , <8 x half > %b , <8 x half > %c ) {
86133entry:
87134; CHECK-LABEL: test_rot90_16x8
@@ -91,6 +138,18 @@ entry:
91138 ret <8 x half > %res
92139}
93140
141+ define <8 x half > @test_rot90_16x8_lane_1 (<8 x half > %a , <8 x half > %b , <8 x half > %c ) {
142+ entry:
143+ ; CHECK-LABEL: test_rot90_16x8_lane_1
144+ ; CHECK: fcmla v{{[0-9]+}}.8h, v{{[0-9]+}}.8h, v{{[0-9]+}}.h[1], #90
145+ ;
146+ %c.cast = bitcast <8 x half > %c to <4 x i32 >
147+ %c.dup = shufflevector <4 x i32 > %c.cast , <4 x i32 > undef , <4 x i32 > <i32 1 , i32 1 , i32 1 , i32 1 >
148+ %c.res = bitcast <4 x i32 > %c.dup to <8 x half >
149+ %res = tail call <8 x half > @llvm.aarch64.neon.vcmla.rot90.v8f16 (<8 x half > %a , <8 x half > %b , <8 x half > %c.res )
150+ ret <8 x half > %res
151+ }
152+
94153define <8 x half > @test_rot180_16x8 (<8 x half > %a , <8 x half > %b , <8 x half > %c ) {
95154entry:
96155; CHECK-LABEL: test_rot180_16x8
@@ -100,6 +159,18 @@ entry:
100159 ret <8 x half > %res
101160}
102161
162+ define <8 x half > @test_rot180_16x8_lane_1 (<8 x half > %a , <8 x half > %b , <8 x half > %c ) {
163+ entry:
164+ ; CHECK-LABEL: test_rot180_16x8_lane_1
165+ ; CHECK: fcmla v{{[0-9]+}}.8h, v{{[0-9]+}}.8h, v{{[0-9]+}}.h[1], #180
166+ ;
167+ %c.cast = bitcast <8 x half > %c to <4 x i32 >
168+ %c.dup = shufflevector <4 x i32 > %c.cast , <4 x i32 > undef , <4 x i32 > <i32 1 , i32 1 , i32 1 , i32 1 >
169+ %c.res = bitcast <4 x i32 > %c.dup to <8 x half >
170+ %res = tail call <8 x half > @llvm.aarch64.neon.vcmla.rot180.v8f16 (<8 x half > %a , <8 x half > %b , <8 x half > %c.res )
171+ ret <8 x half > %res
172+ }
173+
103174define <8 x half > @test_rot270_16x8 (<8 x half > %a , <8 x half > %b , <8 x half > %c ) {
104175entry:
105176; CHECK-LABEL: test_rot270_16x8
@@ -109,6 +180,18 @@ entry:
109180 ret <8 x half > %res
110181}
111182
183+ define <8 x half > @test_rot270_16x8_lane_0 (<8 x half > %a , <8 x half > %b , <8 x half > %c ) {
184+ entry:
185+ ; CHECK-LABEL: test_rot270_16x8_lane_0
186+ ; CHECK: fcmla v{{[0-9]+}}.8h, v{{[0-9]+}}.8h, v{{[0-9]+}}.h[0], #270
187+ ;
188+ %c.cast = bitcast <8 x half > %c to <4 x i32 >
189+ %c.dup = shufflevector <4 x i32 > %c.cast , <4 x i32 > undef , <4 x i32 > <i32 0 , i32 0 , i32 0 , i32 0 >
190+ %c.res = bitcast <4 x i32 > %c.dup to <8 x half >
191+ %res = tail call <8 x half > @llvm.aarch64.neon.vcmla.rot270.v8f16 (<8 x half > %a , <8 x half > %b , <8 x half > %c.res )
192+ ret <8 x half > %res
193+ }
194+
112195define <4 x float > @test_32x4 (<4 x float > %a , <4 x float > %b , <4 x float > %c ) {
113196entry:
114197; CHECK-LABEL: test_32x4
@@ -118,6 +201,18 @@ entry:
118201 ret <4 x float > %res
119202}
120203
204+ define <4 x float > @test_32x4_lane_0 (<4 x float > %a , <4 x float > %b , <4 x float > %c ) {
205+ entry:
206+ ; CHECK-LABEL: test_32x4_lane_0
207+ ; CHECK: fcmla v{{[0-9]+}}.4s, v{{[0-9]+}}.4s, v{{[0-9]+}}.s[0], #0
208+ ;
209+ %c.cast = bitcast <4 x float > %c to <2 x i64 >
210+ %c.dup = shufflevector <2 x i64 > %c.cast , <2 x i64 > undef , <2 x i32 > <i32 0 , i32 0 >
211+ %c.res = bitcast <2 x i64 > %c.dup to <4 x float >
212+ %res = tail call <4 x float > @llvm.aarch64.neon.vcmla.rot0.v4f32 (<4 x float > %a , <4 x float > %b , <4 x float > %c.res )
213+ ret <4 x float > %res
214+ }
215+
121216define <4 x float > @test_rot90_32x4 (<4 x float > %a , <4 x float > %b , <4 x float > %c ) {
122217entry:
123218; CHECK-LABEL: test_rot90_32x4
0 commit comments