diff options
author | Stephen Lin <stephenwlin@gmail.com> | 2013-07-18 22:47:09 +0000 |
---|---|---|
committer | Stephen Lin <stephenwlin@gmail.com> | 2013-07-18 22:47:09 +0000 |
commit | cf2ab764db006078856312d9cfdf29d8fe59c3dd (patch) | |
tree | bb4ca6169c5c8bf2f369a4fae13c09672c21a1d1 /test/CodeGen/X86/vec_cast2.ll | |
parent | 06bd2061fc40bfa3560bc200c396595cc4ed3a2e (diff) | |
download | external_llvm-cf2ab764db006078856312d9cfdf29d8fe59c3dd.zip external_llvm-cf2ab764db006078856312d9cfdf29d8fe59c3dd.tar.gz external_llvm-cf2ab764db006078856312d9cfdf29d8fe59c3dd.tar.bz2 |
Update to more CodeGen tests to use CHECK-LABEL for labels corresponding to function definitions for more informative error messages. No functionality change.
All changes were made by the following bash script:
find test/CodeGen -name "*.ll" | \
while read NAME; do
echo "$NAME"
grep -q "^; *RUN: *llc.*debug" $NAME && continue
grep -q "^; *RUN:.*llvm-objdump" $NAME && continue
grep -q "^; *RUN: *opt.*" $NAME && continue
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_-]*\)\([A-Za-z0-9_-]*\):\( *\)$FUNC[:]* *\$/;\1\2-LABEL:\3$FUNC:/g" $TEMP
done
sed -i '' "s/;\(.*\)-LABEL-LABEL:/;\1-LABEL:/" $TEMP
sed -i '' "s/;\(.*\)-NEXT-LABEL:/;\1-NEXT:/" $TEMP
sed -i '' "s/;\(.*\)-NOT-LABEL:/;\1-NOT:/" $TEMP
sed -i '' "s/;\(.*\)-DAG-LABEL:/;\1-DAG:/" $TEMP
mv $TEMP $NAME
done
This script catches a superset of the cases caught by the script associated with commit r186280. It initially found some false positives due to unusual constructs in a minority of tests; all such cases were disambiguated first in commit r186621.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186624 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/vec_cast2.ll')
-rw-r--r-- | test/CodeGen/X86/vec_cast2.ll | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/CodeGen/X86/vec_cast2.ll b/test/CodeGen/X86/vec_cast2.ll index 08eb16f..5f6e7a8 100644 --- a/test/CodeGen/X86/vec_cast2.ll +++ b/test/CodeGen/X86/vec_cast2.ll @@ -1,6 +1,6 @@ ; RUN: llc < %s -mtriple=i386-apple-darwin10 -mcpu=corei7-avx -mattr=+avx | FileCheck %s -;CHECK: foo1_8 +;CHECK-LABEL: foo1_8: ;CHECK: vcvtdq2ps ;CHECK: ret define <8 x float> @foo1_8(<8 x i8> %src) { @@ -8,7 +8,7 @@ define <8 x float> @foo1_8(<8 x i8> %src) { ret <8 x float> %res } -;CHECK: foo1_4 +;CHECK-LABEL: foo1_4: ;CHECK: vcvtdq2ps ;CHECK: ret define <4 x float> @foo1_4(<4 x i8> %src) { @@ -16,7 +16,7 @@ define <4 x float> @foo1_4(<4 x i8> %src) { ret <4 x float> %res } -;CHECK: foo2_8 +;CHECK-LABEL: foo2_8: ;CHECK: vcvtdq2ps ;CHECK: ret define <8 x float> @foo2_8(<8 x i8> %src) { @@ -24,7 +24,7 @@ define <8 x float> @foo2_8(<8 x i8> %src) { ret <8 x float> %res } -;CHECK: foo2_4 +;CHECK-LABEL: foo2_4: ;CHECK: vcvtdq2ps ;CHECK: ret define <4 x float> @foo2_4(<4 x i8> %src) { @@ -32,14 +32,14 @@ define <4 x float> @foo2_4(<4 x i8> %src) { ret <4 x float> %res } -;CHECK: foo3_8 +;CHECK-LABEL: foo3_8: ;CHECK: vcvttps2dq ;CHECK: ret define <8 x i8> @foo3_8(<8 x float> %src) { %res = fptosi <8 x float> %src to <8 x i8> ret <8 x i8> %res } -;CHECK: foo3_4 +;CHECK-LABEL: foo3_4: ;CHECK: vcvttps2dq ;CHECK: ret define <4 x i8> @foo3_4(<4 x float> %src) { |