From e3ff5ada8a8f6cc166ecc45147da0d63c3683026 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Fri, 26 Jan 2007 08:25:06 +0000 Subject: For PR761: Remove "target endian/pointersize" or add "target datalayout" to make the test parse properly or set the datalayout because defaults changes. For PR645: Make global names use the @ prefix. For llvm-upgrade changes: Fix test cases or completely remove use of llvm-upgrade for test cases that cannot survive the new renaming or upgrade capabilities. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33533 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Analysis/BasicAA/2007-01-13-BasePointerBadNoAlias.ll | 4 +--- test/Analysis/Dominators/2007-01-14-BreakCritEdges.ll | 2 +- test/Analysis/ScalarEvolution/trip-count.ll | 9 +++++---- 3 files changed, 7 insertions(+), 8 deletions(-) (limited to 'test/Analysis') diff --git a/test/Analysis/BasicAA/2007-01-13-BasePointerBadNoAlias.ll b/test/Analysis/BasicAA/2007-01-13-BasePointerBadNoAlias.ll index 19c5c06c6b..f742c18fd3 100644 --- a/test/Analysis/BasicAA/2007-01-13-BasePointerBadNoAlias.ll +++ b/test/Analysis/BasicAA/2007-01-13-BasePointerBadNoAlias.ll @@ -3,8 +3,6 @@ ; PR1109 target datalayout = "e-p:32:32" -target endian = little -target pointersize = 32 target triple = "i686-apple-darwin8" %struct.CONSTRAINT = type { i32, i32, i32, i32 } %struct.FILE_POS = type { i8, i8, i16, i32 } @@ -21,7 +19,7 @@ target triple = "i686-apple-darwin8" implementation ; Functions: -define i32 %test(%struct.closure_type* %tmp18169) { +define i32 @test(%struct.closure_type* %tmp18169) { %tmp18174 = getelementptr %struct.closure_type* %tmp18169, i32 0, i32 4, i32 0, i32 0 ; [#uses=2] %tmp18269 = bitcast i32* %tmp18174 to %struct.STYLE* ; <%struct.STYLE*> [#uses=1] %A = load i32* %tmp18174 ; [#uses=1] diff --git a/test/Analysis/Dominators/2007-01-14-BreakCritEdges.ll b/test/Analysis/Dominators/2007-01-14-BreakCritEdges.ll index 866505d7c7..5e8fce72ee 100644 --- a/test/Analysis/Dominators/2007-01-14-BreakCritEdges.ll +++ b/test/Analysis/Dominators/2007-01-14-BreakCritEdges.ll @@ -14,7 +14,7 @@ implementation ; Functions: -define void %ov_read() { +define void @ov_read() { entry: br i1 false, label %bb, label %return diff --git a/test/Analysis/ScalarEvolution/trip-count.ll b/test/Analysis/ScalarEvolution/trip-count.ll index 347cffd4c8..6905d6dd38 100644 --- a/test/Analysis/ScalarEvolution/trip-count.ll +++ b/test/Analysis/ScalarEvolution/trip-count.ll @@ -1,17 +1,18 @@ -; RUN: llvm-as < %s | opt -analyze -scalar-evolution 2>&1 | grep '10000 iterations' +; RUN: llvm-as < %s | opt -analyze -scalar-evolution 2>&1 | \ +; RUN: grep '10000 iterations' ; PR1101 -%A = weak global [1000 x i32] zeroinitializer, align 32 +@A = weak global [1000 x i32] zeroinitializer, align 32 implementation ; Functions: -define void %test(i32 %N) { +define void @test(i32 %N) { entry: "alloca point" = bitcast i32 0 to i32 ; [#uses=0] br label %bb3 bb: ; preds = %bb3 - %tmp = getelementptr [1000 x i32]* %A, i32 0, i32 %i.0 ; [#uses=1] + %tmp = getelementptr [1000 x i32]* @A, i32 0, i32 %i.0 ; [#uses=1] store i32 123, i32* %tmp %tmp2 = add i32 %i.0, 1 ; [#uses=1] br label %bb3 -- cgit v1.2.3