Skip to content

Commit c3c12e2

Browse files
committed
[SLP][REVEC] Pre-commit test.
1 parent e4aeeba commit c3c12e2

File tree

1 file changed

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

1 file changed

+29
-0
lines changed

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

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,32 @@ sw.bb509.i: ; preds = %if.then458.i, %if.e
4040
%5 = phi <2 x i32> [ %1, %if.then458.i ], [ zeroinitializer, %if.end.i87 ], [ zeroinitializer, %if.end.i87 ]
4141
ret i32 0
4242
}
43+
44+
define void @test2() {
45+
entry:
46+
%0 = getelementptr i8, ptr null, i64 132
47+
%1 = getelementptr i8, ptr null, i64 164
48+
%2 = getelementptr i8, ptr null, i64 200
49+
%3 = getelementptr i8, ptr null, i64 300
50+
%4 = load <8 x float>, ptr %0, align 4
51+
%5 = load <8 x float>, ptr %1, align 4
52+
%6 = load <8 x float>, ptr %2, align 4
53+
%7 = load <8 x float>, ptr %3, align 4
54+
%8 = fpext <8 x float> %4 to <8 x double>
55+
%9 = fpext <8 x float> %5 to <8 x double>
56+
%10 = fpext <8 x float> %6 to <8 x double>
57+
%11 = fpext <8 x float> %7 to <8 x double>
58+
%12 = fadd <8 x double> zeroinitializer, %8
59+
%13 = fadd <8 x double> zeroinitializer, %9
60+
%14 = fadd <8 x double> zeroinitializer, %10
61+
%15 = fadd <8 x double> zeroinitializer, %11
62+
%16 = fptrunc <8 x double> %12 to <8 x float>
63+
%17 = fptrunc <8 x double> %13 to <8 x float>
64+
%18 = fptrunc <8 x double> %14 to <8 x float>
65+
%19 = fptrunc <8 x double> %15 to <8 x float>
66+
%20 = fcmp ogt <8 x float> zeroinitializer, %16
67+
%21 = fcmp ogt <8 x float> zeroinitializer, %17
68+
%22 = fcmp ogt <8 x float> zeroinitializer, %18
69+
%23 = fcmp ogt <8 x float> zeroinitializer, %19
70+
ret void
71+
}

0 commit comments

Comments
 (0)