From 2ad38be2cf53467d39c34456795360f122b37629 Mon Sep 17 00:00:00 2001 From: Tanya Lattner Date: Tue, 19 Feb 2008 01:44:26 +0000 Subject: [PATCH] Remove llvm-upgrade and update tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47297 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Other/2002-01-31-CallGraph.ll | 14 ++++---- test/Other/2002-02-24-InlineBrokePHINodes.ll | 35 +++++++++---------- test/Other/2002-03-11-ConstPropCrash.ll | 27 +++++++------- test/Other/2003-02-19-LoopInfoNestingBug.ll | 33 ++++++++--------- test/Other/2004-08-16-LowerPacked.ll | 32 ++++++++--------- .../2004-08-16-PackedConstantInlineStore.ll | 15 ++++---- test/Other/2004-08-16-PackedGlobalConstant.ll | 18 +++++----- test/Other/2004-08-16-PackedSelect.ll | 22 ++++++------ test/Other/2004-08-16-PackedSimple.ll | 22 ++++++------ test/Other/2004-08-20-PackedControlFlow.ll | 33 +++++++++-------- ...007-04-24-eliminate-mostly-empty-blocks.ll | 4 +-- 11 files changed, 118 insertions(+), 137 deletions(-) diff --git a/test/Other/2002-01-31-CallGraph.ll b/test/Other/2002-01-31-CallGraph.ll index 61c1277d642..e09461dc2ac 100644 --- a/test/Other/2002-01-31-CallGraph.ll +++ b/test/Other/2002-01-31-CallGraph.ll @@ -1,15 +1,13 @@ ; Call graph construction crash: Not handling indirect calls right ; -; RUN: llvm-upgrade < %s | llvm-as | opt -analyze -callgraph +; RUN: llvm-as < %s | opt -analyze -callgraph ; -%FunTy = type int(int) + %FunTy = type i32 (i32) -implementation +define void @invoke(%FunTy* %x) { + %foo = call i32 %x( i32 123 ) ; [#uses=0] + ret void +} -void "invoke"(%FunTy *%x) -begin - %foo = call %FunTy* %x(int 123) - ret void -end diff --git a/test/Other/2002-02-24-InlineBrokePHINodes.ll b/test/Other/2002-02-24-InlineBrokePHINodes.ll index cb02ea486ed..cbb1a896937 100644 --- a/test/Other/2002-02-24-InlineBrokePHINodes.ll +++ b/test/Other/2002-02-24-InlineBrokePHINodes.ll @@ -1,26 +1,23 @@ -; Inlining used to break PHI nodes. This tests that they are correctly updated +; Inlining used to break PHI nodes. This tests that they are correctly updated ; when a node is split around the call instruction. The verifier caught the error. ; -; RUN: llvm-upgrade < %s | llvm-as | opt -inline +; RUN: llvm-as < %s | opt -inline ; -implementation -ulong "test"(ulong %X) -begin - ret ulong %X -end +define i64 @test(i64 %X) { + ret i64 %X +} -ulong "fib"(ulong %n) -begin - %T = setlt ulong %n, 2 ; {bool}:0 - br bool %T, label %BaseCase, label %RecurseCase +define i64 @fib(i64 %n) { +;