diff options
author | Stephen Lin <stephenwlin@gmail.com> | 2013-07-14 01:42:54 +0000 |
---|---|---|
committer | Stephen Lin <stephenwlin@gmail.com> | 2013-07-14 01:42:54 +0000 |
commit | 39f4e8d9cce22b60a3417a5f17c847fa5b1daebf (patch) | |
tree | 7fed202a2c2c7866f60344b6388e0d3bd98cb14c /test/Transforms/InstSimplify/floating-point-arithmetic.ll | |
parent | 82e539d037a33f968e4a5476d3d471e1112f8ab2 (diff) | |
download | external_llvm-39f4e8d9cce22b60a3417a5f17c847fa5b1daebf.tar.gz external_llvm-39f4e8d9cce22b60a3417a5f17c847fa5b1daebf.tar.bz2 external_llvm-39f4e8d9cce22b60a3417a5f17c847fa5b1daebf.zip |
Update Transforms tests to use CHECK-LABEL for easier debugging. No functionality change.
This update was done with the following bash script:
find test/Transforms -name "*.ll" | \
while read NAME; do
echo "$NAME"
if ! grep -q "^; *RUN: *llc" $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
mv $TEMP $NAME
fi
done
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186268 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/InstSimplify/floating-point-arithmetic.ll')
-rw-r--r-- | test/Transforms/InstSimplify/floating-point-arithmetic.ll | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/Transforms/InstSimplify/floating-point-arithmetic.ll b/test/Transforms/InstSimplify/floating-point-arithmetic.ll index 91ce26324b..8177440472 100644 --- a/test/Transforms/InstSimplify/floating-point-arithmetic.ll +++ b/test/Transforms/InstSimplify/floating-point-arithmetic.ll @@ -1,7 +1,7 @@ ; RUN: opt < %s -instsimplify -S | FileCheck %s ; fsub 0, (fsub 0, X) ==> X -; CHECK: @fsub_0_0_x +; CHECK-LABEL: @fsub_0_0_x( define float @fsub_0_0_x(float %a) { %t1 = fsub float -0.0, %a %ret = fsub float -0.0, %t1 @@ -11,7 +11,7 @@ define float @fsub_0_0_x(float %a) { } ; fsub X, 0 ==> X -; CHECK: @fsub_x_0 +; CHECK-LABEL: @fsub_x_0( define float @fsub_x_0(float %a) { %ret = fsub float %a, 0.0 ; CHECK: ret float %a @@ -19,7 +19,7 @@ define float @fsub_x_0(float %a) { } ; fadd X, -0 ==> X -; CHECK: @fadd_x_n0 +; CHECK-LABEL: @fadd_x_n0( define float @fadd_x_n0(float %a) { %ret = fadd float %a, -0.0 ; CHECK: ret float %a @@ -27,7 +27,7 @@ define float @fadd_x_n0(float %a) { } ; fmul X, 1.0 ==> X -; CHECK: @fmul_X_1 +; CHECK-LABEL: @fmul_X_1( define double @fmul_X_1(double %a) { %b = fmul double 1.000000e+00, %a ; <double> [#uses=1] ; CHECK: ret double %a |