From d24ab20e9b11d2076d8b9d5cd96f41a6b9c399fb Mon Sep 17 00:00:00 2001 From: Stephen Lin Date: Sun, 14 Jul 2013 06:24:09 +0000 Subject: 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 llvm-svn: 186280 --- llvm/test/CodeGen/SystemZ/fp-mul-04.ll | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'llvm/test/CodeGen/SystemZ/fp-mul-04.ll') diff --git a/llvm/test/CodeGen/SystemZ/fp-mul-04.ll b/llvm/test/CodeGen/SystemZ/fp-mul-04.ll index c7f734ff818..3c4325e6cbb 100644 --- a/llvm/test/CodeGen/SystemZ/fp-mul-04.ll +++ b/llvm/test/CodeGen/SystemZ/fp-mul-04.ll @@ -8,7 +8,7 @@ declare double @foo() ; point of view, because %f2 is the low register of the FP128 %f0. Pass the ; multiplier in %f4 instead. define void @f1(double %f1, double %dummy, double %f2, fp128 *%dst) { -; CHECK: f1: +; CHECK-LABEL: f1: ; CHECK: mxdbr %f0, %f4 ; CHECK: std %f0, 0(%r2) ; CHECK: std %f2, 8(%r2) @@ -22,7 +22,7 @@ define void @f1(double %f1, double %dummy, double %f2, fp128 *%dst) { ; Check the low end of the MXDB range. define void @f2(double %f1, double *%ptr, fp128 *%dst) { -; CHECK: f2: +; CHECK-LABEL: f2: ; CHECK: mxdb %f0, 0(%r2) ; CHECK: std %f0, 0(%r3) ; CHECK: std %f2, 8(%r3) @@ -37,7 +37,7 @@ define void @f2(double %f1, double *%ptr, fp128 *%dst) { ; Check the high end of the aligned MXDB range. define void @f3(double %f1, double *%base, fp128 *%dst) { -; CHECK: f3: +; CHECK-LABEL: f3: ; CHECK: mxdb %f0, 4088(%r2) ; CHECK: std %f0, 0(%r3) ; CHECK: std %f2, 8(%r3) @@ -54,7 +54,7 @@ define void @f3(double %f1, double *%base, fp128 *%dst) { ; Check the next doubleword up, which needs separate address logic. ; Other sequences besides this one would be OK. define void @f4(double %f1, double *%base, fp128 *%dst) { -; CHECK: f4: +; CHECK-LABEL: f4: ; CHECK: aghi %r2, 4096 ; CHECK: mxdb %f0, 0(%r2) ; CHECK: std %f0, 0(%r3) @@ -71,7 +71,7 @@ define void @f4(double %f1, double *%base, fp128 *%dst) { ; Check negative displacements, which also need separate address logic. define void @f5(double %f1, double *%base, fp128 *%dst) { -; CHECK: f5: +; CHECK-LABEL: f5: ; CHECK: aghi %r2, -8 ; CHECK: mxdb %f0, 0(%r2) ; CHECK: std %f0, 0(%r3) @@ -88,7 +88,7 @@ define void @f5(double %f1, double *%base, fp128 *%dst) { ; Check that MXDB allows indices. define void @f6(double %f1, double *%base, i64 %index, fp128 *%dst) { -; CHECK: f6: +; CHECK-LABEL: f6: ; CHECK: sllg %r1, %r3, 3 ; CHECK: mxdb %f0, 800(%r1,%r2) ; CHECK: std %f0, 0(%r4) @@ -106,7 +106,7 @@ define void @f6(double %f1, double *%base, i64 %index, fp128 *%dst) { ; Check that multiplications of spilled values can use MXDB rather than MXDBR. define double @f7(double *%ptr0) { -; CHECK: f7: +; CHECK-LABEL: f7: ; CHECK: brasl %r14, foo@PLT ; CHECK: mxdb %f0, 160(%r15) ; CHECK: br %r14 -- cgit v1.2.3