mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 16:17:38 +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:
@@ -5,7 +5,7 @@
|
||||
target triple = "x86-apple-darwin"
|
||||
|
||||
; Verify that identical edges are merged. rdar://problem/6453893
|
||||
; CHECK: @test1
|
||||
; CHECK-LABEL: @test1(
|
||||
; CHECK: bb89:
|
||||
; CHECK: phi i8* [ %lsr.iv.next1, %bbA.bb89_crit_edge ], [ %lsr.iv.next1, %bbB.bb89_crit_edge ]{{$}}
|
||||
|
||||
@@ -43,7 +43,7 @@ exit:
|
||||
}
|
||||
|
||||
; Handle single-predecessor phis: PR13756
|
||||
; CHECK: @test2
|
||||
; CHECK-LABEL: @test2(
|
||||
; CHECK: bb89:
|
||||
; CHECK: phi i8* [ %lsr.iv.next1, %bbA ], [ %lsr.iv.next1, %bbA ], [ %lsr.iv.next1, %bbA ]{{$}}
|
||||
define i8* @test2() {
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
target triple = "x86-apple-darwin"
|
||||
|
||||
; CHECK: @test
|
||||
; CHECK-LABEL: @test(
|
||||
; multiplies are hoisted out of the loop
|
||||
; CHECK: while.body.lr.ph:
|
||||
; CHECK: mul i64
|
||||
|
||||
@@ -8,7 +8,7 @@ target triple = "x86_64-apple-darwin"
|
||||
|
||||
; Verify that -loop-reduce runs without "hanging" and reuses post-inc
|
||||
; expansions.
|
||||
; CHECK: @test
|
||||
; CHECK-LABEL: @test(
|
||||
; CHECK: icmp
|
||||
; CHECK: icmp
|
||||
; CHECK: icmp
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
target triple = "x86_64-apple-darwin"
|
||||
|
||||
; CHECK: @test
|
||||
; CHECK-LABEL: @test(
|
||||
; CHECK: phi
|
||||
; CHECK-NOT: phi
|
||||
define void @test(i32 %rowStride) ssp align 2 {
|
||||
|
||||
@@ -9,7 +9,7 @@ target triple = "i386-unknown-freebsd10.0"
|
||||
|
||||
@b = external global [121 x i32]
|
||||
|
||||
; CHECK: @vb
|
||||
; CHECK-LABEL: @vb(
|
||||
; Outer recurrence:
|
||||
; CHECK: %lsr.iv1 = phi [121 x i32]*
|
||||
; Inner recurrence:
|
||||
|
||||
@@ -11,7 +11,7 @@ target triple = "i386-apple-darwin"
|
||||
; cannot find a preheader, so they should be expanded in the loop header
|
||||
; (bb7.lr.ph.us) below the existing phi i.12.us.
|
||||
; Currently, LSR won't kick in on such loops.
|
||||
; CHECK: @nopreheader
|
||||
; CHECK-LABEL: @nopreheader(
|
||||
; CHECK: bb7.us:
|
||||
; CHECK-NOT: phi float*
|
||||
; CHECK: %j.01.us = phi i32
|
||||
@@ -54,7 +54,7 @@ return: ; preds = %bb9, %bb9.us, %bb10
|
||||
; In this case, SCEVExpander simply cannot materialize the AddRecExpr
|
||||
; that LSR picks. We must detect that %bb8.preheader does not have a
|
||||
; preheader and avoid performing LSR on %bb7.
|
||||
; CHECK: @nopreheader2
|
||||
; CHECK-LABEL: @nopreheader2(
|
||||
; CHECK: bb7:
|
||||
; CHECK: %indvar = phi i32
|
||||
define fastcc void @nopreheader2([200 x i32]* nocapture %Array2) nounwind {
|
||||
|
||||
@@ -8,7 +8,7 @@ target triple = "x86_64-apple-darwin10.0.0"
|
||||
; while.cond197 is a dominates the simplified loop while.cond238 but
|
||||
; has no with no preheader.
|
||||
;
|
||||
; CHECK: @nopreheader
|
||||
; CHECK-LABEL: @nopreheader(
|
||||
; CHECK: %while.cond238
|
||||
; CHECK: phi i64
|
||||
; CHECK-NOT: phi
|
||||
|
||||
@@ -7,7 +7,7 @@ target triple = "x86_64-apple-darwin10.0.0"
|
||||
|
||||
; IVUsers should not consider tmp128 a valid user because it is not in a
|
||||
; simplified loop nest.
|
||||
; CHECK: @nopreheader
|
||||
; CHECK-LABEL: @nopreheader(
|
||||
; CHECK: for.cond:
|
||||
; CHECK: %tmp128 = add i64 %0, %indvar65
|
||||
define void @nopreheader(i8* %cmd) nounwind ssp {
|
||||
|
||||
@@ -10,7 +10,7 @@ target triple = "x86_64-apple-darwin"
|
||||
@g_3 = global i32 0, align 4
|
||||
|
||||
; Ensure that %div.i.i.us is not hoisted.
|
||||
; CHECK: @main
|
||||
; CHECK-LABEL: @main(
|
||||
; CHECK: for.body.i.i.us:
|
||||
; CHECK: %div.i.i.i.us
|
||||
; CHECK: %cmp5.i.i.us
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128-n8:16:32-S128"
|
||||
|
||||
; CHECK: @test
|
||||
; CHECK-LABEL: @test(
|
||||
; CHECK: bb8:
|
||||
; CHECK-NEXT: phi i8
|
||||
; CHECK-NEXT: phi i8
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
|
||||
|
||||
; Verify that nothing uses the "dead" ptrtoint from "undef".
|
||||
; CHECK: @VerifyDiagnosticConsumerTest
|
||||
; CHECK-LABEL: @VerifyDiagnosticConsumerTest(
|
||||
; CHECK: bb:
|
||||
; "dead" ptrpoint not emitted (or dead code eliminated) with
|
||||
; current LSR cost model.
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
; rdar://9786536
|
||||
|
||||
; First, make sure LSR doesn't crash on an empty IVUsers list.
|
||||
; CHECK: @dummyIV
|
||||
; CHECK-LABEL: @dummyIV(
|
||||
; CHECK-NOT: phi
|
||||
; CHECK-NOT: sitofp
|
||||
; CHECK: br
|
||||
@@ -24,7 +24,7 @@ for.end:
|
||||
}
|
||||
|
||||
; Now check that the computed double constant is correct.
|
||||
; CHECK: @doubleIV
|
||||
; CHECK-LABEL: @doubleIV(
|
||||
; CHECK: phi double [ -3.900000e+01, %entry ]
|
||||
; CHECK: br
|
||||
define void @doubleIV() nounwind {
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
|
||||
target triple = "x86_64-apple-darwin"
|
||||
|
||||
; CHECK: @test
|
||||
; CHECK-LABEL: @test(
|
||||
; CHECK: for.body:
|
||||
; CHECK: %lsr.iv
|
||||
; CHECK-NOT: %dummyout
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
%struct = type { i8*, i8*, i16, i64, i16, i16, i16, i64, i64, i16, i8*, i64, i64, i64 }
|
||||
|
||||
; CHECK: @test
|
||||
; CHECK-LABEL: @test(
|
||||
; CHECK: for.body:
|
||||
; CHECK: lsr.iv = phi %struct
|
||||
; CHECK: br
|
||||
|
||||
@@ -3,7 +3,7 @@ target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f3
|
||||
target triple = "i686-pc-win32"
|
||||
|
||||
; <rdar://problem/14199725> Assertion failed: (CurScaleCost >= 0 && "Legal addressing mode has an illegal cost!")
|
||||
; CHECK: @scalingFactorCrash
|
||||
; CHECK-LABEL: @scalingFactorCrash(
|
||||
define void @scalingFactorCrash() {
|
||||
br i1 undef, label %1, label %24
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ bb14: ; preds = %bb14, %bb10
|
||||
}
|
||||
|
||||
define fastcc void @TransformLine() nounwind {
|
||||
; CHECK: @TransformLine
|
||||
; CHECK-LABEL: @TransformLine(
|
||||
bb:
|
||||
br label %loop0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user