Skip to content

Commit ad09d20

Browse files
committed
[AArch64] NFC: Precursory test
1 parent aa9d467 commit ad09d20

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

llvm/test/CodeGen/AArch64/sve-streaming-mode-fixed-length-fp-arith.ll

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,19 @@ define <2 x float> @fdiv_v2f32(<2 x float> %op1, <2 x float> %op2) {
214214
ret <2 x float> %res
215215
}
216216

217+
; Test that we don't optimise this using a NEON instruction, when
218+
; NEON is not available.
219+
define <2 x float> @fdiv_v232_pow2(<2 x i32> %in) {
220+
; CHECK-LABEL: fdiv_v232_pow2:
221+
; CHECK: // %bb.0: // %entry
222+
; CHECK-NEXT: scvtf v0.2s, v0.2s, #4
223+
; CHECK-NEXT: ret
224+
entry:
225+
%vcvt.i = sitofp <2 x i32> %in to <2 x float>
226+
%div.i = fdiv <2 x float> %vcvt.i, <float 16.0, float 16.0>
227+
ret <2 x float> %div.i
228+
}
229+
217230
define <4 x float> @fdiv_v4f32(<4 x float> %op1, <4 x float> %op2) {
218231
; CHECK-LABEL: fdiv_v4f32:
219232
; CHECK: // %bb.0:

0 commit comments

Comments
 (0)