[llvm-commits] [polly] r155438 - in /polly/trunk/test/CodeGen: simple_vec_assign_scalar_2.ll simple_vec_call.ll simple_vec_large_width.ll simple_vec_stride_one.ll simple_vec_stride_x.ll simple_vec_two_stmts.ll

Tobias Grosser grosser at fim.uni-passau.de
Tue Apr 24 04:08:08 PDT 2012


Author: grosser
Date: Tue Apr 24 06:08:07 2012
New Revision: 155438

URL: http://llvm.org/viewvc/llvm-project?rev=155438&view=rev
Log:
Make vector tests less sensible to codegen changes

Modified:
    polly/trunk/test/CodeGen/simple_vec_assign_scalar_2.ll
    polly/trunk/test/CodeGen/simple_vec_call.ll
    polly/trunk/test/CodeGen/simple_vec_large_width.ll
    polly/trunk/test/CodeGen/simple_vec_stride_one.ll
    polly/trunk/test/CodeGen/simple_vec_stride_x.ll
    polly/trunk/test/CodeGen/simple_vec_two_stmts.ll

Modified: polly/trunk/test/CodeGen/simple_vec_assign_scalar_2.ll
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/test/CodeGen/simple_vec_assign_scalar_2.ll?rev=155438&r1=155437&r2=155438&view=diff
==============================================================================
--- polly/trunk/test/CodeGen/simple_vec_assign_scalar_2.ll (original)
+++ polly/trunk/test/CodeGen/simple_vec_assign_scalar_2.ll Tue Apr 24 06:08:07 2012
@@ -41,9 +41,10 @@
   ret i32 %tmp1
 }
 
-; CHECK: insertelement <4 x float> undef, float %p_tmp4, i32 0
-; CHECK: insertelement <4 x float> %0, float %p_tmp410, i32 1
-; CHECK: insertelement <4 x float> %1, float %p_tmp411, i32 2
-; CHECK: insertelement <4 x float> %2, float %p_tmp412, i32 3
+
+; CHECK: insertelement <4 x float> undef, float %{{[^,]+}}, i32 0
+; CHECK: insertelement <4 x float> %0, float %{{[^,]+}}, i32 1
+; CHECK: insertelement <4 x float> %1, float %{{[^,]+}}, i32 2
+; CHECK: insertelement <4 x float> %2, float %{{[^,]+}}, i32 3
 ; CHECK: fadd <4 x float> %tmp_p_vec_full, %3
 

Modified: polly/trunk/test/CodeGen/simple_vec_call.ll
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/test/CodeGen/simple_vec_call.ll?rev=155438&r1=155437&r2=155438&view=diff
==============================================================================
--- polly/trunk/test/CodeGen/simple_vec_call.ll (original)
+++ polly/trunk/test/CodeGen/simple_vec_call.ll Tue Apr 24 06:08:07 2012
@@ -31,13 +31,12 @@
 ; CHECK: %1 = extractelement <4 x float> %value_p_splat, i32 1
 ; CHECK: %2 = extractelement <4 x float> %value_p_splat, i32 2
 ; CHECK: %3 = extractelement <4 x float> %value_p_splat, i32 3
-; CHECK: %p_result = tail call float @foo(float %0) nounwind
-; CHECK: %p_result4 = tail call float @foo(float %1) nounwind
-; CHECK: %p_result5 = tail call float @foo(float %2) nounwind
-; CHECK: %p_result6 = tail call float @foo(float %3) nounwind
-; CHECK: %4 = insertelement <4 x float> undef, float %p_result, i32 0
-; CHECK: %5 = insertelement <4 x float> %4, float %p_result4, i32 1
-; CHECK: %6 = insertelement <4 x float> %5, float %p_result5, i32 2
-; CHECK: %7 = insertelement <4 x float> %6, float %p_result6, i32 3
-; CHECK: %vector_ptr = bitcast float* %p_scevgep to <4 x float>*
-; CHECK: store <4 x float> %7, <4 x float>* %vector_ptr, align 8
+; CHECK: [[RES1:%[a-zA-Z0-9_]+]] = tail call float @foo(float %0) nounwind
+; CHECK: [[RES2:%[a-zA-Z0-9_]+]] = tail call float @foo(float %1) nounwind
+; CHECK: [[RES3:%[a-zA-Z0-9_]+]] = tail call float @foo(float %2) nounwind
+; CHECK: [[RES4:%[a-zA-Z0-9_]+]] = tail call float @foo(float %3) nounwind
+; CHECK: %4 = insertelement <4 x float> undef, float [[RES1]], i32 0
+; CHECK: %5 = insertelement <4 x float> %4, float [[RES2]], i32 1
+; CHECK: %6 = insertelement <4 x float> %5, float [[RES3]], i32 2
+; CHECK: %7 = insertelement <4 x float> %6, float [[RES4]], i32 3
+; CHECK:  store <4 x float> %7

