diff options
author | Stephen Lin <stephenwlin@gmail.com> | 2013-07-14 01:42:54 +0000 |
---|---|---|
committer | Stephen Lin <stephenwlin@gmail.com> | 2013-07-14 01:42:54 +0000 |
commit | 39f4e8d9cce22b60a3417a5f17c847fa5b1daebf (patch) | |
tree | 7fed202a2c2c7866f60344b6388e0d3bd98cb14c /test/Transforms/SLPVectorizer/X86 | |
parent | 82e539d037a33f968e4a5476d3d471e1112f8ab2 (diff) | |
download | external_llvm-39f4e8d9cce22b60a3417a5f17c847fa5b1daebf.zip external_llvm-39f4e8d9cce22b60a3417a5f17c847fa5b1daebf.tar.gz external_llvm-39f4e8d9cce22b60a3417a5f17c847fa5b1daebf.tar.bz2 |
Update Transforms tests to use CHECK-LABEL for easier debugging. No functionality change.
This update was done with the following bash script:
find test/Transforms -name "*.ll" | \
while read NAME; do
echo "$NAME"
if ! grep -q "^; *RUN: *llc" $NAME; then
TEMP=`mktemp -t temp`
cp $NAME $TEMP
sed -n "s/^define [^@]*@\([A-Za-z0-9_]*\)(.*$/\1/p" < $NAME | \
while read FUNC; do
sed -i '' "s/;\(.*\)\([A-Za-z0-9_]*\):\( *\)@$FUNC\([( ]*\)\$/;\1\2-LABEL:\3@$FUNC(/g" $TEMP
done
mv $TEMP $NAME
fi
done
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186268 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/SLPVectorizer/X86')
-rw-r--r-- | test/Transforms/SLPVectorizer/X86/barriercall.ll | 2 | ||||
-rw-r--r-- | test/Transforms/SLPVectorizer/X86/cast.ll | 2 | ||||
-rw-r--r-- | test/Transforms/SLPVectorizer/X86/cmp_sel.ll | 2 | ||||
-rw-r--r-- | test/Transforms/SLPVectorizer/X86/compare-reduce.ll | 2 | ||||
-rw-r--r-- | test/Transforms/SLPVectorizer/X86/cross_block_slp.ll | 2 | ||||
-rw-r--r-- | test/Transforms/SLPVectorizer/X86/cse.ll | 8 | ||||
-rw-r--r-- | test/Transforms/SLPVectorizer/X86/diamond.ll | 6 | ||||
-rw-r--r-- | test/Transforms/SLPVectorizer/X86/in-tree-user.ll | 2 | ||||
-rw-r--r-- | test/Transforms/SLPVectorizer/X86/loopinvariant.ll | 2 | ||||
-rw-r--r-- | test/Transforms/SLPVectorizer/X86/multi_block.ll | 2 | ||||
-rw-r--r-- | test/Transforms/SLPVectorizer/X86/multi_user.ll | 2 | ||||
-rw-r--r-- | test/Transforms/SLPVectorizer/X86/odd_store.ll | 2 | ||||
-rw-r--r-- | test/Transforms/SLPVectorizer/X86/reduction2.ll | 2 | ||||
-rw-r--r-- | test/Transforms/SLPVectorizer/X86/rgb_phi.ll | 2 |
14 files changed, 19 insertions, 19 deletions
diff --git a/test/Transforms/SLPVectorizer/X86/barriercall.ll b/test/Transforms/SLPVectorizer/X86/barriercall.ll index 04eb8f9..bba2855 100644 --- a/test/Transforms/SLPVectorizer/X86/barriercall.ll +++ b/test/Transforms/SLPVectorizer/X86/barriercall.ll @@ -3,7 +3,7 @@ target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128" target triple = "x86_64-apple-macosx10.8.0" -;CHECK: @foo +;CHECK-LABEL: @foo( ;CHECK: store <4 x i32> ;CHECK: ret define i32 @foo(i32* nocapture %A, i32 %n) { diff --git a/test/Transforms/SLPVectorizer/X86/cast.ll b/test/Transforms/SLPVectorizer/X86/cast.ll index 344dbbc..e340fba 100644 --- a/test/Transforms/SLPVectorizer/X86/cast.ll +++ b/test/Transforms/SLPVectorizer/X86/cast.ll @@ -9,7 +9,7 @@ target triple = "x86_64-apple-macosx10.9.0" ; A[2] = B[2]; ; A[3] = B[3]; ; } -;CHECK: @foo +;CHECK-LABEL: @foo( ;CHECK: load <4 x i8> ;CHECK: sext ;CHECK: store <4 x i32> diff --git a/test/Transforms/SLPVectorizer/X86/cmp_sel.ll b/test/Transforms/SLPVectorizer/X86/cmp_sel.ll index 3bf4f19..0c124a7 100644 --- a/test/Transforms/SLPVectorizer/X86/cmp_sel.ll +++ b/test/Transforms/SLPVectorizer/X86/cmp_sel.ll @@ -8,7 +8,7 @@ target triple = "x86_64-apple-macosx10.8.0" ; A[1] = (B[11] ? G : 1); ; } -;CHECK: @foo +;CHECK-LABEL: @foo( ;CHECK: load <2 x double> ;CHECK: fcmp une <2 x double> ;CHECK: select <2 x i1> diff --git a/test/Transforms/SLPVectorizer/X86/compare-reduce.ll b/test/Transforms/SLPVectorizer/X86/compare-reduce.ll index 05f8e61..9653d18 100644 --- a/test/Transforms/SLPVectorizer/X86/compare-reduce.ll +++ b/test/Transforms/SLPVectorizer/X86/compare-reduce.ll @@ -5,7 +5,7 @@ target triple = "x86_64-apple-macosx10.7.0" @.str = private unnamed_addr constant [6 x i8] c"bingo\00", align 1 -;CHECK: @reduce_compare +;CHECK-LABEL: @reduce_compare( ;CHECK: load <2 x double> ;CHECK: fmul <2 x double> ;CHECK: fmul <2 x double> diff --git a/test/Transforms/SLPVectorizer/X86/cross_block_slp.ll b/test/Transforms/SLPVectorizer/X86/cross_block_slp.ll index 8246453..06c4b52 100644 --- a/test/Transforms/SLPVectorizer/X86/cross_block_slp.ll +++ b/test/Transforms/SLPVectorizer/X86/cross_block_slp.ll @@ -16,7 +16,7 @@ target triple = "x86_64-apple-macosx10.8.0" ; } -;CHECK: @foo +;CHECK-LABEL: @foo( ;CHECK: load <2 x float> ;CHECK: fadd <2 x float> ;CHECK: call i32 diff --git a/test/Transforms/SLPVectorizer/X86/cse.ll b/test/Transforms/SLPVectorizer/X86/cse.ll index 63eaeec..bbfd6f2 100644 --- a/test/Transforms/SLPVectorizer/X86/cse.ll +++ b/test/Transforms/SLPVectorizer/X86/cse.ll @@ -10,7 +10,7 @@ target triple = "i386-apple-macosx10.8.0" ; G[3] = 8+G[6]*4; ;} -;CHECK: @test +;CHECK-LABEL: @test( ;CHECK: load <2 x double> ;CHECK: fadd <2 x double> ;CHECK: store <2 x double> @@ -48,7 +48,7 @@ entry: ; A[2] = A[2] * 7.6 * n + 3.0; ; A[3] = A[3] * 7.4 * n + 4.0; ;} -;CHECK: @foo +;CHECK-LABEL: @foo( ;CHECK: insertelement <2 x double> ;CHECK: insertelement <2 x double> ;CHECK-NOT: insertelement <2 x double> @@ -140,7 +140,7 @@ define i32 @test2(double* nocapture %G, i32 %k) { ; A[2] = A[2] * 7.9 * n + 6.0; ; A[3] = A[3] * 7.9 * n + 6.0; ;} -;CHECK: @foo4 +;CHECK-LABEL: @foo4( ;CHECK: insertelement <2 x double> ;CHECK: insertelement <2 x double> ;CHECK-NOT: insertelement <2 x double> @@ -181,7 +181,7 @@ entry: ; A[2] = A[2] * n; ; A[3] = A[3] * (n+4); ;} -;CHECK: @partial_mrg +;CHECK-LABEL: @partial_mrg( ;CHECK: insertelement <2 x double> ;CHECK: insertelement <2 x double> ;CHECK: insertelement <2 x double> diff --git a/test/Transforms/SLPVectorizer/X86/diamond.ll b/test/Transforms/SLPVectorizer/X86/diamond.ll index 099f7cf..5135a92 100644 --- a/test/Transforms/SLPVectorizer/X86/diamond.ll +++ b/test/Transforms/SLPVectorizer/X86/diamond.ll @@ -11,7 +11,7 @@ target triple = "x86_64-apple-macosx10.8.0" ; return 0; ; } -; CHECK: @foo +; CHECK-LABEL: @foo( ; CHECK: load <4 x i32> ; CHECK: mul <4 x i32> ; CHECK: store <4 x i32> @@ -49,7 +49,7 @@ entry: ; return A[0]; ; } -; CHECK: @extr_user +; CHECK-LABEL: @extr_user( ; CHECK: load <4 x i32> ; CHECK: store <4 x i32> ; CHECK: extractelement <4 x i32> @@ -79,7 +79,7 @@ entry: } ; In this example we have an external user that is not the first element in the vector. -; CHECK: @extr_user1 +; CHECK-LABEL: @extr_user1( ; CHECK: load <4 x i32> ; CHECK: store <4 x i32> ; CHECK: extractelement <4 x i32> diff --git a/test/Transforms/SLPVectorizer/X86/in-tree-user.ll b/test/Transforms/SLPVectorizer/X86/in-tree-user.ll index 69dc889..3115232 100644 --- a/test/Transforms/SLPVectorizer/X86/in-tree-user.ll +++ b/test/Transforms/SLPVectorizer/X86/in-tree-user.ll @@ -6,7 +6,7 @@ target triple = "x86_64-apple-macosx10.7.0" @.str = private unnamed_addr constant [6 x i8] c"bingo\00", align 1 ; We can't vectorize when the roots are used inside the tree. -;CHECK: @in_tree_user +;CHECK-LABEL: @in_tree_user( ;CHECK-NOT: load <2 x double> ;CHECK: ret define void @in_tree_user(double* nocapture %A, i32 %n) { diff --git a/test/Transforms/SLPVectorizer/X86/loopinvariant.ll b/test/Transforms/SLPVectorizer/X86/loopinvariant.ll index 4a37fce..aef2479 100644 --- a/test/Transforms/SLPVectorizer/X86/loopinvariant.ll +++ b/test/Transforms/SLPVectorizer/X86/loopinvariant.ll @@ -3,7 +3,7 @@ target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128" target triple = "x86_64-apple-macosx10.8.0" -;CHECK: @foo +;CHECK-LABEL: @foo( ;CHECK: load <4 x i32> ;CHECK: add <4 x i32> ;CHECK: store <4 x i32> diff --git a/test/Transforms/SLPVectorizer/X86/multi_block.ll b/test/Transforms/SLPVectorizer/X86/multi_block.ll index eed3f37..2f1cc74 100644 --- a/test/Transforms/SLPVectorizer/X86/multi_block.ll +++ b/test/Transforms/SLPVectorizer/X86/multi_block.ll @@ -16,7 +16,7 @@ target triple = "x86_64-apple-macosx10.7.0" ; } -;CHECK: @bar +;CHECK-LABEL: @bar( ;CHECK: load <2 x double> ;CHECK: fptrunc <2 x double> ;CHECK: call i32 diff --git a/test/Transforms/SLPVectorizer/X86/multi_user.ll b/test/Transforms/SLPVectorizer/X86/multi_user.ll index aaa6063..cab9994 100644 --- a/test/Transforms/SLPVectorizer/X86/multi_user.ll +++ b/test/Transforms/SLPVectorizer/X86/multi_user.ll @@ -11,7 +11,7 @@ target triple = "x86_64-apple-macosx10.7.0" ; A[4] += n * 5 + 11; ;} -;CHECK: @foo +;CHECK-LABEL: @foo( ;CHECK: insertelement <4 x i32> ;CHECK: load <4 x i32> ;CHECK: add <4 x i32> diff --git a/test/Transforms/SLPVectorizer/X86/odd_store.ll b/test/Transforms/SLPVectorizer/X86/odd_store.ll index cb2b686..de6503b 100644 --- a/test/Transforms/SLPVectorizer/X86/odd_store.ll +++ b/test/Transforms/SLPVectorizer/X86/odd_store.ll @@ -9,7 +9,7 @@ target triple = "x86_64-apple-macosx10.8.0" ; A[2] = (T * B[12] + 6.0); ;} -;CHECK: @foo +;CHECK-LABEL: @foo( ;CHECK: load <3 x float> ;CHECK: fmul <3 x float> ;CHECK: fpext <3 x float> diff --git a/test/Transforms/SLPVectorizer/X86/reduction2.ll b/test/Transforms/SLPVectorizer/X86/reduction2.ll index 7aa7d7e..1dc77d2 100644 --- a/test/Transforms/SLPVectorizer/X86/reduction2.ll +++ b/test/Transforms/SLPVectorizer/X86/reduction2.ll @@ -3,7 +3,7 @@ target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128-n8:16:32-S128" target triple = "i386-apple-macosx10.8.0" -;CHECK: @foo +;CHECK-LABEL: @foo( ;CHECK: load <2 x double> ;CHECK: ret define double @foo(double* nocapture %D) { diff --git a/test/Transforms/SLPVectorizer/X86/rgb_phi.ll b/test/Transforms/SLPVectorizer/X86/rgb_phi.ll index 9f5a621..3235fd9 100644 --- a/test/Transforms/SLPVectorizer/X86/rgb_phi.ll +++ b/test/Transforms/SLPVectorizer/X86/rgb_phi.ll @@ -17,7 +17,7 @@ target triple = "i386-apple-macosx10.9.0" ; return R+G+B; ; } -;CHECK: @foo +;CHECK-LABEL: @foo( ;CHECK: br ;CHECK: phi <3 x float> ;CHECK: fmul <3 x float> |