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/exact-nsw-nuw.ll | |
parent | 82e539d037a33f968e4a5476d3d471e1112f8ab2 (diff) | |
download | llvm-39f4e8d9cce22b60a3417a5f17c847fa5b1daebf.tar.gz llvm-39f4e8d9cce22b60a3417a5f17c847fa5b1daebf.tar.bz2 llvm-39f4e8d9cce22b60a3417a5f17c847fa5b1daebf.tar.xz |
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/exact-nsw-nuw.ll')
-rw-r--r-- | test/Transforms/InstSimplify/exact-nsw-nuw.ll | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/Transforms/InstSimplify/exact-nsw-nuw.ll b/test/Transforms/InstSimplify/exact-nsw-nuw.ll index f3a804eb5b..a0e326b13c 100644 --- a/test/Transforms/InstSimplify/exact-nsw-nuw.ll +++ b/test/Transforms/InstSimplify/exact-nsw-nuw.ll @@ -2,7 +2,7 @@ ; PR8862 -; CHECK: @shift1 +; CHECK-LABEL: @shift1( ; CHECK: ret i32 %A define i32 @shift1(i32 %A, i32 %B) { %C = lshr exact i32 %A, %B @@ -10,7 +10,7 @@ define i32 @shift1(i32 %A, i32 %B) { ret i32 %D } -; CHECK: @shift2 +; CHECK-LABEL: @shift2( ; CHECK: lshr ; CHECK: ret i32 %D define i32 @shift2(i32 %A, i32 %B) { @@ -19,7 +19,7 @@ define i32 @shift2(i32 %A, i32 %B) { ret i32 %D } -; CHECK: @shift3 +; CHECK-LABEL: @shift3( ; CHECK: ret i32 %A define i32 @shift3(i32 %A, i32 %B) { %C = ashr exact i32 %A, %B @@ -27,7 +27,7 @@ define i32 @shift3(i32 %A, i32 %B) { ret i32 %D } -; CHECK: @shift4 +; CHECK-LABEL: @shift4( ; CHECK: ret i32 %A define i32 @shift4(i32 %A, i32 %B) { %C = shl nuw i32 %A, %B @@ -35,7 +35,7 @@ define i32 @shift4(i32 %A, i32 %B) { ret i32 %D } -; CHECK: @shift5 +; CHECK-LABEL: @shift5( ; CHECK: ret i32 %A define i32 @shift5(i32 %A, i32 %B) { %C = shl nsw i32 %A, %B |