Skip to content

Commit bf94802

Browse files
committed
[SLP][REVEC] Pre-commit test.
1 parent a795a18 commit bf94802

File tree

1 file changed

+20
-0
lines changed
  • llvm/test/Transforms/SLPVectorizer/RISCV

1 file changed

+20
-0
lines changed

llvm/test/Transforms/SLPVectorizer/RISCV/revec.ll

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,23 @@ entry:
9494
%23 = fcmp ogt <8 x float> zeroinitializer, %19
9595
ret void
9696
}
97+
98+
define void @test3(float %0) {
99+
entry:
100+
br label %for.body.lr.ph
101+
102+
for.body.lr.ph:
103+
br i1 false, label %for.cond.cleanup, label %for.body
104+
105+
for.cond.cleanup: ; preds = %for.body, %for.body.lr.ph
106+
%1 = phi <2 x float> [ zeroinitializer, %for.body.lr.ph ], [ %5, %for.body ]
107+
%2 = phi <2 x float> [ zeroinitializer, %for.body.lr.ph ], [ %6, %for.body ]
108+
ret void
109+
110+
for.body:
111+
%3 = load <2 x float>, ptr null, align 4
112+
%4 = fcmp olt <2 x float> zeroinitializer, %3
113+
%5 = select <2 x i1> <i1 true, i1 true>, <2 x float> %3, <2 x float> zeroinitializer
114+
%6 = select <2 x i1> %4, <2 x float> %3, <2 x float> zeroinitializer
115+
br label %for.cond.cleanup
116+
}

0 commit comments

Comments
 (0)