Modified: polly/trunk/test/CodeGen/simple_vec_large_width.ll
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/test/CodeGen/simple_vec_large_width.ll?rev=155438&r1=155437&r2=155438&view=diff
==============================================================================
--- polly/trunk/test/CodeGen/simple_vec_large_width.ll (original)
+++ polly/trunk/test/CodeGen/simple_vec_large_width.ll Tue Apr 24 06:08:07 2012
@@ -36,6 +36,5 @@
   ret i32 %2
 }
 
-; CHECK: bitcast float* {{.*}} to <15 x float>*
-; CHECK: load <15 x float>*
-; CHECK: store <15 x float> %_p_vec_full, <15 x float>*
+; CHECK: [[VEC1:%[a-zA-Z0-9_]+_full]] = load <15 x float>*
+; CHECK: store <15 x float> [[VEC1]]

Modified: polly/trunk/test/CodeGen/simple_vec_stride_one.ll
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/test/CodeGen/simple_vec_stride_one.ll?rev=155438&r1=155437&r2=155438&view=diff
==============================================================================
--- polly/trunk/test/CodeGen/simple_vec_stride_one.ll (original)
+++ polly/trunk/test/CodeGen/simple_vec_stride_one.ll Tue Apr 24 06:08:07 2012
@@ -40,9 +40,8 @@
   ret i32 %2
 }
 
-; CHECK: bitcast float* {{.*}} to <4 x float>*
-; CHECK: load <4 x float>*
-; CHECK: store <4 x float> %_p_vec_full, <4 x float>* %vector_ptr
+; CHECK: [[LOAD1:%[a-zA-Z0-9_]+]] = load <4 x float>*
+; CHECK: store <4 x float> [[LOAD1]]
 
 ; IMPORT: for (c2=0;c2<=12;c2+=4) {
 ; IMPORT:     Stmt_2(c2/4);
@@ -51,21 +50,11 @@
 ; We do not generate optimal loads for this.
 ; CODEGEN: <4 x float>
 
-
-; UNROLL: %p_scevgep1.moved.to. = getelementptr [1024 x float]* @A, i64 0, i64 0
-; UNROLL: %p_scevgep1.moved.to.1 = getelementptr [1024 x float]* @A, i64 0, i64 1
-; UNROLL: %p_scevgep1.moved.to.2 = getelementptr [1024 x float]* @A, i64 0, i64 2
-; UNROLL: %p_scevgep1.moved.to.3 = getelementptr [1024 x float]* @A, i64 0, i64 3
-; UNROLL: %p_scevgep.moved.to. = getelementptr [1024 x float]* @B, i64 0, i64 0
-; UNROLL: %p_scevgep.moved.to.4 = getelementptr [1024 x float]* @B, i64 0, i64 1
-; UNROLL: %p_scevgep.moved.to.5 = getelementptr [1024 x float]* @B, i64 0, i64 2
-; UNROLL: %p_scevgep.moved.to.6 = getelementptr [1024 x float]* @B, i64 0, i64 3
-; UNROLL: %_p_scalar_ = load float* %p_scevgep1.moved.to.
-; UNROLL: %_p_scalar_7 = load float* %p_scevgep1.moved.to.1
-; UNROLL: %_p_scalar_8 = load float* %p_scevgep1.moved.to.2
-; UNROLL: %_p_scalar_9 = load float* %p_scevgep1.moved.to.3
-; UNROLL: store float %_p_scalar_, float* %p_scevgep.moved.to., align 4
-; UNROLL: store float %_p_scalar_7, float* %p_scevgep.moved.to.4, align 4
-; UNROLL: store float %_p_scalar_8, float* %p_scevgep.moved.to.5, align 4
-; UNROLL: store float %_p_scalar_9, float* %p_scevgep.moved.to.6, align 4
-; UNROLL: br label %polly.merge_new_and_old
+; UNROLL: [[LOAD1:%[a-zA-Z0-9_]+_scalar.*]] = load float*
+; UNROLL: [[LOAD2:%[a-zA-Z0-9_]+_scalar.*]] = load float*
+; UNROLL: [[LOAD3:%[a-zA-Z0-9_]+_scalar.*]] = load float*
+; UNROLL: [[LOAD4:%[a-zA-Z0-9_]+_scalar.*]] = load float*
+; UNROLL: store float [[LOAD1]]
+; UNROLL: store float [[LOAD2]]
+; UNROLL: store float [[LOAD3]]
+; UNROLL: store float [[LOAD4]]

Modified: polly/trunk/test/CodeGen/simple_vec_stride_x.ll
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/test/CodeGen/simple_vec_stride_x.ll?rev=155438&r1=155437&r2=155438&view=diff
==============================================================================
--- polly/trunk/test/CodeGen/simple_vec_stride_x.ll (original)
+++ polly/trunk/test/CodeGen/simple_vec_stride_x.ll Tue Apr 24 06:08:07 2012
@@ -39,21 +39,19 @@
   ret i32 %tmp1
 }
 
