aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-12-31 06:02:00 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-12-31 06:02:00 +0000
commiteacb7020ec7b0a6a0078f1be7bfd77bf6fe1ff06 (patch)
treeac1b0bfa8c340bb02ac25f991a1ee28b216de458
parent47857812e29324a9d1560796a05b53d3a9217fd9 (diff)
For PR950:
Update the test suite to accommodate the change from signed integer types to signless integer types. The changes were of only a few kinds: 1. Make sure llvm-upgrade is run on the source which does the bulk of the changes automatically. 2. Change things like "grep 'int'" to "grep 'i32'" 3. In several tests bitcasting caused the same name to be reused in the same type plane. These had to be manually fixed. The fix was (generally) to leave the bitcast and provide the instruction with a new name. This should not affect the semantics of the test. In a few cases, the bitcasts were known to be superfluous and irrelevant to the test case so they were removed. 4. One test case uses a bytecode file which needed to be updated to the latest bytecode format. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32789 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Analysis/BasicAA/2004-07-28-MustAliasbug.llx2
-rw-r--r--test/Analysis/BasicAA/2005-03-09-BrokenBasicAA.ll2
-rw-r--r--test/Analysis/BasicAA/tailcall-modref.ll2
-rw-r--r--test/Analysis/GlobalsModRef/indirect-global.ll4
-rw-r--r--test/Analysis/LoadVN/casts.ll2
-rw-r--r--test/Assembler/2002-07-08-HugePerformanceProblem.llx2
-rw-r--r--test/Assembler/2003-04-15-ConstantInitAssertion.llx2
-rw-r--r--test/Assembler/2003-05-21-MalformedShiftCrash.llx2
-rw-r--r--test/Assembler/2003-05-21-MalformedStructCrash.llx2
-rw-r--r--test/Assembler/2003-11-12-ConstantExprCast.llx6
-rw-r--r--test/Assembler/2003-12-30-TypeMapInvalidMemory.llx3
-rw-r--r--test/Assembler/2004-10-22-BCWriterUndefBug.llx2
-rw-r--r--test/C++Frontend/2006-09-27-Debug-Protection.cpp4
-rw-r--r--test/CFrontend/2005-12-04-DeclarationLineNumbers.c2
-rw-r--r--test/CFrontend/2006-01-16-BitCountIntrinsicsUnsigned.c4
-rw-r--r--test/CFrontend/2006-03-03-MissingInitializer.c2
-rw-r--r--test/CodeGen/ARM/vargs2.ll6
-rw-r--r--test/CodeGen/Alpha/zapnot.ll9
-rw-r--r--test/CodeGen/Generic/2005-10-21-longlonggtu.ll4
-rw-r--r--test/CodeGen/Generic/2006-06-28-SimplifySetCCCrash.ll10
-rw-r--r--test/CodeGen/Generic/SwitchLowering.ll1
-rw-r--r--test/CodeGen/PowerPC/2006-01-20-ShiftPartsCrash.ll14
-rw-r--r--test/CodeGen/PowerPC/and-elim.ll3
-rw-r--r--test/CodeGen/PowerPC/branch-opt.ll17
-rw-r--r--test/CodeGen/PowerPC/rotl.ll20
-rw-r--r--test/CodeGen/PowerPC/small-arguments.ll10
-rw-r--r--test/CodeGen/PowerPC/vec_spat.ll8
-rw-r--r--test/CodeGen/X86/2006-05-02-InstrSched1.ll6
-rw-r--r--test/CodeGen/X86/2006-08-07-CycleInDAG.ll4
-rw-r--r--test/CodeGen/X86/loop-hoist.ll4
-rw-r--r--test/CodeGen/X86/loop-strength-reduce.ll6
-rw-r--r--test/CodeGen/X86/trunc-to-bool.ll51
-rw-r--r--test/CodeGen/X86/vec_ins_extract.ll4
-rw-r--r--test/ExecutionEngine/2003-01-04-PhiTest.ll2
-rw-r--r--test/ExecutionEngine/2003-05-11-PHIRegAllocBug.ll2
-rw-r--r--test/ExecutionEngine/2003-06-05-PHIBug.ll2
-rw-r--r--test/ExecutionEngine/2003-08-15-AllocaAssertion.ll2
-rw-r--r--test/ExecutionEngine/2003-08-23-RegisterAllocatePhysReg.ll2
-rw-r--r--test/ExecutionEngine/hello.ll2
-rw-r--r--test/ExecutionEngine/hello2.ll2
-rw-r--r--test/ExecutionEngine/simplesttest.ll2
-rw-r--r--test/ExecutionEngine/simpletest.ll2
-rw-r--r--test/ExecutionEngine/test-loadstore.ll2
-rw-r--r--test/ExecutionEngine/test-logical.ll2
-rw-r--r--test/ExecutionEngine/test-malloc.ll2
-rw-r--r--test/ExecutionEngine/test-ret.ll22
-rw-r--r--test/ExecutionEngine/test-shift.ll26
-rw-r--r--test/Linker/2002-07-17-GlobalFail.ll2
-rw-r--r--test/Linker/2002-07-17-LinkTest2.ll2
-rw-r--r--test/Linker/2002-08-20-ConstantExpr.ll2
-rw-r--r--test/Linker/2003-04-26-NullPtrLinkProblem.ll2
-rw-r--r--test/Linker/2003-05-15-TypeProblem.ll4
-rw-r--r--test/Linker/2003-06-02-TypeResolveProblem.ll4
-rw-r--r--test/Linker/2003-06-02-TypeResolveProblem2.ll4
-rw-r--r--test/Linker/2003-08-20-OpaqueTypeResolve.ll4
-rw-r--r--test/Linker/2003-08-23-GlobalVarLinking.ll4
-rw-r--r--test/Linker/2003-08-23-RecursiveOpaqueTypeResolve.ll4
-rw-r--r--test/Linker/2003-10-21-ConflictingTypesTolerance.ll4
-rw-r--r--test/Linker/2003-10-27-LinkOncePromote.ll4
-rw-r--r--test/Linker/2004-02-17-WeakStrongLinkage.ll4
-rw-r--r--test/Linker/2005-02-12-ConstantGlobals-2.ll6
-rw-r--r--test/Linker/2005-02-12-ConstantGlobals.ll6
-rw-r--r--test/Linker/2005-12-06-AppendingZeroLengthArrays.ll4
-rw-r--r--test/Linker/2006-01-19-ConstantPacked.ll2
-rw-r--r--test/Linker/2006-06-15-GlobalVarAlignment.ll4
-rw-r--r--test/Linker/AppendingLinkage2.ll4
-rw-r--r--test/Linker/ConstantGlobals1.ll4
-rw-r--r--test/Linker/ConstantGlobals2.ll4
-rw-r--r--test/Linker/ConstantGlobals3.ll2
-rw-r--r--test/Linker/LinkOnce.ll4
-rw-r--r--test/Linker/weakextern.ll10
-rw-r--r--test/Transforms/ArgumentPromotion/control-flow2.ll2
-rw-r--r--test/Transforms/ConstProp/2006-11-30-vector-cast.ll2
-rw-r--r--test/Transforms/ConstProp/2006-12-01-bool-casts.ll4
-rw-r--r--test/Transforms/ConstProp/bitcast.ll4
-rw-r--r--test/Transforms/ConstProp/float-to-ptr-cast.ll2
-rw-r--r--test/Transforms/DeadStoreElimination/2004-12-28-PartialStore.ll2
-rw-r--r--test/Transforms/DeadStoreElimination/2006-06-27-AST-Remove.ll24
-rw-r--r--test/Transforms/IndVarsSimplify/2005-02-26-ExitValueCompute.ll2
-rw-r--r--test/Transforms/IndVarsSimplify/2006-03-31-NegativeStride.ll2
-rw-r--r--test/Transforms/IndVarsSimplify/variable-stride-ivs.ll8
-rw-r--r--test/Transforms/Inline/casts.ll2
-rw-r--r--test/Transforms/InstCombine/2006-05-06-Infloop.ll18
-rw-r--r--test/Transforms/InstCombine/2006-06-28-infloop.ll4
-rw-r--r--test/Transforms/InstCombine/2006-09-15-CastToBool.ll8
-rw-r--r--test/Transforms/InstCombine/2006-10-19-SignedToUnsignedCastAndConst-2.ll2
-rw-r--r--test/Transforms/InstCombine/2006-10-19-SignedToUnsignedCastAndConst.ll2
-rw-r--r--test/Transforms/InstCombine/deadcode.ll2
-rw-r--r--test/Transforms/InstCombine/fpcast.ll6
-rw-r--r--test/Transforms/InstCombine/shift-sra.ll2
-rw-r--r--test/Transforms/InstCombine/sub.ll2
-rw-r--r--test/Transforms/InstCombine/zeroext-and-reduce.ll2
-rw-r--r--test/Transforms/LCSSA/basictest.ll6
-rw-r--r--test/Transforms/LICM/basictest.ll4
-rw-r--r--test/Transforms/LICM/no-preheader-test.ll4
-rw-r--r--test/Transforms/LoopSimplify/2006-08-11-LoopSimplifyLongTime.ll.bcbin165491 -> 193662 bytes
-rw-r--r--test/Transforms/LoopStrengthReduce/nested-reduce.ll6
-rw-r--r--test/Transforms/LoopStrengthReduce/share_code_in_preheader.ll12
-rw-r--r--test/Transforms/LoopStrengthReduce/use_postinc_value_outside_loop.ll10
-rw-r--r--test/Transforms/LoopStrengthReduce/var_stride_used_by_compare.ll8
-rw-r--r--test/Transforms/LoopUnswitch/2006-02-14-LoopSimplifyCrash.ll6
-rw-r--r--test/Transforms/PredicateSimplifier/2006-09-20-SetCC.ll6
-rw-r--r--test/Transforms/Reassociate/2005-09-01-ArrayOutOfBounds.ll2
-rw-r--r--test/Transforms/Reassociate/shifttest.ll2
-rw-r--r--test/Transforms/SCCP/2004-12-10-UndefBranchBug.ll2
-rw-r--r--test/Transforms/SCCP/2006-12-04-PackedType.ll4
-rw-r--r--test/Transforms/SCCP/ipsccp-basic.ll2
-rw-r--r--test/Transforms/SCCP/ipsccp-conditional.ll2
-rw-r--r--test/Transforms/SCCP/logical-nuke.ll2
-rw-r--r--test/Transforms/ScalarRepl/2006-11-07-InvalidArrayPromote.ll2
-rw-r--r--test/Transforms/ScalarRepl/union-fp-int.ll2
-rw-r--r--test/Transforms/ScalarRepl/union-pointer.ll2
-rw-r--r--test/Transforms/SimplifyCFG/2006-10-29-InvokeCrash.ll4
-rw-r--r--test/Transforms/SimplifyCFG/2006-12-08-Ptr-ICmp-Branch.ll2
-rw-r--r--test/Transforms/SimplifyLibCalls/ExitInMain.ll2
-rw-r--r--test/Transforms/TailCallElim/dont-tce-tail-marked-call.ll2
-rw-r--r--test/Transforms/TailCallElim/move_alloca_for_tail_call.ll2
117 files changed, 285 insertions, 299 deletions
diff --git a/test/Analysis/BasicAA/2004-07-28-MustAliasbug.llx b/test/Analysis/BasicAA/2004-07-28-MustAliasbug.llx
index 82212af0c6..f888fc033a 100644
--- a/test/Analysis/BasicAA/2004-07-28-MustAliasbug.llx
+++ b/test/Analysis/BasicAA/2004-07-28-MustAliasbug.llx
@@ -1,4 +1,4 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -dse | llvm-dis | grep 'store int 0'
+; RUN: llvm-upgrade < %s | llvm-as | opt -dse | llvm-dis | grep 'store i32 0'
void %test({int,int }* %P) {
%Q = getelementptr {int,int}* %P, int 1
diff --git a/test/Analysis/BasicAA/2005-03-09-BrokenBasicAA.ll b/test/Analysis/BasicAA/2005-03-09-BrokenBasicAA.ll
index e8289109dd..f82816e9fa 100644
--- a/test/Analysis/BasicAA/2005-03-09-BrokenBasicAA.ll
+++ b/test/Analysis/BasicAA/2005-03-09-BrokenBasicAA.ll
@@ -1,4 +1,4 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -basicaa -load-vn -gcse -instcombine | llvm-dis | grep 'load int\* %A'
+; RUN: llvm-upgrade < %s | llvm-as | opt -basicaa -load-vn -gcse -instcombine | llvm-dis | grep 'load i32\* %A'
declare double* %useit(int*)
diff --git a/test/Analysis/BasicAA/tailcall-modref.ll b/test/Analysis/BasicAA/tailcall-modref.ll
index 7fbddd769f..a92f85d122 100644
--- a/test/Analysis/BasicAA/tailcall-modref.ll
+++ b/test/Analysis/BasicAA/tailcall-modref.ll
@@ -1,4 +1,4 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -basicaa -load-vn -gcse -instcombine | llvm-dis | grep 'ret int 0'
+; RUN: llvm-upgrade < %s | llvm-as | opt -basicaa -load-vn -gcse -instcombine | llvm-dis | grep 'ret i32 0'
declare void %foo(int*)
declare void %bar()
diff --git a/test/Analysis/GlobalsModRef/indirect-global.ll b/test/Analysis/GlobalsModRef/indirect-global.ll
index d0f79c12ea..bb75732beb 100644
--- a/test/Analysis/GlobalsModRef/indirect-global.ll
+++ b/test/Analysis/GlobalsModRef/indirect-global.ll
@@ -1,4 +1,6 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -globalsmodref-aa -load-vn -gcse -instcombine | llvm-dis | grep 'ret int 0'
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: opt -globalsmodref-aa -load-vn -gcse -instcombine | llvm-dis | \
+; RUN: grep 'ret i32 0'
%G = internal global int* null
implementation
diff --git a/test/Analysis/LoadVN/casts.ll b/test/Analysis/LoadVN/casts.ll
index 5dd3bc60ab..9b8f6a5999 100644
--- a/test/Analysis/LoadVN/casts.ll
+++ b/test/Analysis/LoadVN/casts.ll
@@ -1,7 +1,7 @@
; Check to make sure that Value Numbering doesn't merge casts of different
; flavors.
; RUN: llvm-upgrade < %s | llvm-as | opt -load-vn -gcse | llvm-dis | \
-; RUN: grep '[sz]ext' | wc -l | grep 2
+; RUN: grep '[sz]ext' | wc -l | grep 2
declare void %external(int)
diff --git a/test/Assembler/2002-07-08-HugePerformanceProblem.llx b/test/Assembler/2002-07-08-HugePerformanceProblem.llx
index 9c97b5dc39..02a05f8edd 100644
--- a/test/Assembler/2002-07-08-HugePerformanceProblem.llx
+++ b/test/Assembler/2002-07-08-HugePerformanceProblem.llx
@@ -1,6 +1,6 @@
; This file takes about 48 __MINUTES__ to assemble using as. This is WAY too
; long. The type resolution code needs to be sped up a lot.
-; RUN: ulimit -t 20; llvm-as < %s
+; RUN: ulimit -t 20;