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 | c1c7a1309c039ec8539e3c851f332825d8855223 (patch) | |
tree | f02719af3762ca8753eb422a365ef33ddf23f0c4 /llvm/test/Transforms/InstSimplify/floating-point-arithmetic.ll | |
parent | 2e105ff8b789f517c3e19de275775df2d6da4aa0 (diff) | |
download | bcm5719-llvm-c1c7a1309c039ec8539e3c851f332825d8855223.tar.gz bcm5719-llvm-c1c7a1309c039ec8539e3c851f332825d8855223.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
llvm-svn: 186268
Diffstat (limited to 'llvm/test/Transforms/InstSimplify/floating-point-arithmetic.ll')
-rw-r--r-- | llvm/test/Transforms/InstSimplify/floating-point-arithmetic.ll | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/test/Transforms/InstSimplify/floating-point-arithmetic.ll b/llvm/test/Transforms/InstSimplify/floating-point-arithmetic.ll index 91ce26324b8..8177440472c 100644 --- a/llvm/test/Transforms/InstSimplify/floating-point-arithmetic.ll +++ b/llvm/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 |