aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/CodeGen/PowerPC/2004-11-30-shift-crash.ll9
-rw-r--r--test/CodeGen/PowerPC/2004-11-30-shr-var-crash.ll12
-rw-r--r--test/CodeGen/PowerPC/2004-12-12-ZeroSizeCommon.ll5
-rw-r--r--test/CodeGen/PowerPC/2005-01-14-SetSelectCrash.ll10
-rw-r--r--test/CodeGen/PowerPC/2005-01-14-UndefLong.ll6
-rw-r--r--test/CodeGen/PowerPC/2005-08-12-rlwimi-crash.ll13
-rw-r--r--test/CodeGen/PowerPC/2005-09-02-LegalizeDuplicatesCalls.ll11
-rw-r--r--test/CodeGen/PowerPC/2005-10-08-ArithmeticRotate.ll12
-rw-r--r--test/CodeGen/PowerPC/2005-11-30-vastart-crash.ll25
-rw-r--r--test/CodeGen/PowerPC/2006-01-11-darwin-fp-argument.ll10
-rw-r--r--test/CodeGen/PowerPC/2006-01-20-ShiftPartsCrash.ll32
-rw-r--r--test/CodeGen/PowerPC/2006-04-01-FloatDoubleExtend.ll12
-rw-r--r--test/CodeGen/PowerPC/2006-04-05-splat-ish.ll13
-rw-r--r--test/CodeGen/PowerPC/2006-04-19-vmaddfp-crash.ll72
-rw-r--r--test/CodeGen/PowerPC/2006-05-12-rlwimi-crash.ll91
-rw-r--r--test/CodeGen/PowerPC/2006-07-07-ComputeMaskedBits.ll27
-rw-r--r--test/CodeGen/PowerPC/2006-07-19-stwbrx-crash.ll15
-rw-r--r--test/CodeGen/PowerPC/2006-08-11-RetVector.ll8
-rw-r--r--test/CodeGen/PowerPC/2006-08-15-SelectionCrash.ll38
-rw-r--r--test/CodeGen/PowerPC/2006-09-28-shift_64.ll44
-rw-r--r--test/CodeGen/PowerPC/2006-10-11-combiner-aa-regression.ll38
-rw-r--r--test/CodeGen/PowerPC/2006-10-13-Miscompile.ll16
-rw-r--r--test/CodeGen/PowerPC/2006-10-17-brcc-miscompile.ll32
-rw-r--r--test/CodeGen/PowerPC/2006-10-17-ppc64-alloca.ll9
-rw-r--r--test/CodeGen/PowerPC/2006-11-10-DAGCombineMiscompile.ll19
-rw-r--r--test/CodeGen/PowerPC/2006-11-29-AltivecFPSplat.ll16
-rw-r--r--test/CodeGen/PowerPC/2006-12-07-LargeAlloca.ll44
-rw-r--r--test/CodeGen/PowerPC/2006-12-07-SelectCrash.ll41
-rw-r--r--test/CodeGen/PowerPC/Frames-large.ll58
-rw-r--r--test/CodeGen/PowerPC/Frames-leaf.ll41
-rw-r--r--test/CodeGen/PowerPC/Frames-small.ll19
-rw-r--r--test/CodeGen/PowerPC/addc.ll23
-rw-r--r--test/CodeGen/PowerPC/addi-reassoc.ll27
-rw-r--r--test/CodeGen/PowerPC/align.ll13
-rw-r--r--test/CodeGen/PowerPC/and-branch.ll27
-rw-r--r--test/CodeGen/PowerPC/and-imm.ll16
-rw-r--r--test/CodeGen/PowerPC/and_add.ll15
-rw-r--r--test/CodeGen/PowerPC/and_sra.ll39
-rw-r--r--test/CodeGen/PowerPC/branch-opt.ll120
-rw-r--r--test/CodeGen/PowerPC/bswap-load-store.ll65
-rw-r--r--test/CodeGen/PowerPC/buildvec_canonicalize.ll21
-rw-r--r--test/CodeGen/PowerPC/calls.ll35
-rw-r--r--test/CodeGen/PowerPC/cmp-cmp.ll20
-rw-r--r--test/CodeGen/X86/2002-12-23-LocalRAProblem.llx20
-rw-r--r--test/CodeGen/X86/2002-12-23-SubProblem.llx10
-rw-r--r--test/CodeGen/X86/2003-08-03-CallArgLiveRanges.llx17
-rw-r--r--test/CodeGen/X86/2003-08-23-DeadBlockTest.llx19
-rw-r--r--test/CodeGen/X86/2003-11-03-GlobalBool.llx5
-rw-r--r--test/CodeGen/X86/2004-02-13-FrameReturnAddress.llx20
-rw-r--r--test/CodeGen/X86/2004-02-14-InefficientStackPointer.llx6
-rw-r--r--test/CodeGen/X86/2004-02-22-Casts.llx17
-rw-r--r--test/CodeGen/X86/2004-03-30-Select-Max.llx11
-rw-r--r--test/CodeGen/X86/2004-04-09-SameValueCoalescing.llx9
-rw-r--r--test/CodeGen/X86/2004-04-13-FPCMOV-Crash.llx11
-rw-r--r--test/CodeGen/X86/2004-06-10-StackifierCrash.llx8
-rw-r--r--test/CodeGen/X86/2004-10-08-SelectSetCCFold.llx10
-rw-r--r--test/CodeGen/X86/2005-01-17-CycleInDAG.ll17
-rw-r--r--test/CodeGen/X86/2005-02-14-IllegalAssembler.ll6
-rw-r--r--test/CodeGen/X86/2005-05-08-FPStackifierPHI.ll79
-rw-r--r--test/CodeGen/X86/2006-01-19-ISelFoldingBug.ll24
-rw-r--r--test/CodeGen/X86/2006-03-01-InstrSchedBug.ll19
-rw-r--r--test/CodeGen/X86/2006-03-02-InstrSchedBug.ll17
-rw-r--r--test/CodeGen/X86/2006-04-04-CrossBlockCrash.ll73
-rw-r--r--test/CodeGen/X86/2006-04-27-ISelFoldingBug.ll52
-rw-r--r--test/CodeGen/X86/2006-05-01-SchedCausingSpills.ll132
-rw-r--r--test/CodeGen/X86/2006-05-02-InstrSched1.ll35
-rw-r--r--test/CodeGen/X86/2006-05-02-InstrSched2.ll33
-rw-r--r--test/CodeGen/X86/2006-05-08-CoalesceSubRegClass.ll32
-rw-r--r--test/CodeGen/X86/2006-05-08-InstrSched.ll39
-rw-r--r--test/CodeGen/X86/2006-05-17-VectorArg.ll19
-rw-r--r--test/CodeGen/X86/2006-05-22-FPSetEQ.ll13
-rw-r--r--test/CodeGen/X86/2006-05-25-CycleInDAG.ll35
-rw-r--r--test/CodeGen/X86/2006-07-10-InlineAsmAConstraint.ll9
-rw-r--r--test/CodeGen/X86/2006-07-12-InlineAsmQConstraint.ll18
-rw-r--r--test/CodeGen/X86/2006-07-19-ATTAsm.ll91
-rw-r--r--test/CodeGen/X86/2006-07-20-InlineAsm.ll31
-rw-r--r--test/CodeGen/X86/2006-07-28-AsmPrint-Long-As-Pointer.ll4
-rw-r--r--test/CodeGen/X86/2006-07-31-SingleRegClass.ll12
-rw-r--r--test/CodeGen/X86/2006-10-09-CycleInDAG.ll15
-rw-r--r--test/CodeGen/X86/2006-10-10-FindModifiedNodeSlotBug.ll45
-rw-r--r--test/CodeGen/X86/2006-11-12-CSRetCC.ll107
-rw-r--r--test/CodeGen/X86/store_op_load_fold2.ll67
-rw-r--r--test/Transforms/InstCombine/call.ll73
-rw-r--r--test/Transforms/InstCombine/cast.ll306
-rw-r--r--test/Transforms/InstCombine/getelementptr.ll105
-rw-r--r--test/Transforms/InstCombine/load.ll95
-rw-r--r--test/Transforms/LCSSA/2006-06-03-IncorrectIDFPhis.ll39
-rw-r--r--test/Transforms/LCSSA/2006-06-12-MultipleExitsSameBlock.ll45
-rw-r--r--test/Transforms/LCSSA/2006-07-09-NoDominator.ll27
-rw-r--r--test/Transforms/LCSSA/2006-10-31-UnreachableBlock-2.ll125
-rw-r--r--test/Transforms/LCSSA/2006-10-31-UnreachableBlock.ll148
-rw-r--r--test/Transforms/LCSSA/basictest.ll34
-rw-r--r--test/Transforms/LoopRotate/LRCrash-1.ll15
-rw-r--r--test/Transforms/LoopRotate/LRCrash-2.ll12
-rw-r--r--test/Transforms/LoopRotate/LRCrash-3.ll18
-rw-r--r--test/Transforms/LoopRotate/LRCrash-4.ll12
-rw-r--r--test/Transforms/LoopSimplify/2003-04-25-AssertFail.ll27
-rw-r--r--test/Transforms/LoopSimplify/2003-05-12-PreheaderExitOfChild.ll45
-rw-r--r--test/Transforms/LoopSimplify/2003-08-15-PreheadersFail.ll97
-rw-r--r--test/Transforms/LoopSimplify/2003-12-10-ExitBlocksProblem.ll42
-rw-r--r--test/Transforms/LoopSimplify/2004-02-05-DominatorInfoCorruption.ll23
-rw-r--r--test/Transforms/LoopSimplify/2004-03-15-IncorrectDomUpdate.ll17
-rw-r--r--test/Transforms/LoopSimplify/2004-04-01-IncorrectDomUpdate.ll34
-rw-r--r--test/Transforms/LoopSimplify/2004-04-12-LoopSimplify-SwitchBackedges.ll26
-rw-r--r--test/Transforms/LoopSimplify/2004-04-13-LoopSimplifyUpdateDomFrontier.ll22
-rw-r--r--test/Transforms/LoopSimplify/basictest.ll21
-rw-r--r--test/Transforms/LoopSimplify/hardertest.ll22
-rw-r--r--test/Transforms/LoopSimplify/phi-node-simplify.ll88
-rw-r--r--test/Transforms/LoopSimplify/single-backedge.ll18
-rw-r--r--test/lib/llvm2cpp.exp19
110 files changed, 1823 insertions, 2138 deletions
diff --git a/test/CodeGen/PowerPC/2004-11-30-shift-crash.ll b/test/CodeGen/PowerPC/2004-11-30-shift-crash.ll
index 4603bdbbf0..93a91234b7 100644
--- a/test/CodeGen/PowerPC/2004-11-30-shift-crash.ll
+++ b/test/CodeGen/PowerPC/2004-11-30-shift-crash.ll
@@ -1,6 +1,7 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32
+; RUN: llvm-as < %s | llc -march=ppc32
-void %main() {
- %tr4 = shl ulong 1, ubyte 0 ; <ulong> [#uses=0]
- ret void
+define void @main() {
+ %tr4 = shl i64 1, 0 ; <i64> [#uses=0]
+ ret void
}
+
diff --git a/test/CodeGen/PowerPC/2004-11-30-shr-var-crash.ll b/test/CodeGen/PowerPC/2004-11-30-shr-var-crash.ll
index 8f54c78e7a..1a1aca4b5d 100644
--- a/test/CodeGen/PowerPC/2004-11-30-shr-var-crash.ll
+++ b/test/CodeGen/PowerPC/2004-11-30-shr-var-crash.ll
@@ -1,7 +1,9 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32
+; RUN: llvm-as < %s | llc -march=ppc32
-void %main() {
- %shamt = add ubyte 0, 1 ; <ubyte> [#uses=1]
- %tr2 = shr long 1, ubyte %shamt ; <long> [#uses=0]
- ret void
+define void @main() {
+ %shamt = add i8 0, 1 ; <i8> [#uses=1]
+ %shift.upgrd.1 = zext i8 %shamt to i64 ; <i64> [#uses=1]
+ %tr2 = ashr i64 1, %shift.upgrd.1 ; <i64> [#uses=0]
+ ret void
}
+
diff --git a/test/CodeGen/PowerPC/2004-12-12-ZeroSizeCommon.ll b/test/CodeGen/PowerPC/2004-12-12-ZeroSizeCommon.ll
index 87f6005a36..3e490b1dc7 100644
--- a/test/CodeGen/PowerPC/2004-12-12-ZeroSizeCommon.ll
+++ b/test/CodeGen/PowerPC/2004-12-12-ZeroSizeCommon.ll
@@ -1,3 +1,4 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep .comm.*X,0
+; RUN: llvm-as < %s | llc -march=ppc32 | not grep .comm.*X,0
+
+@X = linkonce global { } zeroinitializer ; <{ }*> [#uses=0]
-%X = linkonce global {} {}
diff --git a/test/CodeGen/PowerPC/2005-01-14-SetSelectCrash.ll b/test/CodeGen/PowerPC/2005-01-14-SetSelectCrash.ll
index 5dc4b28655..f84caaf1d4 100644
--- a/test/CodeGen/PowerPC/2005-01-14-SetSelectCrash.ll
+++ b/test/CodeGen/PowerPC/2005-01-14-SetSelectCrash.ll
@@ -1,8 +1,8 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32
+; RUN: llvm-as < %s | llc -march=ppc32
-int %main() {
- %setle = setle long 1, 0
- %select = select bool true, bool %setle, bool true
- ret int 0
+define i32 @main() {
+ %setle = icmp sle i64 1, 0 ; <i1> [#uses=1]
+ %select = select i1 true, i1 %setle, i1 true ; <i1> [#uses=0]
+ ret i32 0
}
diff --git a/test/CodeGen/PowerPC/2005-01-14-UndefLong.ll b/test/CodeGen/PowerPC/2005-01-14-UndefLong.ll
index a4121c522f..7b3e9b4f09 100644
--- a/test/CodeGen/PowerPC/2005-01-14-UndefLong.ll
+++ b/test/CodeGen/PowerPC/2005-01-14-UndefLong.ll
@@ -1,3 +1,5 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32
+; RUN: llvm-as < %s | llc -march=ppc32
-long %test() { ret long undef }
+define i64 @test() {
+ ret i64 undef
+}
diff --git a/test/CodeGen/PowerPC/2005-08-12-rlwimi-crash.ll b/test/CodeGen/PowerPC/2005-08-12-rlwimi-crash.ll
index ef0137f4cd..8e8fee2888 100644
--- a/test/CodeGen/PowerPC/2005-08-12-rlwimi-crash.ll
+++ b/test/CodeGen/PowerPC/2005-08-12-rlwimi-crash.ll
@@ -1,12 +1,13 @@
; this should not crash the ppc backend
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32
+; RUN: llvm-as < %s | llc -march=ppc32
-uint %test( int %j.0.0.i) {
- %tmp.85.i = and int %j.0.0.i, 7
- %tmp.161278.i = cast int %tmp.85.i to uint
- %tmp.5.i77.i = shr uint %tmp.161278.i, ubyte 3
- ret uint %tmp.5.i77.i
+
+define i32 @test(i32 %j.0.0.i) {
+ %tmp.85.i = and i32 %j.0.0.i, 7 ; <i32> [#uses=1]
+ %tmp.161278.i = bitcast i32 %tmp.85.i to i32 ; <i32> [#uses=1]
+ %tmp.5.i77.i = lshr i32 %tmp.161278.i, 3 ; <i32> [#uses=1]
+ ret i32 %tmp.5.i77.i
}
diff --git a/test/CodeGen/PowerPC/2005-09-02-LegalizeDuplicatesCalls.ll b/test/CodeGen/PowerPC/2005-09-02-LegalizeDuplicatesCalls.ll
index 4f78ce6b49..428dd0c3e3 100644
--- a/test/CodeGen/PowerPC/2005-09-02-LegalizeDuplicatesCalls.ll
+++ b/test/CodeGen/PowerPC/2005-09-02-LegalizeDuplicatesCalls.ll
@@ -1,10 +1,11 @@
; This function should have exactly one call to fixdfdi, no more!
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mattr=-64bit | \
+; RUN: llvm-as < %s | llc -march=ppc32 -mattr=-64bit | \
; RUN: grep {bl .*fixdfdi} | count 1
-double %test2(double %tmp.7705) {
- %mem_tmp.2.0.in = cast double %tmp.7705 to long ; <long> [#uses=1]
- %mem_tmp.2.0 = cast long %mem_tmp.2.0.in to double
- ret double %mem_tmp.2.0
+define double @test2(double %tmp.7705) {
+ %mem_tmp.2.0.in = fptosi double %tmp.7705 to i64 ; <i64> [#uses=1]
+ %mem_tmp.2.0 = sitofp i64 %mem_tmp.2.0.in to double ; <double> [#uses=1]
+ ret double %mem_tmp.2.0
}
+
diff --git a/test/CodeGen/PowerPC/2005-10-08-ArithmeticRotate.ll b/test/CodeGen/PowerPC/2005-10-08-ArithmeticRotate.ll
index edbdc4a09d..54f24c6126 100644
--- a/test/CodeGen/PowerPC/2005-10-08-ArithmeticRotate.ll
+++ b/test/CodeGen/PowerPC/2005-10-08-ArithmeticRotate.ll
@@ -1,9 +1,11 @@
; This was erroneously being turned into an rlwinm instruction.
; The sign bit does matter in this case.
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep srawi
-int %test(int %X) {
- %Y = and int %X, -2
- %Z = shr int %Y, ubyte 11
- ret int %Z
+; RUN: llvm-as < %s | llc -march=ppc32 | grep srawi
+
+define i32 @test(i32 %X) {
+ %Y = and i32 %X, -2 ; <i32> [#uses=1]
+ %Z = ashr i32 %Y, 11 ; <i32> [#uses=1]
+ ret i32 %Z
}
+
diff --git a/test/CodeGen/PowerPC/2005-11-30-vastart-crash.ll b/test/CodeGen/PowerPC/2005-11-30-vastart-crash.ll
index 4264e9e82f..d56cffcf4a 100644
--- a/