Skip to content

Commit d26e672

Browse files
committed
Add fixed vector test
1 parent 01be82c commit d26e672

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

llvm/test/Transforms/InstCombine/fpextend.ll

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,3 +448,14 @@ define bfloat @bf16_frem(bfloat %x) {
448448
%t3 = fptrunc float %t2 to bfloat
449449
ret bfloat %t3
450450
}
451+
452+
define <4 x float> @v4f32_fadd(<4 x float> %a) {
453+
; CHECK-LABEL: @v4f32_fadd(
454+
; CHECK-NEXT: [[TMP1:%.*]] = fadd <4 x float> [[A:%.*]], splat (float -1.000000e+00)
455+
; CHECK-NEXT: ret <4 x float> [[TMP1]]
456+
;
457+
%2 = fpext <4 x float> %a to <4 x double>
458+
%4 = fadd <4 x double> %2, splat (double -1.000000e+00)
459+
%5 = fptrunc <4 x double> %4 to <4 x float>
460+
ret <4 x float> %5
461+
}

0 commit comments

Comments
 (0)