diff options
author | Stephen Lin <stephenwlin@gmail.com> | 2013-07-14 06:24:09 +0000 |
---|---|---|
committer | Stephen Lin <stephenwlin@gmail.com> | 2013-07-14 06:24:09 +0000 |
commit | 8b2b8a18354546d534b72f912153a3252ab4b857 (patch) | |
tree | 9e745a19e157915db1f88e171514f4d22041c62a /test/CodeGen/X86/haddsub.ll | |
parent | 6611eaa32f7941dd50a3ffe608f3f4a7665dbe91 (diff) | |
download | llvm-8b2b8a18354546d534b72f912153a3252ab4b857.tar.gz llvm-8b2b8a18354546d534b72f912153a3252ab4b857.tar.bz2 llvm-8b2b8a18354546d534b72f912153a3252ab4b857.tar.xz |
Mass update to CodeGen tests to use CHECK-LABEL for labels corresponding to function definitions for more informative error messages. No functionality change and all updated tests passed locally.
This update was done with the following bash script:
find test/CodeGen -name "*.ll" | \
while read NAME; do
echo "$NAME"
if ! grep -q "^; *RUN: *llc.*debug" $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
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
fi
done
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186280 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/haddsub.ll')
-rw-r--r-- | test/CodeGen/X86/haddsub.ll | 92 |
1 files changed, 46 insertions, 46 deletions
diff --git a/test/CodeGen/X86/haddsub.ll b/test/CodeGen/X86/haddsub.ll index 5f1f4fd8f7..9feb5f6ea6 100644 --- a/test/CodeGen/X86/haddsub.ll +++ b/test/CodeGen/X86/haddsub.ll @@ -1,10 +1,10 @@ ; RUN: llc < %s -march=x86-64 -mattr=+sse3,-avx | FileCheck %s -check-prefix=SSE3 ; RUN: llc < %s -march=x86-64 -mattr=-sse3,+avx | FileCheck %s -check-prefix=AVX -; SSE3: haddpd1: +; SSE3-LABEL: haddpd1: ; SSE3-NOT: vhaddpd ; SSE3: haddpd -; AVX: haddpd1: +; AVX-LABEL: haddpd1: ; AVX: vhaddpd define <2 x double> @haddpd1(<2 x double> %x, <2 x double> %y) { %a = shufflevector <2 x double> %x, <2 x double> %y, <2 x i32> <i32 0, i32 2> @@ -13,10 +13,10 @@ define <2 x double> @haddpd1(<2 x double> %x, <2 x double> %y) { ret <2 x double> %r } -; SSE3: haddpd2: +; SSE3-LABEL: haddpd2: ; SSE3-NOT: vhaddpd ; SSE3: haddpd -; AVX: haddpd2: +; AVX-LABEL: haddpd2: ; AVX: vhaddpd define <2 x double> @haddpd2(<2 x double> %x, <2 x double> %y) { %a = shufflevector <2 x double> %x, <2 x double> %y, <2 x i32> <i32 1, i32 2> @@ -25,10 +25,10 @@ define <2 x double> @haddpd2(<2 x double> %x, <2 x double> %y) { ret <2 x double> %r } -; SSE3: haddpd3: +; SSE3-LABEL: haddpd3: ; SSE3-NOT: vhaddpd ; SSE3: haddpd -; AVX: haddpd3: +; AVX-LABEL: haddpd3: ; AVX: vhaddpd define <2 x double> @haddpd3(<2 x double> %x) { %a = shufflevector <2 x double> %x, <2 x double> undef, <2 x i32> <i32 0, i32 undef> @@ -37,10 +37,10 @@ define <2 x double> @haddpd3(<2 x double> %x) { ret <2 x double> %r } -; SSE3: haddps1: +; SSE3-LABEL: haddps1: ; SSE3-NOT: vhaddps ; SSE3: haddps -; AVX: haddps1: +; AVX-LABEL: haddps1: ; AVX: vhaddps define <4 x float> @haddps1(<4 x float> %x, <4 x float> %y) { %a = shufflevector <4 x float> %x, <4 x float> %y, <4 x i32> <i32 0, i32 2, i32 4, i32 6> @@ -49,10 +49,10 @@ define <4 x float> @haddps1(<4 x float> %x, <4 x float> %y) { ret <4 x float> %r } -; SSE3: haddps2: +; SSE3-LABEL: haddps2: ; SSE3-NOT: vhaddps ; SSE3: haddps -; AVX: haddps2: +; AVX-LABEL: haddps2: ; AVX: vhaddps define <4 x float> @haddps2(<4 x float> %x, <4 x float> %y) { %a = shufflevector <4 x float> %x, <4 x float> %y, <4 x i32> <i32 1, i32 2, i32 5, i32 6> @@ -61,10 +61,10 @@ define <4 x float> @haddps2(<4 x float> %x, <4 x float> %y) { ret <4 x float> %r } -; SSE3: haddps3: +; SSE3-LABEL: haddps3: ; SSE3-NOT: vhaddps ; SSE3: haddps -; AVX: haddps3: +; AVX-LABEL: haddps3: ; AVX: vhaddps define <4 x float> @haddps3(<4 x float> %x) { %a = shufflevector <4 x float> %x, <4 x float> undef, <4 x i32> <i32 undef, i32 2, i32 4, i32 6> @@ -73,10 +73,10 @@ define <4 x float> @haddps3(<4 x float> %x) { ret <4 x float> %r } -; SSE3: haddps4: +; SSE3-LABEL: haddps4: ; SSE3-NOT: vhaddps ; SSE3: haddps -; AVX: haddps4: +; AVX-LABEL: haddps4: ; AVX: vhaddps define <4 x float> @haddps4(<4 x float> %x) { %a = shufflevector <4 x float> %x, <4 x float> undef, <4 x i32> <i32 0, i32 2, i32 undef, i32 undef> @@ -85,10 +85,10 @@ define <4 x float> @haddps4(<4 x float> %x) { ret <4 x float> %r } -; SSE3: haddps5: +; SSE3-LABEL: haddps5: ; SSE3-NOT: vhaddps ; SSE3: haddps -; AVX: haddps5: +; AVX-LABEL: haddps5: ; AVX: vhaddps define <4 x float> @haddps5(<4 x float> %x) { %a = shufflevector <4 x float> %x, <4 x float> undef, <4 x i32> <i32 0, i32 3, i32 undef, i32 undef> @@ -97,10 +97,10 @@ define <4 x float> @haddps5(<4 x float> %x) { ret <4 x float> %r } -; SSE3: haddps6: +; SSE3-LABEL: haddps6: ; SSE3-NOT: vhaddps ; SSE3: haddps -; AVX: haddps6: +; AVX-LABEL: haddps6: ; AVX: vhaddps define <4 x float> @haddps6(<4 x float> %x) { %a = shufflevector <4 x float> %x, <4 x float> undef, <4 x i32> <i32 0, i32 undef, i32 undef, i32 undef> @@ -109,10 +109,10 @@ define <4 x float> @haddps6(<4 x float> %x) { ret <4 x float> %r } -; SSE3: haddps7: +; SSE3-LABEL: haddps7: ; SSE3-NOT: vhaddps ; SSE3: haddps -; AVX: haddps7: +; AVX-LABEL: haddps7: ; AVX: vhaddps define <4 x float> @haddps7(<4 x float> %x) { %a = shufflevector <4 x float> %x, <4 x float> undef, <4 x i32> <i32 undef, i32 3, i32 undef, i32 undef> @@ -121,10 +121,10 @@ define <4 x float> @haddps7(<4 x float> %x) { ret <4 x float> %r } -; SSE3: hsubpd1: +; SSE3-LABEL: hsubpd1: ; SSE3-NOT: vhsubpd ; SSE3: hsubpd -; AVX: hsubpd1: +; AVX-LABEL: hsubpd1: ; AVX: vhsubpd define <2 x double> @hsubpd1(<2 x double> %x, <2 x double> %y) { %a = shufflevector <2 x double> %x, <2 x double> %y, <2 x i32> <i32 0, i32 2> @@ -133,10 +133,10 @@ define <2 x double> @hsubpd1(<2 x double> %x, <2 x double> %y) { ret <2 x double> %r } -; SSE3: hsubpd2: +; SSE3-LABEL: hsubpd2: ; SSE3-NOT: vhsubpd ; SSE3: hsubpd -; AVX: hsubpd2: +; AVX-LABEL: hsubpd2: ; AVX: vhsubpd define <2 x double> @hsubpd2(<2 x double> %x) { %a = shufflevector <2 x double> %x, <2 x double> undef, <2 x i32> <i32 0, i32 undef> @@ -145,10 +145,10 @@ define <2 x double> @hsubpd2(<2 x double> %x) { ret <2 x double> %r } -; SSE3: hsubps1: +; SSE3-LABEL: hsubps1: ; SSE3-NOT: vhsubps ; SSE3: hsubps -; AVX: hsubps1: +; AVX-LABEL: hsubps1: ; AVX: vhsubps define <4 x float> @hsubps1(<4 x float> %x, <4 x float> %y) { %a = shufflevector <4 x float> %x, <4 x float> %y, <4 x i32> <i32 0, i32 2, i32 4, i32 6> @@ -157,10 +157,10 @@ define <4 x float> @hsubps1(<4 x float> %x, <4 x float> %y) { ret <4 x float> %r } -; SSE3: hsubps2: +; SSE3-LABEL: hsubps2: ; SSE3-NOT: vhsubps ; SSE3: hsubps -; AVX: hsubps2: +; AVX-LABEL: hsubps2: ; AVX: vhsubps define <4 x float> @hsubps2(<4 x float> %x) { %a = shufflevector <4 x float> %x, <4 x float> undef, <4 x i32> <i32 undef, i32 2, i32 4, i32 6> @@ -169,10 +169,10 @@ define <4 x float> @hsubps2(<4 x float> %x) { ret <4 x float> %r } -; SSE3: hsubps3: +; SSE3-LABEL: hsubps3: ; SSE3-NOT: vhsubps ; SSE3: hsubps -; AVX: hsubps3: +; AVX-LABEL: hsubps3: ; AVX: vhsubps define <4 x float> @hsubps3(<4 x float> %x) { %a = shufflevector <4 x float> %x, <4 x float> undef, <4 x i32> <i32 0, i32 2, i32 undef, i32 undef> @@ -181,10 +181,10 @@ define <4 x float> @hsubps3(<4 x float> %x) { ret <4 x float> %r } -; SSE3: hsubps4: +; SSE3-LABEL: hsubps4: ; SSE3-NOT: vhsubps ; SSE3: hsubps -; AVX: hsubps4: +; AVX-LABEL: hsubps4: ; AVX: vhsubps define <4 x float> @hsubps4(<4 x float> %x) { %a = shufflevector <4 x float> %x, <4 x float> undef, <4 x i32> <i32 0, i32 undef, i32 undef, i32 undef> @@ -193,11 +193,11 @@ define <4 x float> @hsubps4(<4 x float> %x) { ret <4 x float> %r } -; SSE3: vhaddps1: +; SSE3-LABEL: vhaddps1: ; SSE3-NOT: vhaddps ; SSE3: haddps ; SSE3: haddps -; AVX: vhaddps1: +; AVX-LABEL: vhaddps1: ; AVX: vhaddps define <8 x float> @vhaddps1(<8 x float> %x, <8 x float> %y) { %a = shufflevector <8 x float> %x, <8 x float> %y, <8 x i32> <i32 0, i32 2, i32 8, i32 10, i32 4, i32 6, i32 12, i32 14> @@ -206,11 +206,11 @@ define <8 x float> @vhaddps1(<8 x float> %x, <8 x float> %y) { ret <8 x float> %r } -; SSE3: vhaddps2: +; SSE3-LABEL: vhaddps2: ; SSE3-NOT: vhaddps ; SSE3: haddps ; SSE3: haddps -; AVX: vhaddps2: +; AVX-LABEL: vhaddps2: ; AVX: vhaddps define <8 x float> @vhaddps2(<8 x float> %x, <8 x float> %y) { %a = shufflevector <8 x float> %x, <8 x float> %y, <8 x i32> <i32 1, i32 2, i32 9, i32 10, i32 5, i32 6, i32 13, i32 14> @@ -219,11 +219,11 @@ define <8 x float> @vhaddps2(<8 x float> %x, <8 x float> %y) { ret <8 x float> %r } -; SSE3: vhaddps3: +; SSE3-LABEL: vhaddps3: ; SSE3-NOT: vhaddps ; SSE3: haddps ; SSE3: haddps -; AVX: vhaddps3: +; AVX-LABEL: vhaddps3: ; AVX: vhaddps define <8 x float> @vhaddps3(<8 x float> %x) { %a = shufflevector <8 x float> %x, <8 x float> undef, <8 x i32> <i32 undef, i32 2, i32 8, i32 10, i32 4, i32 6, i32 undef, i32 14> @@ -232,11 +232,11 @@ define <8 x float> @vhaddps3(<8 x float> %x) { ret <8 x float> %r } -; SSE3: vhsubps1: +; SSE3-LABEL: vhsubps1: ; SSE3-NOT: vhsubps ; SSE3: hsubps ; SSE3: hsubps -; AVX: vhsubps1: +; AVX-LABEL: vhsubps1: ; AVX: vhsubps define <8 x float> @vhsubps1(<8 x float> %x, <8 x float> %y) { %a = shufflevector <8 x float> %x, <8 x float> %y, <8 x i32> <i32 0, i32 2, i32 8, i32 10, i32 4, i32 6, i32 12, i32 14> @@ -245,11 +245,11 @@ define <8 x float> @vhsubps1(<8 x float> %x, <8 x float> %y) { ret <8 x float> %r } -; SSE3: vhsubps3: +; SSE3-LABEL: vhsubps3: ; SSE3-NOT: vhsubps ; SSE3: hsubps ; SSE3: hsubps -; AVX: vhsubps3: +; AVX-LABEL: vhsubps3: ; AVX: vhsubps define <8 x float> @vhsubps3(<8 x float> %x) { %a = shufflevector <8 x float> %x, <8 x float> undef, <8 x i32> <i32 undef, i32 2, i32 8, i32 10, i32 4, i32 6, i32 undef, i32 14> @@ -258,11 +258,11 @@ define <8 x float> @vhsubps3(<8 x float> %x) { ret <8 x float> %r } -; SSE3: vhaddpd1: +; SSE3-LABEL: vhaddpd1: ; SSE3-NOT: vhaddpd ; SSE3: haddpd ; SSE3: haddpd -; AVX: vhaddpd1: +; AVX-LABEL: vhaddpd1: ; AVX: vhaddpd define <4 x double> @vhaddpd1(<4 x double> %x, <4 x double> %y) { %a = shufflevector <4 x double> %x, <4 x double> %y, <4 x i32> <i32 0, i32 4, i32 2, i32 6> @@ -271,11 +271,11 @@ define <4 x double> @vhaddpd1(<4 x double> %x, <4 x double> %y) { ret <4 x double> %r } -; SSE3: vhsubpd1: +; SSE3-LABEL: vhsubpd1: ; SSE3-NOT: vhsubpd ; SSE3: hsubpd ; SSE3: hsubpd -; AVX: vhsubpd1: +; AVX-LABEL: vhsubpd1: ; AVX: vhsubpd define <4 x double> @vhsubpd1(<4 x double> %x, <4 x double> %y) { %a = shufflevector <4 x double> %x, <4 x double> %y, <4 x i32> <i32 0, i32 4, i32 2, i32 6> |