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/ARM/fusedMAC.ll | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'llvm/test/CodeGen/ARM/fusedMAC.ll') diff --git a/llvm/test/CodeGen/ARM/fusedMAC.ll b/llvm/test/CodeGen/ARM/fusedMAC.ll index 303d165de0b..e29f291dc2c 100644 --- a/llvm/test/CodeGen/ARM/fusedMAC.ll +++ b/llvm/test/CodeGen/ARM/fusedMAC.ll @@ -2,7 +2,7 @@ ; Check generated fused MAC and MLS. define double @fusedMACTest1(double %d1, double %d2, double %d3) { -;CHECK: fusedMACTest1: +;CHECK-LABEL: fusedMACTest1: ;CHECK: vfma.f64 %1 = fmul double %d1, %d2 %2 = fadd double %1, %d3 @@ -10,7 +10,7 @@ define double @fusedMACTest1(double %d1, double %d2, double %d3) { } define float @fusedMACTest2(float %f1, float %f2, float %f3) { -;CHECK: fusedMACTest2: +;CHECK-LABEL: fusedMACTest2: ;CHECK: vfma.f32 %1 = fmul float %f1, %f2 %2 = fadd float %1, %f3 @@ -18,7 +18,7 @@ define float @fusedMACTest2(float %f1, float %f2, float %f3) { } define double @fusedMACTest3(double %d1, double %d2, double %d3) { -;CHECK: fusedMACTest3: +;CHECK-LABEL: fusedMACTest3: ;CHECK: vfms.f64 %1 = fmul double %d2, %d3 %2 = fsub double %d1, %1 @@ -26,7 +26,7 @@ define double @fusedMACTest3(double %d1, double %d2, double %d3) { } define float @fusedMACTest4(float %f1, float %f2, float %f3) { -;CHECK: fusedMACTest4: +;CHECK-LABEL: fusedMACTest4: ;CHECK: vfms.f32 %1 = fmul float %f2, %f3 %2 = fsub float %f1, %1 @@ -34,7 +34,7 @@ define float @fusedMACTest4(float %f1, float %f2, float %f3) { } define double @fusedMACTest5(double %d1, double %d2, double %d3) { -;CHECK: fusedMACTest5: +;CHECK-LABEL: fusedMACTest5: ;CHECK: vfnma.f64 %1 = fmul double %d1, %d2 %2 = fsub double -0.0, %1 @@ -43,7 +43,7 @@ define double @fusedMACTest5(double %d1, double %d2, double %d3) { } define float @fusedMACTest6(float %f1, float %f2, float %f3) { -;CHECK: fusedMACTest6: +;CHECK-LABEL: fusedMACTest6: ;CHECK: vfnma.f32 %1 = fmul float %f1, %f2 %2 = fsub float -0.0, %1 @@ -52,7 +52,7 @@ define float @fusedMACTest6(float %f1, float %f2, float %f3) { } define double @fusedMACTest7(double %d1, double %d2, double %d3) { -;CHECK: fusedMACTest7: +;CHECK-LABEL: fusedMACTest7: ;CHECK: vfnms.f64 %1 = fmul double %d1, %d2 %2 = fsub double %1, %d3 @@ -60,7 +60,7 @@ define double @fusedMACTest7(double %d1, double %d2, double %d3) { } define float @fusedMACTest8(float %f1, float %f2, float %f3) { -;CHECK: fusedMACTest8: +;CHECK-LABEL: fusedMACTest8: ;CHECK: vfnms.f32 %1 = fmul float %f1, %f2 %2 = fsub float %1, %f3 @@ -68,7 +68,7 @@ define float @fusedMACTest8(float %f1, float %f2, float %f3) { } define <2 x float> @fusedMACTest9(<2 x float> %a, <2 x float> %b) { -;CHECK: fusedMACTest9: +;CHECK-LABEL: fusedMACTest9: ;CHECK: vfma.f32 %mul = fmul <2 x float> %a, %b %add = fadd <2 x float> %mul, %a @@ -76,7 +76,7 @@ define <2 x float> @fusedMACTest9(<2 x float> %a, <2 x float> %b) { } define <2 x float> @fusedMACTest10(<2 x float> %a, <2 x float> %b) { -;CHECK: fusedMACTest10: +;CHECK-LABEL: fusedMACTest10: ;CHECK: vfms.f32 %mul = fmul <2 x float> %a, %b %sub = fsub <2 x float> %a, %mul @@ -84,7 +84,7 @@ define <2 x float> @fusedMACTest10(<2 x float> %a, <2 x float> %b) { } define <4 x float> @fusedMACTest11(<4 x float> %a, <4 x float> %b) { -;CHECK: fusedMACTest11: +;CHECK-LABEL: fusedMACTest11: ;CHECK: vfma.f32 %mul = fmul <4 x float> %a, %b %add = fadd <4 x float> %mul, %a @@ -92,7 +92,7 @@ define <4 x float> @fusedMACTest11(<4 x float> %a, <4 x float> %b) { } define <4 x float> @fusedMACTest12(<4 x float> %a, <4 x float> %b) { -;CHECK: fusedMACTest12: +;CHECK-LABEL: fusedMACTest12: ;CHECK: vfms.f32 %mul = fmul <4 x float> %a, %b %sub = fsub <4 x float> %a, %mul -- cgit v1.2.3