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/ARM/vdup.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/ARM/vdup.ll')
-rw-r--r-- | test/CodeGen/ARM/vdup.ll | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/CodeGen/ARM/vdup.ll b/test/CodeGen/ARM/vdup.ll index 8805ef7..b24be26 100644 --- a/test/CodeGen/ARM/vdup.ll +++ b/test/CodeGen/ARM/vdup.ll @@ -263,7 +263,7 @@ define void @redundantVdup(<8 x i8>* %ptr) nounwind { } define <4 x i32> @tdupi(i32 %x, i32 %y) { -;CHECK: tdupi +;CHECK-LABEL: tdupi: ;CHECK: vdup.32 %1 = insertelement <4 x i32> undef, i32 %x, i32 0 %2 = insertelement <4 x i32> %1, i32 %x, i32 1 @@ -273,7 +273,7 @@ define <4 x i32> @tdupi(i32 %x, i32 %y) { } define <4 x float> @tdupf(float %x, float %y) { -;CHECK: tdupf +;CHECK-LABEL: tdupf: ;CHECK: vdup.32 %1 = insertelement <4 x float> undef, float %x, i32 0 %2 = insertelement <4 x float> %1, float %x, i32 1 @@ -285,7 +285,7 @@ define <4 x float> @tdupf(float %x, float %y) { ; This test checks that when splatting an element from a vector into another, ; the value isn't moved out to GPRs first. define <4 x i32> @tduplane(<4 x i32> %invec) { -;CHECK: tduplane +;CHECK-LABEL: tduplane: ;CHECK-NOT: vmov {{.*}}, d16[1] ;CHECK: vdup.32 {{.*}}, d16[1] %in = extractelement <4 x i32> %invec, i32 1 |