mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-26 09:18:56 +00: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 @@
|
||||
; Sink should sink the load past the store (which doesn't overlap) into
|
||||
; the block that uses it.
|
||||
|
||||
; CHECK: @foo
|
||||
; CHECK-LABEL: @foo(
|
||||
; CHECK: true:
|
||||
; CHECK-NEXT: %l = load i32* @A
|
||||
; CHECK-NEXT: ret i32 %l
|
||||
@@ -23,7 +23,7 @@ false:
|
||||
|
||||
; But don't sink load volatiles...
|
||||
|
||||
; CHECK: @foo2
|
||||
; CHECK-LABEL: @foo2(
|
||||
; CHECK: load volatile
|
||||
; CHECK-NEXT: store i32
|
||||
|
||||
@@ -39,7 +39,7 @@ false:
|
||||
|
||||
; Sink to the nearest post-dominator
|
||||
|
||||
; CHECK: @diamond
|
||||
; CHECK-LABEL: @diamond(
|
||||
; CHECK: X:
|
||||
; CHECK-NEXT: phi
|
||||
; CHECK-NEXT: mul nsw
|
||||
|
Reference in New Issue
Block a user