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/atomic_add.ll | |
parent | 6611eaa32f7941dd50a3ffe608f3f4a7665dbe91 (diff) |
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/atomic_add.ll')
-rw-r--r-- | test/CodeGen/X86/atomic_add.ll | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/test/CodeGen/X86/atomic_add.ll b/test/CodeGen/X86/atomic_add.ll index 6b3a6b224db..bdd25e6a2a5 100644 --- a/test/CodeGen/X86/atomic_add.ll +++ b/test/CodeGen/X86/atomic_add.ll @@ -4,7 +4,7 @@ define void @sub1(i32* nocapture %p, i32 %v) nounwind ssp { entry: -; CHECK: sub1: +; CHECK-LABEL: sub1: ; CHECK: subl %0 = atomicrmw sub i32* %p, i32 %v monotonic ret void @@ -12,7 +12,7 @@ entry: define void @inc4(i64* nocapture %p) nounwind ssp { entry: -; CHECK: inc4: +; CHECK-LABEL: inc4: ; CHECK: incq %0 = atomicrmw add i64* %p, i64 1 monotonic ret void @@ -20,7 +20,7 @@ entry: define void @add8(i64* nocapture %p) nounwind ssp { entry: -; CHECK: add8: +; CHECK-LABEL: add8: ; CHECK: addq $2 %0 = atomicrmw add i64* %p, i64 2 monotonic ret void @@ -28,7 +28,7 @@ entry: define void @add4(i64* nocapture %p, i32 %v) nounwind ssp { entry: -; CHECK: add4: +; CHECK-LABEL: add4: ; CHECK: addq %0 = sext i32 %v to i64 ; <i64> [#uses=1] %1 = atomicrmw add i64* %p, i64 %0 monotonic @@ -37,7 +37,7 @@ entry: define void @inc3(i8* nocapture %p) nounwind ssp { entry: -; CHECK: inc3: +; CHECK-LABEL: inc3: ; CHECK: incb %0 = atomicrmw add i8* %p, i8 1 monotonic ret void @@ -45,7 +45,7 @@ entry: define void @add7(i8* nocapture %p) nounwind ssp { entry: -; CHECK: add7: +; CHECK-LABEL: add7: ; CHECK: addb $2 %0 = atomicrmw add i8* %p, i8 2 monotonic ret void @@ -53,7 +53,7 @@ entry: define void @add3(i8* nocapture %p, i32 %v) nounwind ssp { entry: -; CHECK: add3: +; CHECK-LABEL: add3: ; CHECK: addb %0 = trunc i32 %v to i8 ; <i8> [#uses=1] %1 = atomicrmw add i8* %p, i8 %0 monotonic @@ -62,7 +62,7 @@ entry: define void @inc2(i16* nocapture %p) nounwind ssp { entry: -; CHECK: inc2: +; CHECK-LABEL: inc2: ; CHECK: incw %0 = atomicrmw add i16* %p, i16 1 monotonic ret void @@ -70,7 +70,7 @@ entry: define void @add6(i16* nocapture %p) nounwind ssp { entry: -; CHECK: add6: +; CHECK-LABEL: add6: ; CHECK: addw $2 %0 = atomicrmw add i16* %p, i16 2 monotonic ret void @@ -78,7 +78,7 @@ entry: define void @add2(i16* nocapture %p, i32 %v) nounwind ssp { entry: -; CHECK: add2: +; CHECK-LABEL: add2: ; CHECK: addw %0 = trunc i32 %v to i16 ; <i16> [#uses=1] %1 = atomicrmw add i16* %p, i16 %0 monotonic @@ -87,7 +87,7 @@ entry: define void @inc1(i32* nocapture %p) nounwind ssp { entry: -; CHECK: inc1: +; CHECK-LABEL: inc1: ; CHECK: incl %0 = atomicrmw add i32* %p, i32 1 monotonic ret void @@ -95,7 +95,7 @@ entry: define void @add5(i32* nocapture %p) nounwind ssp { entry: -; CHECK: add5: +; CHECK-LABEL: add5: ; CHECK: addl $2 %0 = atomicrmw add i32* %p, i32 2 monotonic ret void @@ -103,7 +103,7 @@ entry: define void @add1(i32* nocapture %p, i32 %v) nounwind ssp { entry: -; CHECK: add1: +; CHECK-LABEL: add1: ; CHECK: addl %0 = atomicrmw add i32* %p, i32 %v monotonic ret void @@ -111,7 +111,7 @@ entry: define void @dec4(i64* nocapture %p) nounwind ssp { entry: -; CHECK: dec4: +; CHECK-LABEL: dec4: ; CHECK: decq %0 = atomicrmw sub i64* %p, i64 1 monotonic ret void @@ -119,7 +119,7 @@ entry: define void @sub8(i64* nocapture %p) nounwind ssp { entry: -; CHECK: sub8: +; CHECK-LABEL: sub8: ; CHECK: subq $2 %0 = atomicrmw sub i64* %p, i64 2 monotonic ret void @@ -127,7 +127,7 @@ entry: define void @sub4(i64* nocapture %p, i32 %v) nounwind ssp { entry: -; CHECK: sub4: +; CHECK-LABEL: sub4: ; CHECK: subq %0 = sext i32 %v to i64 ; <i64> [#uses=1] %1 = atomicrmw sub i64* %p, i64 %0 monotonic @@ -136,7 +136,7 @@ entry: define void @dec3(i8* nocapture %p) nounwind ssp { entry: -; CHECK: dec3: +; CHECK-LABEL: dec3: ; CHECK: decb %0 = atomicrmw sub i8* %p, i8 1 monotonic ret void @@ -144,7 +144,7 @@ entry: define void @sub7(i8* nocapture %p) nounwind ssp { entry: -; CHECK: sub7: +; CHECK-LABEL: sub7: ; CHECK: subb $2 %0 = atomicrmw sub i8* %p, i8 2 monotonic ret void @@ -152,7 +152,7 @@ entry: define void @sub3(i8* nocapture %p, i32 %v) nounwind ssp { entry: -; CHECK: sub3: +; CHECK-LABEL: sub3: ; CHECK: subb %0 = trunc i32 %v to i8 ; <i8> [#uses=1] %1 = atomicrmw sub i8* %p, i8 %0 monotonic @@ -161,7 +161,7 @@ entry: define void @dec2(i16* nocapture %p) nounwind ssp { entry: -; CHECK: dec2: +; CHECK-LABEL: dec2: ; CHECK: decw %0 = atomicrmw sub i16* %p, i16 1 monotonic ret void @@ -169,7 +169,7 @@ entry: define void @sub6(i16* nocapture %p) nounwind ssp { entry: -; CHECK: sub6: +; CHECK-LABEL: sub6: ; CHECK: subw $2 %0 = atomicrmw sub i16* %p, i16 2 monotonic ret void @@ -177,7 +177,7 @@ entry: define void @sub2(i16* nocapture %p, i32 %v) nounwind ssp { entry: -; CHECK: sub2: +; CHECK-LABEL: sub2: ; CHECK-NOT: negl ; CHECK: subw %0 = trunc i32 %v to i16 ; <i16> [#uses=1] @@ -187,7 +187,7 @@ entry: define void @dec1(i32* nocapture %p) nounwind ssp { entry: -; CHECK: dec1: +; CHECK-LABEL: dec1: ; CHECK: decl %0 = atomicrmw sub i32* %p, i32 1 monotonic ret void @@ -195,7 +195,7 @@ entry: define void @sub5(i32* nocapture %p) nounwind ssp { entry: -; CHECK: sub5: +; CHECK-LABEL: sub5: ; CHECK: subl $2 %0 = atomicrmw sub i32* %p, i32 2 monotonic ret void |