-; CHECK: load float* %p_scevgep1.moved.to.bb3
-; CHECK: insertelement <4 x float> undef, float %tmp4_p_scalar_, i32 0
-; CHECK: load float* %p_scevgep1.moved.to.bb34
-; CHECK: insertelement <4 x float> %tmp4_p_vec_, float %tmp4_p_scalar_10, i32 1
-; CHECK: load float* %p_scevgep1.moved.to.bb35
-; CHECK: insertelement <4 x float> %tmp4_p_vec_11, float %tmp4_p_scalar_12, i32 2
-; CHECK: load float* %p_scevgep1.moved.to.bb36
-; CHECK: insertelement <4 x float> %tmp4_p_vec_13, float %tmp4_p_scalar_14, i32 3
-; CHECK: extractelement <4 x float> %tmp4_p_vec_15, i32 0
-; CHECK: store float %0, float* %p_scevgep.moved.to.bb3
-; CHECK: extractelement <4 x float> %tmp4_p_vec_15, i32 1
-; CHECK: store float %1, float* %p_scevgep.moved.to.bb37
-; CHECK: extractelement <4 x float> %tmp4_p_vec_15, i32 2
-; CHECK: store float %2, float* %p_scevgep.moved.to.bb38
-; CHECK: extractelement <4 x float> %tmp4_p_vec_15, i32 3
-; CHECK: store float %3, float* %p_scevgep.moved.to.bb39
-
-
+; CHECK: [[LOAD1:%[a-zA-Z0-9_]+_scalar_]] = load float*
+; CHECK: [[VEC1:%[a-zA-Z0-9_]+]] = insertelement <4 x float> undef, float [[LOAD1]], i32 0
+; CHECK: [[LOAD2:%[a-zA-Z0-9_]+]] = load float*
+; CHECK: [[VEC2:%[a-zA-Z0-9_]+]] = insertelement <4 x float> [[VEC1]], float [[LOAD2]], i32 1
+; CHECK: [[LOAD3:%[a-zA-Z0-9_]+]] = load float*
+; CHECK: [[VEC3:%[a-zA-Z0-9_]+]] = insertelement <4 x float> [[VEC2]], float [[LOAD3]], i32 2
+; CHECK: [[LOAD4:%[a-zA-Z0-9_]+]] = load float*
+; CHECK: [[VEC4:%[a-zA-Z0-9_]+]] = insertelement <4 x float> [[VEC3]], float [[LOAD4]], i32 3
+; CHECK: [[EL1:%[a-zA-Z0-9_]+]] = extractelement <4 x float> [[VEC4]], i32 0
+; CHECK: store float [[EL1]]
+; CHECK: [[EL2:%[a-zA-Z0-9_]+]] = extractelement <4 x float> [[VEC4]], i32 1
+; CHECK: store float [[EL2]]
+; CHECK: [[EL3:%[a-zA-Z0-9_]+]] = extractelement <4 x float> [[VEC4]], i32 2
+; CHECK: store float [[EL3]]
+; CHECK: [[EL4:%[a-zA-Z0-9_]+]] = extractelement <4 x float> [[VEC4]], i32 3
+; CHECK: store float [[EL4]]

Modified: polly/trunk/test/CodeGen/simple_vec_two_stmts.ll
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/test/CodeGen/simple_vec_two_stmts.ll?rev=155438&r1=155437&r2=155438&view=diff
==============================================================================
--- polly/trunk/test/CodeGen/simple_vec_two_stmts.ll (original)
+++ polly/trunk/test/CodeGen/simple_vec_two_stmts.ll Tue Apr 24 06:08:07 2012
@@ -43,10 +43,8 @@
   ret i32 %2
 }
 
-; CHECK: bitcast float* {{.*}} to <4 x float>*
-; CHECK: load <4 x float>*
-; CHECK: store <4 x float> %tmp1_p_vec_full, <4 x float>* %vector_ptr7
-; CHECK: bitcast float* {{.*}} to <4 x float>*
-; CHECK: load <4 x float>*
-; CHECK: store <4 x float> %tmp2_p_vec_full, <4 x float>* %vector_ptr15
+; CHECK: [[LOAD1:%[a-zA-Z0-9_]+_full]] = load <4 x float>*
+; CHECK: store <4 x float> [[LOAD1]]
+; CHECK: [[LOAD2:%[a-zA-Z0-9_]+_full]] = load <4 x float>*
+; CHECK: store <4 x float> [[LOAD2]]
 





More information about the llvm-commits mailing list