mirror of
https://github.com/RPCS3/llvm.git
synced 2026-07-19 23:23:38 -04:00
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
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
|
||||
define fastcc void @foo(i32 %X) {
|
||||
entry:
|
||||
; CHECK: @foo
|
||||
; CHECK-LABEL: @foo(
|
||||
%ALL = alloca i32, align 4 ; <i32*> [#uses=1]
|
||||
%tmp1 = and i32 %X, 1 ; <i32> [#uses=1]
|
||||
%tmp1.upgrd.1 = icmp eq i32 %tmp1, 0 ; <i1> [#uses=1]
|
||||
@@ -47,7 +47,7 @@ UnifiedReturnBlock: ; preds = %cond_next13
|
||||
ret void
|
||||
}
|
||||
|
||||
; CHECK-NOT: @bar
|
||||
; CHECK-NOT-LABEL: @bar(
|
||||
define internal fastcc void @bar(i32 %X) {
|
||||
entry:
|
||||
%ALL = alloca i32, align 4 ; <i32*> [#uses=1]
|
||||
@@ -101,7 +101,7 @@ declare void @ext(i32*)
|
||||
define void @test(i32 %X) {
|
||||
entry:
|
||||
; CHECK: test
|
||||
; CHECK-NOT: @bar
|
||||
; CHECK-NOT-LABEL: @bar(
|
||||
tail call fastcc void @bar( i32 %X )
|
||||
tail call fastcc void @bar( i32 %X )
|
||||
tail call fastcc void @bar2( i32 %X )
|
||||
|
||||
Reference in New Issue
Block a user