For PR950:
authorReid Spencer <rspencer@reidspencer.com>
Sun, 31 Dec 2006 06:02:00 +0000 (06:02 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sun, 31 Dec 2006 06:02:00 +0000 (06:02 +0000)
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

117 files changed:
test/Analysis/BasicAA/2004-07-28-MustAliasbug.llx
test/Analysis/BasicAA/2005-03-09-BrokenBasicAA.ll
test/Analysis/BasicAA/tailcall-modref.ll
test/Analysis/GlobalsModRef/indirect-global.ll
test/Analysis/LoadVN/casts.ll
test/Assembler/2002-07-08-HugePerformanceProblem.llx
test/Assembler/2003-04-15-ConstantInitAssertion.llx
test/Assembler/2003-05-21-MalformedShiftCrash.llx
test/Assembler/2003-05-21-MalformedStructCrash.llx
test/Assembler/2003-11-12-ConstantExprCast.llx
test/Assembler/2003-12-30-TypeMapInvalidMemory.llx
test/Assembler/2004-10-22-BCWriterUndefBug.llx
test/C++Frontend/2006-09-27-Debug-Protection.cpp
test/CFrontend/2005-12-04-DeclarationLineNumbers.c
test/CFrontend/2006-01-16-BitCountIntrinsicsUnsigned.c
test/CFrontend/2006-03-03-MissingInitializer.c
test/CodeGen/ARM/vargs2.ll
test/CodeGen/Alpha/zapnot.ll
test/CodeGen/Generic/2005-10-21-longlonggtu.ll
test/CodeGen/Generic/2006-06-28-SimplifySetCCCrash.ll
test/CodeGen/Generic/SwitchLowering.ll
test/CodeGen/PowerPC/2006-01-20-ShiftPartsCrash.ll
test/CodeGen/PowerPC/and-elim.ll
test/CodeGen/PowerPC/branch-opt.ll
test/CodeGen/PowerPC/rotl.ll
test/CodeGen/PowerPC/small-arguments.ll
test/CodeGen/PowerPC/vec_spat.ll
test/CodeGen/X86/2006-05-02-InstrSched1.ll
test/CodeGen/X86/2006-08-07-CycleInDAG.ll
test/CodeGen/X86/loop-hoist.ll
test/CodeGen/X86/loop-strength-reduce.ll
test/CodeGen/X86/trunc-to-bool.ll
test/CodeGen/X86/vec_ins_extract.ll
test/ExecutionEngine/2003-01-04-PhiTest.ll
test/ExecutionEngine/2003-05-11-PHIRegAllocBug.ll
test/ExecutionEngine/2003-06-05-PHIBug.ll
test/ExecutionEngine/2003-08-15-AllocaAssertion.ll
test/ExecutionEngine/2003-08-23-RegisterAllocatePhysReg.ll
test/ExecutionEngine/hello.ll
test/ExecutionEngine/hello2.ll
test/ExecutionEngine/simplesttest.ll
test/ExecutionEngine/simpletest.ll
test/ExecutionEngine/test-loadstore.ll
test/ExecutionEngine/test-logical.ll
test/ExecutionEngine/test-malloc.ll
test/ExecutionEngine/test-ret.ll
test/ExecutionEngine/test-shift.ll
test/Linker/2002-07-17-GlobalFail.ll
test/Linker/2002-07-17-LinkTest2.ll
test/Linker/2002-08-20-ConstantExpr.ll
test/Linker/2003-04-26-NullPtrLinkProblem.ll
test/Linker/2003-05-15-TypeProblem.ll
test/Linker/2003-06-02-TypeResolveProblem.ll
test/Linker/2003-06-02-TypeResolveProblem2.ll
test/Linker/2003-08-20-OpaqueTypeResolve.ll
test/Linker/2003-08-23-GlobalVarLinking.ll
test/Linker/2003-08-23-RecursiveOpaqueTypeResolve.ll
test/Linker/2003-10-21-ConflictingTypesTolerance.ll
test/Linker/2003-10-27-LinkOncePromote.ll
test/Linker/2004-02-17-WeakStrongLinkage.ll
test/Linker/2005-02-12-ConstantGlobals-2.ll
test/Linker/2005-02-12-ConstantGlobals.ll
test/Linker/2005-12-06-AppendingZeroLengthArrays.ll
test/Linker/2006-01-19-ConstantPacked.ll
test/Linker/2006-06-15-GlobalVarAlignment.ll
test/Linker/AppendingLinkage2.ll
test/Linker/ConstantGlobals1.ll
test/Linker/ConstantGlobals2.ll
test/Linker/ConstantGlobals3.ll
test/Linker/LinkOnce.ll
test/Linker/weakextern.ll
test/Transforms/ArgumentPromotion/control-flow2.ll
test/Transforms/ConstProp/2006-11-30-vector-cast.ll
test/Transforms/ConstProp/2006-12-01-bool-casts.ll
test/Transforms/ConstProp/bitcast.ll
test/Transforms/ConstProp/float-to-ptr-cast.ll
test/Transforms/DeadStoreElimination/2004-12-28-PartialStore.ll
test/Transforms/DeadStoreElimination/2006-06-27-AST-Remove.ll
test/Transforms/IndVarsSimplify/2005-02-26-ExitValueCompute.ll
test/Transforms/IndVarsSimplify/2006-03-31-NegativeStride.ll
test/Transforms/IndVarsSimplify/variable-stride-ivs.ll
test/Transforms/Inline/casts.ll
test/Transforms/InstCombine/2006-05-06-Infloop.ll
test/Transforms/InstCombine/2006-06-28-infloop.ll
test/Transforms/InstCombine/2006-09-15-CastToBool.ll
test/Transforms/InstCombine/2006-10-19-SignedToUnsignedCastAndConst-2.ll
test/Transforms/InstCombine/2006-10-19-SignedToUnsignedCastAndConst.ll
test/Transforms/InstCombine/deadcode.ll
test/Transforms/InstCombine/fpcast.ll
test/Transforms/InstCombine/shift-sra.ll
test/Transforms/InstCombine/sub.ll
test/Transforms/InstCombine/zeroext-and-reduce.ll
test/Transforms/LCSSA/basictest.ll
test/Transforms/LICM/basictest.ll
test/Transforms/LICM/no-preheader-test.ll
test/Transforms/LoopSimplify/2006-08-11-LoopSimplifyLongTime.ll.bc
test/Transforms/LoopStrengthReduce/nested-reduce.ll
test/Transforms/LoopStrengthReduce/share_code_in_preheader.ll
test/Transforms/LoopStrengthReduce/use_postinc_value_outside_loop.ll
test/Transforms/LoopStrengthReduce/var_stride_used_by_compare.ll
test/Transforms/LoopUnswitch/2006-02-14-LoopSimplifyCrash.ll
test/Transforms/PredicateSimplifier/2006-09-20-SetCC.ll
test/Transforms/Reassociate/2005-09-01-ArrayOutOfBounds.ll
test/Transforms/Reassociate/shifttest.ll
test/Transforms/SCCP/2004-12-10-UndefBranchBug.ll
test/Transforms/SCCP/2006-12-04-PackedType.ll
test/Transforms/SCCP/ipsccp-basic.ll
test/Transforms/SCCP/ipsccp-conditional.ll
test/Transforms/SCCP/logical-nuke.ll
test/Transforms/ScalarRepl/2006-11-07-InvalidArrayPromote.ll
test/Transforms/ScalarRepl/union-fp-int.ll
test/Transforms/ScalarRepl/union-pointer.ll
test/Transforms/SimplifyCFG/2006-10-29-InvokeCrash.ll
test/Transforms/SimplifyCFG/2006-12-08-Ptr-ICmp-Branch.ll
test/Transforms/SimplifyLibCalls/ExitInMain.ll
test/Transforms/TailCallElim/dont-tce-tail-marked-call.ll
test/Transforms/TailCallElim/move_alloca_for_tail_call.ll

index 82212af0c6c22b648498a775cc319ee46c7db726..f888fc033ad3fa50121164af63e76d998d861af2 100644 (file)
@@ -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
index e8289109ddec6c7ddc12f785185de20466768c28..f82816e9fa6fd0250837bc6461e4518688d8f08a 100644 (file)
@@ -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*)
 
index 7fbddd769f512fa19b7234c0e48d54f4b7aa8c53..a92f85d122a1c7ceb2b84ca98846b0b79e58bfaa 100644 (file)
@@ -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()
 
index d0f79c12ea8f7cedee4169551d120c2a6f6d442c..bb75732bebb0826c61e7ec3330fb4de4ec670f1f 100644 (file)
@@ -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
index 5dd3bc60ab387761d5f8465d2ee9fc6efe043f2b..9b8f6a599999f3fcef55529af0e288aa371d9bb6 100644 (file)
@@ -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)
 
index 9c97b5dc39e3b6403b2e94e6f1c731da11483e3d..02a05f8edd3e1a89448db60e358a2f45475fd0f3 100644 (file)
@@ -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; llvm-upgrade < %s | llvm-as
 
        %ALL_INTERSECTIONS_METHOD = type int (%OBJECT*, %RAY*, %ISTACK*)*
        %BBOX = type { %BBOX_VECT, %BBOX_VECT }
index 0665e412b968306fa72369c3dd9f83558cb5cb17..33f6448c7e708ca369446c64bc0a1dcc313b3314 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: (llvm-as < %s 2>&1) | grep Expected
+; RUN: llvm-upgrade < %s | llvm-as 2>&1 >/dev/null | grep Expected
 ; Test the case of a misformed constant initializer
 ; This should cause an assembler error, not an assertion failure!
 %X = constant {int} { float 1.0 }
index 7a4782e9c31b9724ed127f467dee5611c9f33e2f..24f4c98cc18680c194695a13a0caebb6accf6a73 100644 (file)
@@ -1,4 +1,4 @@
 ; Found by inspection of the code
-; RUN: llvm-upgrade < %s | llvm-as -o /dev/null -f 2>&1 | grep "Shift constant expression"
+; RUN: llvm-upgrade < %s | llvm-as 2>&1 > /dev/null | grep "Shift constant expression"
 
 global int shr (float 1.0, ubyte 2)
index c606aa03a24394a98de3d9ee9826f55d2a1b6c1e..98c84282dc721c3c82b1752c026fc6a2f7bdbf76 100644 (file)
@@ -1,4 +1,4 @@
 ; Found by inspection of the code
-; RUN: llvm-as < %s 2>&1 | grep "Illegal"
+; RUN: llvm-upgrade < %s | llvm-as 2>&1 > /dev/null | grep "Illegal"
 
 global {} { int 7, float 1.0, int 7, int 8 }
index d243df45bae44cdccfc6ee5202bfa650352f0d04..ce48c20f536a2987b2599e6eaf1c37f7138a9ec9 100644 (file)
@@ -1,9 +1,9 @@
-; RUN: llvm-upgrade < %s | llvm-as | llvm-dis | grep ' bitcast ('
+; RUN: llvm-upgrade < %s | llvm-as | llvm-dis | not grep ' bitcast ('
 
 %.Base64_1 = external constant [4 x sbyte] 
 
-ubyte %test(sbyte %X) {         ; No predecessors!
-        %X = cast sbyte %X to ubyte             ; <ubyte> [#uses=1]
+ubyte %test(sbyte %Y) {         ; No predecessors!
+        %X = cast sbyte %Y to ubyte             ; <ubyte> [#uses=1]
         %tmp.13 = add ubyte %X, cast (sbyte sub (sbyte 0, sbyte cast ([4 x sbyte]* %.Base64_1 to sbyte)) to ubyte)              ; <ubyte> [#uses=1]
         ret ubyte %tmp.13
 }
index a3d4590d1a1bbf0cc22961e344dc09628326c873..5438825a711efee8ec8767da5b9dafde573ffe22 100644 (file)
@@ -1,4 +1,5 @@
-; RUN: llvm-as < %s 2>&1 | grep 'Reference to an undefined type'
+; RUN: llvm-upgrade < %s | llvm-as -o /dev/null -f 2>&1 | \
+; RUN:   grep 'Reference to an undefined type'
 
 
 %d_reduction_0_dparser_gram = global { int (sbyte*, sbyte**, int, int, { %struct.Grammar*, void (\4, %struct.d_loc_t*, sbyte**)*, %struct.D_Scope*, void (\4)*, { int, %struct.d_loc_t, sbyte*, sbyte*, %struct.D_Scope*, void (\8, %struct.d_loc_t*, sbyte**)*, %struct.Grammar*, %struct.ParseNode_User }* (\4, int, { int, %struct.d_loc_t, sbyte*, sbyte*, %struct.D_Scope*, void (\9, %struct.d_loc_t*, sbyte**)*, %struct.Grammar*, %struct.ParseNode_User }**)*, void ({ int, %struct.d_loc_t, sbyte*, sbyte*, %struct.D_Scope*, void (\8, %struct.d_loc_t*, sbyte**)*, %struct.Grammar*, %struct.ParseNode_User }*)*, %struct.d_loc_t, int, int, int, int, int, int, int, int, int, int, int, int }*)*, int (sbyte*, sbyte**, int, int, { %struct.Grammar*, void (\4, %struct.d_loc_t*, sbyte**)*, %struct.D_Scope*, void (\4)*, { int, %struct.d_loc_t, sbyte*, sbyte*, %struct.D_Scope*, void (\8, %struct.d_loc_t*, sbyte**)*, %struct.Grammar*, %struct.ParseNode_User }* (\4, int, { int, %struct.d_loc_t, sbyte*, sbyte*, %struct.D_Scope*, void (\9, %struct.d_loc_t*, sbyte**)*, %struct.Grammar*, %struct.ParseNode_User }**)*, void ({ int, %struct.d_loc_t, sbyte*, sbyte*, %struct.D_Scope*, void (\8, %struct.d_loc_t*, sbyte**)*, %struct.Grammar*, %struct.ParseNode_User }*)*, %struct.d_loc_t, int, int, int, int, int, int, int, int, int, int, int, int }*)** } { int (sbyte*, sbyte**, int, int, { %struct.Grammar*, void (\4, %struct.d_loc_t*, sbyte**)*, %struct.D_Scope*, void (\4)*, { int, %struct.d_loc_t, sbyte*, sbyte*, %struct.D_Scope*, void (\8, %struct.d_loc_t*, sbyte**)*, %struct.Grammar*, %struct.ParseNode_User }* (\4, int, { int, %struct.d_loc_t, sbyte*, sbyte*, %struct.D_Scope*, void (\9, %struct.d_loc_t*, sbyte**)*, %struct.Grammar*, %struct.ParseNode_User }**)*, void ({ int, %struct.d_loc_t, sbyte*, sbyte*, %struct.D_Scope*, void (\8, %struct.d_loc_t*, sbyte**)*, %struct.Grammar*, %struct.ParseNode_User }*)*, %struct.d_loc_t, int, int, int, int, int, int, int, int, int, int, int, int }*)* null, int (sbyte*, sbyte**, int, int, { %struct.Grammar*, void (\4, %struct.d_loc_t*, sbyte**)*, %struct.D_Scope*, void (\4)*, { int, %struct.d_loc_t, sbyte*, sbyte*, %struct.D_Scope*, void (\8, %struct.d_loc_t*, sbyte**)*, %struct.Grammar*, %struct.ParseNode_User }* (\4, int, { int, %struct.d_loc_t, sbyte*, sbyte*, %struct.D_Scope*, void (\9, %struct.d_loc_t*, sbyte**)*, %struct.Grammar*, %struct.ParseNode_User }**)*, void ({ int, %struct.d_loc_t, sbyte*, sbyte*, %struct.D_Scope*, void (\8, %struct.d_loc_t*, sbyte**)*, %struct.Grammar*, %struct.ParseNode_User }*)*, %struct.d_loc_t, int, int, int, int, int, int, int, int, int, int, int, int }*)** null }
index e1bcfe0bcbbd2bc6c89c4fd15fbaf2c52cd871f6..7da48531d880ee96833b27577a15a858a15081f4 100644 (file)
@@ -1,5 +1,5 @@
 ;; The bytecode writer was trying to treat undef values as ConstantArray's when
 ;; they looked like strings.
-;; RUN: llvm-as < %s -o /dev/null -f
+;; RUN: llvm-upgrade < %s | llvm-as -o /dev/null -f
 %G = internal global [8 x sbyte] undef
 
index a15e86d2bd1914096812dad580c0a820e0e4e5ef..87bc0d595adfd3e51412a94645f016058e758e22 100644 (file)
@@ -1,6 +1,6 @@
 // XFAIL: llvmgcc3
-// RUN: %llvmgxx -O0 -emit-llvm -S -g -o - %s | grep 'uint 1,' &&
-// RUN: %llvmgxx -O0 -emit-llvm -S -g -o - %s | grep 'uint 2,'
+// RUN: %llvmgxx -O0 -emit-llvm -S -g -o - %s | grep 'i32 1,' &&
+// RUN: %llvmgxx -O0 -emit-llvm -S -g -o - %s | grep 'i32 2,'
 
 class A {
 public:
index 4e2bcc8b27da53604200e823e14247dd2e016726..ab176c7ee133cf7e18e5f39279ac5825b1f0cd38 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %llvmgcc %s -S -g -o - | grep 'llvm.dbg.stoppoint.*uint 14'
+// RUN: %llvmgcc %s -S -g -o - | grep 'llvm.dbg.stoppoint.*i32 14'
 // PR664: ensure that line #'s are emitted for declarations
 
 
index 87909764ab9423cadacf699bfa2c025240bb40a0..645f40c04b137cba00c89ca1d33d4b3750ab95f3 100644 (file)
@@ -1,5 +1,5 @@
-// RUN: %llvmgcc -S %s -o - | grep 'llvm.ctlz.i32(uint' &&
-// RUN: %llvmgcc -S %s -o - | not grep 'llvm.ctlz.i32(int'
+// RUN: %llvmgcc -S %s -o - | grep 'llvm.ctlz.i32(i32'
+// RUNMEIFWEHADSIGNEDTYPES: %llvmgcc -S %s -o - | not grep 'llvm.ctlz.i32(i32'
 
 unsigned t2(unsigned X) {
   return __builtin_clz(X);
index f0e6bd786259e69da111bb5d502f5260e771d67e..5a2acb588c03381f9a9418f4a6fecae2627913d0 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %llvmgcc %s -S -o - | gccas | llvm-dis | grep nate | grep 'global int 0'
+// RUN: %llvmgcc %s -S -o - | gccas | llvm-dis | grep nate | grep 'global i32 0'
 
 struct X { int *XX; int Y;};
 
index 1404a412eea2e2226cad8f606fece100aa2e1b64..9a6dbd27dcb47cfe438b84c8580c21ff9cf8ed26 100644 (file)
@@ -3,14 +3,14 @@
 
 implementation   ; Functions:
 
-void %f(int %a, ...) {
+void %f(int %a_arg, ...) {
 entry:
-       %a = cast int %a to uint                ; <uint> [#uses=1]
+       %a = cast int %a_arg to uint            ; <uint> [#uses=1]
        %l1 = alloca sbyte*, align 4            ; <sbyte**> [#uses=5]
        %l2 = alloca sbyte*, align 4            ; <sbyte**> [#uses=4]
        %memtmp = alloca sbyte*         ; <sbyte**> [#uses=2]
        call void %llvm.va_start( sbyte** %l1 )
-       %tmp22 = seteq int %a, 0                ; <bool> [#uses=1]
+       %tmp22 = seteq int %a_arg, 0            ; <bool> [#uses=1]
        %tmp23 = volatile load sbyte** %l1              ; <sbyte*> [#uses=2]
        br bool %tmp22, label %bb8, label %bb
 
index 057d16b1b95eff8597c03f1a4ada8c50578111d0..aaeaa115d44bcfaa645086ffaed3a400dbe41352 100644 (file)
@@ -1,11 +1,10 @@
 ; Make sure this testcase codegens to the bic instruction
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha | grep 'zapnot'
+; RUN: llvm-as < %s | llc -march=alpha | grep 'zapnot'
 
 implementation   ; Functions:
 
-ushort %foo(long %y) {
+define i16 @zext %foo(i64 %y) {
 entry:
-        %tmp.1 = cast long %y to ushort         ; <ushort> [#uses=1]
-        ret ushort %tmp.1
+        %tmp.1 = trunc i64 %y to i16         ; <ushort> [#uses=1]
+        ret i16 %tmp.1
 }
-
index 602321398af29beb902216845925828ec1d2a6fa..d445e5920fa8a032a534cf9f4280ae6bae03258e 100644 (file)
@@ -1,6 +1,6 @@
 ; RUN: llvm-upgrade < %s | llvm-as | llc
-float %t(long %u) {
-       %u = cast long %u to ulong              ; <ulong> [#uses=1]
+float %t(long %u_arg) {
+       %u = cast long %u_arg to ulong          ; <ulong> [#uses=1]
        %tmp5 = add ulong %u, 9007199254740991          ; <ulong> [#uses=1]
        %tmp = setgt ulong %tmp5, 18014398509481982             ; <bool> [#uses=1]
        br bool %tmp, label %T, label %F
index f5d0fb35c4787fddcade9156e60669a679a7bf7b..1fe13f8f9b852571e4292f3dab0727ca5f065949 100644 (file)
@@ -239,19 +239,19 @@ cond_next1834:            ; preds = %bb1808
        ret void
 
 bb1876:                ; preds = %bb1808
-       %tmp1877 = load int* %which_alternative         ; <int> [#uses=4]
-       %tmp1877 = cast int %tmp1877 to uint            ; <uint> [#uses=1]
+       %tmp1877signed = load int* %which_alternative   ; <int> [#uses=4]
+       %tmp1877 = cast int %tmp1877signed to uint      ; <uint> [#uses=1]
        %bothcond699 = setlt uint %tmp1877, 2           ; <bool> [#uses=1]
-       %tmp1888 = seteq int %tmp1877, 2                ; <bool> [#uses=1]
+       %tmp1888 = seteq int %tmp1877signed, 2          ; <bool> [#uses=1]
        %bothcond700 = or bool %bothcond699, %tmp1888           ; <bool> [#uses=1]
        %bothcond700.not = xor bool %bothcond700, true          ; <bool> [#uses=1]
-       %tmp1894 = seteq int %tmp1877, 3                ; <bool> [#uses=1]
+       %tmp1894 = seteq int %tmp1877signed, 3          ; <bool> [#uses=1]
        %bothcond701 = or bool %tmp1894, %bothcond700.not               ; <bool> [#uses=1]
        %bothcond702 = or bool %bothcond701, false              ; <bool> [#uses=1]
        br bool %bothcond702, label %UnifiedReturnBlock, label %cond_next1902
 
 cond_next1902:         ; preds = %bb1876
-       switch int %tmp1877, label %cond_next1937 [
+       switch int %tmp1877signed, label %cond_next1937 [
                 int 0, label %bb1918
                 int 1, label %bb1918
                 int 2, label %bb1918
index 37bfffaa02652a8cf6027d33f238891da5028d40..4eef03079f296443d9fedbc05d58c9f07c612b97 100644 (file)
@@ -19,7 +19,6 @@ bb:           ; preds = %bb, %entry
        ]
 
 bb7:           ; preds = %bb, %bb
-       %tmp = cast sbyte %tmp to ubyte         ; <ubyte> [#uses=1]
        tail call void %foo( ubyte %tmp )
        ret sbyte* %tmp2
 }
index 8edb96284ec5382766310c78a5cd76d5d88d5de5..770045932839c96f484ad7b336d5bc256f857c5b 100644 (file)
@@ -1,16 +1,16 @@
 ; RUN: llvm-upgrade < %s | llvm-as | llc
 
 void %iterative_hash_host_wide_int() {
-       %zero = alloca int              ; <int*> [#uses=2]
-       %b = alloca uint                ; <uint*> [#uses=1]
+       %zero = alloca int                      ; <int*> [#uses=2]
+       %b = alloca uint                        ; <uint*> [#uses=1]
        store int 0, int* %zero
-       %tmp = load int* %zero          ; <int> [#uses=1]
+       %tmp = load int* %zero                  ; <int> [#uses=1]
        %tmp5 = cast int %tmp to uint           ; <uint> [#uses=1]
-       %tmp6 = add uint %tmp5, 32              ; <uint> [#uses=1]
-       %tmp6 = cast uint %tmp6 to int          ; <int> [#uses=1]
-       %tmp7 = load long* null         ; <long> [#uses=1]
+       %tmp6.u = add uint %tmp5, 32            ; <uint> [#uses=1]
+       %tmp6 = cast uint %tmp6.u to int        ; <int> [#uses=1]
+       %tmp7 = load long* null                 ; <long> [#uses=1]
        %tmp6 = cast int %tmp6 to ubyte         ; <ubyte> [#uses=1]
-       %tmp8 = shr long %tmp7, ubyte %tmp6             ; <long> [#uses=1]
+       %tmp8 = shr long %tmp7, ubyte %tmp6     ; <long> [#uses=1]
        %tmp8 = cast long %tmp8 to uint         ; <uint> [#uses=1]
        store uint %tmp8, uint* %b
        unreachable
index ae1f57d07d29abc77a378c43231b40a1fb52cd34..c866d6e097983ee95a23ab7672a16b153988ccfc 100644 (file)
@@ -10,7 +10,8 @@ void %test(ubyte* %P) {
        ret void
 }
 
-ushort %test2(ushort %crc) { ; No and's should be needed for the ushorts here.
+ushort @zext %test2(ushort @zext %crc) { 
+        ; No and's should be needed for the ushorts here.
         %tmp.1 = shr ushort %crc, ubyte 1
         %tmp.7 = xor ushort %tmp.1, 40961
         ret ushort %tmp.7
index 7f40a2d86680faa4044cb2504606b678d7a37777..1f94169cb91ed4acef1be2618df5fd473d05994e 100644 (file)
@@ -9,10 +9,10 @@ implementation   ; Functions:
 
 void %foo(int %W, int %X, int %Y, int %Z) {
 entry:
-       %X = cast int %X to uint                ; <uint> [#uses=1]
-       %Y = cast int %Y to uint                ; <uint> [#uses=1]
-       %Z = cast int %Z to uint                ; <uint> [#uses=1]
-       %W = cast int %W to uint                ; <uint> [#uses=1]
+       %X.u = cast int %X to uint              ; <uint> [#uses=1]
+       %Y.u = cast int %Y to uint              ; <uint> [#uses=1]
+       %Z.u = cast int %Z to uint              ; <uint> [#uses=1]
+       %W.u = cast int %W to uint              ; <uint> [#uses=1]
        %tmp1 = and int %W, 1           ; <int> [#uses=1]
        %tmp1 = seteq int %tmp1, 0              ; <bool> [#uses=1]
        br bool %tmp1, label %cond_false, label %bb5
@@ -21,7 +21,7 @@ bb:           ; preds = %bb5, %bb
        %indvar77 = phi uint [ %indvar.next78, %bb ], [ 0, %bb5 ]               ; <uint> [#uses=1]
        %tmp2 = tail call int (...)* %bar( )            ; <int> [#uses=0]
        %indvar.next78 = add uint %indvar77, 1          ; <uint> [#uses=2]
-       %exitcond79 = seteq uint %indvar.next78, %X             ; <bool> [#uses=1]
+       %exitcond79 = seteq uint %indvar.next78, %X.u           ; <bool> [#uses=1]
        br bool %exitcond79, label %cond_next48, label %bb
 
 bb5:           ; preds = %entry
@@ -37,7 +37,7 @@ bb12:         ; preds = %bb16, %bb12
        %indvar72 = phi uint [ %indvar.next73, %bb12 ], [ 0, %bb16 ]            ; <uint> [#uses=1]
        %tmp13 = tail call int (...)* %bar( )           ; <int> [#uses=0]
        %indvar.next73 = add uint %indvar72, 1          ; <uint> [#uses=2]
-       %exitcond74 = seteq uint %indvar.next73, %Y             ; <bool> [#uses=1]
+       %exitcond74 = seteq uint %indvar.next73, %Y.u           ; <bool> [#uses=1]
        br bool %exitcond74, label %cond_next48, label %bb12
 
 bb16:          ; preds = %cond_false
@@ -53,7 +53,7 @@ bb25:         ; preds = %bb29, %bb25
        %indvar67 = phi uint [ %indvar.next68, %bb25 ], [ 0, %bb29 ]            ; <uint> [#uses=1]
        %tmp26 = tail call int (...)* %bar( )           ; <int> [#uses=0]
        %indvar.next68 = add uint %indvar67, 1          ; <uint> [#uses=2]
-       %exitcond69 = seteq uint %indvar.next68, %Z             ; <bool> [#uses=1]
+       %exitcond69 = seteq uint %indvar.next68, %Z.u           ; <bool> [#uses=1]
        br bool %exitcond69, label %cond_next48, label %bb25
 
 bb29:          ; preds = %cond_false20
@@ -72,9 +72,8 @@ bb38:         ; preds = %bb42
 
 bb42:          ; preds = %cond_false33, %bb38
        %indvar = phi uint [ %indvar.next, %bb38 ], [ 0, %cond_false33 ]                ; <uint> [#uses=3]
-       %indvar = cast uint %indvar to int              ; <int> [#uses=1]
        %W_addr.0 = sub int %W, %indvar         ; <int> [#uses=1]
-       %exitcond = seteq uint %indvar, %W              ; <bool> [#uses=1]
+       %exitcond = seteq uint %indvar, %W.u            ; <bool> [#uses=1]
        br bool %exitcond, label %cond_next48, label %bb38
 
 cond_next48:           ; preds = %bb, %bb12, %bb25, %bb42, %cond_false33, %bb29, %bb16, %bb5
index fc3a6bc6ac4e387f46dbb1eb97e20d922ae95d9b..e2045feb92096cf0c91ef4f51d2d8c2346856e58 100644 (file)
@@ -7,12 +7,11 @@ implementation   ; Functions:
 int %rotlw(uint %x, int %sh) {
 entry:
        %tmp.3 = cast int %sh to ubyte          ; <ubyte> [#uses=1]
-       %x = cast uint %x to int                ; <int> [#uses=1]
+       %x.s = cast uint %x to int              ; <int> [#uses=1]
        %tmp.7 = sub int 32, %sh                ; <int> [#uses=1]
        %tmp.9 = cast int %tmp.7 to ubyte               ; <ubyte> [#uses=1]
        %tmp.10 = shr uint %x, ubyte %tmp.9             ; <uint> [#uses=1]
-       %tmp.4 = shl int %x, ubyte %tmp.3               ; <int> [#uses=1]
-       %tmp.10 = cast uint %tmp.10 to int              ; <int> [#uses=1]
+       %tmp.4 = shl int %x.s, ubyte %tmp.3             ; <int> [#uses=1]
        %tmp.12 = or int %tmp.10, %tmp.4                ; <int> [#uses=1]
        ret int %tmp.12
 }
@@ -23,19 +22,17 @@ entry:
        %tmp.4 = shr uint %x, ubyte %tmp.3              ; <uint> [#uses=1]
        %tmp.7 = sub int 32, %sh                ; <int> [#uses=1]
        %tmp.9 = cast int %tmp.7 to ubyte               ; <ubyte> [#uses=1]
-       %x = cast uint %x to int                ; <int> [#uses=1]
-       %tmp.4 = cast uint %tmp.4 to int                ; <int> [#uses=1]
-       %tmp.10 = shl int %x, ubyte %tmp.9              ; <int> [#uses=1]
+       %x.s = cast uint %x to int              ; <int> [#uses=1]
+       %tmp.10 = shl int %x.s, ubyte %tmp.9            ; <int> [#uses=1]
        %tmp.12 = or int %tmp.4, %tmp.10                ; <int> [#uses=1]
        ret int %tmp.12
 }
 
 int %rotlwi(uint %x) {
 entry:
-       %x = cast uint %x to int                ; <int> [#uses=1]
+       %x.s = cast uint %x to int              ; <int> [#uses=1]
        %tmp.7 = shr uint %x, ubyte 27          ; <uint> [#uses=1]
-       %tmp.3 = shl int %x, ubyte 5            ; <int> [#uses=1]
-       %tmp.7 = cast uint %tmp.7 to int                ; <int> [#uses=1]
+       %tmp.3 = shl int %x.s, ubyte 5          ; <int> [#uses=1]
        %tmp.9 = or int %tmp.3, %tmp.7          ; <int> [#uses=1]
        ret int %tmp.9
 }
@@ -43,9 +40,8 @@ entry:
 int %rotrwi(uint %x) {
 entry:
        %tmp.3 = shr uint %x, ubyte 5           ; <uint> [#uses=1]
-       %x = cast uint %x to int                ; <int> [#uses=1]
-       %tmp.3 = cast uint %tmp.3 to int                ; <int> [#uses=1]
-       %tmp.7 = shl int %x, ubyte 27           ; <int> [#uses=1]
+       %x.s = cast uint %x to int              ; <int> [#uses=1]
+       %tmp.7 = shl int %x.s, ubyte 27         ; <int> [#uses=1]
        %tmp.9 = or int %tmp.3, %tmp.7          ; <int> [#uses=1]
        ret int %tmp.9
 }
index 40217f65569fe5afbfeb1ab5293658aa1ed53bb6..aa0d5b6d1b76327a4f58d878dd7972aa69768242 100644 (file)
@@ -1,15 +1,14 @@
-
 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 &&
 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep 'extsh\|rlwinm'
 
-declare short %foo()
+declare short @sext %foo()
 
-int %test1(short %X) {
+int %test1(short @sext %X) {
        %Y = cast short %X to int  ;; dead
        ret int %Y
 }
 
-int %test2(ushort %X) {
+int %test2(ushort @zext %X) {
        %Y = cast ushort %X to int
        %Z = and int %Y, 65535      ;; dead
        ret int %Z
@@ -48,8 +47,7 @@ uint %test6(uint* %P) {
         ret uint %tmp.2
 }
 
-ushort %test7(float %a) {
+ushort @zext %test7(float %a) {
         %tmp.1 = cast float %a to ushort
         ret ushort %tmp.1
 }
-
index fb25402b17671acf5795de8aa93f460118e92421..6691995357b32336e1508d439d1f102f0718988e 100644 (file)
@@ -62,10 +62,10 @@ void %splat_h(short %tmp, <16 x ubyte>* %dst) {
 void %spltish(<16 x ubyte>* %A, <16 x ubyte>* %B) {
        ; Gets converted to 16 x ubyte 
         %tmp = load <16 x ubyte>* %B            
-        %tmp = cast <16 x ubyte> %tmp to <16 x sbyte>           
-        %tmp4 = sub <16 x sbyte> %tmp, cast (<8 x short> < short 15, short 15, short 15, short 15, short 15, short 15, short 15, short 15 > to <16 x sbyte>)            
-        %tmp4 = cast <16 x sbyte> %tmp4 to <16 x ubyte>         
-        store <16 x ubyte> %tmp4, <16 x ubyte>* %A
+        %tmp.s = cast <16 x ubyte> %tmp to <16 x sbyte>           
+        %tmp4 = sub <16 x sbyte> %tmp.s, cast (<8 x short> < short 15, short 15, short 15, short 15, short 15, short 15, short 15, short 15 > to <16 x sbyte>)            
+        %tmp4.u = cast <16 x sbyte> %tmp4 to <16 x ubyte>         
+        store <16 x ubyte> %tmp4.u, <16 x ubyte>* %A
         ret void
 }
 
index 631e416836de4b82da0b817804c088296bfd8687..47118970c396a7a1f9b27812ffaee30e1dc5406b 100644 (file)
@@ -11,10 +11,8 @@ int %compare(sbyte* %a, sbyte* %b) {
        %tmp4 = getelementptr ubyte* %tmp, uint %tmp3           ; <ubyte*> [#uses=1]
        %tmp7 = load uint* %tmp         ; <uint> [#uses=1]
        %tmp8 = getelementptr ubyte* %tmp, uint %tmp7           ; <ubyte*> [#uses=1]
-       %tmp8 = cast ubyte* %tmp8 to sbyte*             ; <sbyte*> [#uses=1]
-       %tmp4 = cast ubyte* %tmp4 to sbyte*             ; <sbyte*> [#uses=1]
-       %tmp = tail call int %memcmp( sbyte* %tmp8, sbyte* %tmp4, uint %tmp )           ; <int> [#uses=1]
-       ret int %tmp
+       %result = tail call int %memcmp( sbyte* %tmp8, sbyte* %tmp4, uint %tmp )                ; <int> [#uses=1]
+       ret int %result
 }
 
 declare int %memcmp(sbyte*, sbyte*, uint)
index 1de402858eaa182260cc0c136947ee6c15c1c9c8..6cc548e479b3024e79ef438fc6b0ea5b455e66a0 100644 (file)
@@ -10,8 +10,8 @@ ilog2.exit:           ; preds = %entry
        %tmp24.i = load int* null               ; <int> [#uses=1]
        %tmp13.i12.i = tail call double %ldexp( double 0.000000e+00, int 0 )            ; <double> [#uses=1]
        %tmp13.i13.i = cast double %tmp13.i12.i to float                ; <float> [#uses=1]
-       %tmp11.i = load int* null               ; <int> [#uses=1]
-       %tmp11.i = cast int %tmp11.i to uint            ; <uint> [#uses=1]
+       %tmp11.s = load int* null               ; <int> [#uses=1]
+       %tmp11.i = cast int %tmp11.s to uint            ; <uint> [#uses=1]
        %n.i = cast int %tmp24.i to uint                ; <uint> [#uses=1]
        %tmp13.i7 = mul uint %tmp11.i, %n.i             ; <uint> [#uses=1]
        %tmp.i8 = tail call sbyte* %calloc( uint %tmp13.i7, uint 4 )            ; <sbyte*> [#uses=0]
index 3ee0cbc469569fa2d814676aa33d388df69fa8c7..ccbf53fe49d5e96988f80a19069f461fb3991210 100644 (file)
@@ -5,9 +5,9 @@
 
 implementation   ; Functions:
 
-void %foo(int %N) {
+void %foo(int %N.in) {
 entry:
-        %N = cast int %N to uint                ; <uint> [#uses=1]
+        %N = cast int %N.in to uint                ; <uint> [#uses=1]
         br label %cond_true
 
 cond_true:              ; preds = %cond_true, %entry
index a54d907e59aa578ec414074e1ff7211a9a5bc3d7..b0f576622bac2e74e4bdc099a35f9e0752afb49d 100644 (file)
@@ -4,10 +4,10 @@
 
 %A = internal global [16 x [16 x int]] zeroinitializer, align 32
 
-void %test(int %row, int %N) {
+void %test(int %row, int %N.in) {
 entry:
-       %N = cast int %N to uint
-       %tmp5 = setgt int %N, 0
+       %N = cast int %N.in to uint
+       %tmp5 = setgt int %N.in, 0
        br bool %tmp5, label %cond_true, label %return
 
 cond_true:
index 3e00975b249fd42c59b0f4386c31458529354e06..f4fa9c6503af6c426669e7c581cee218df2d27de 100644 (file)
@@ -1,19 +1,21 @@
 ; An integer truncation to bool should be done with an and instruction to make
 ; sure only the LSBit survives. Test that this is the case both for a returned
 ; value and as the operand of a branch.
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | grep '\(and\)\|\(test.*\$1\)' | wc -l | grep 6
-bool %test1(int %X) {
-    %Y = trunc int %X to bool
+; RUN: llvm-as < %s | llc -march=x86 &&
+; RUN: llvm-as < %s | llc -march=x86 | grep '\(and\)\|\(test.*\$1\)' | \
+; RUN:   wc -l | grep 6
+
+define bool @zext %test1(i32 %X) {
+    %Y = trunc i32 %X to bool
     ret bool %Y
 }
 
-bool %test2(int %val, int %mask) {
+define bool %test2(i32 %val, i32 %mask) {
 entry:
-    %mask     = trunc int %mask to ubyte
-    %shifted  = ashr int %val, ubyte %mask
-    %anded    = and int %shifted, 1
-    %trunced  = trunc int %anded to bool
+    %mask = trunc i32 %mask to i8
+    %shifted = ashr i32 %val, i8 %mask
+    %anded = and i32 %shifted, 1
+    %trunced = trunc i32 %anded to bool
     br bool %trunced, label %ret_true, label %ret_false
 ret_true:
     ret bool true
@@ -21,39 +23,40 @@ ret_false:
     ret bool false
 }
 
-int %test3(sbyte* %ptr) {
-    %val = load sbyte* %ptr
-    %tmp = trunc sbyte %val to bool             ; %<bool> [#uses=1]
+define i32 %test3(i8* %ptr) {
+    %val = load i8* %ptr
+    %tmp = trunc i8 %val to bool
     br bool %tmp, label %cond_true, label %cond_false
 cond_true:
-    ret int 21
+    ret i32 21
 cond_false:
-    ret int 42
+    ret i32 42
 }
 
-int %test4(sbyte* %ptr) {
-    %tmp = ptrtoint sbyte* %ptr to bool
+define i32 %test4(i8* %ptr) {
+    %tmp = ptrtoint i8* %ptr to bool
     br bool %tmp, label %cond_true, label %cond_false
 cond_true:
-    ret int 21
+    ret i32 21
 cond_false:
-    ret int 42
+    ret i32 42
 }
 
-int %test5(float %f) {
+define i32 %test5(float %f) {
     %tmp = fptoui float %f to bool
     br bool %tmp, label %cond_true, label %cond_false
 cond_true:
-    ret int 21
+    ret i32 21
 cond_false:
-    ret int 42
+    ret i32 42
 }
 
-int %test6(double %d) {
+define i32 %test6(double %d) {
     %tmp = fptosi double %d to bool
     br bool %tmp, label %cond_true, label %cond_false
 cond_true:
-    ret int 21
+    ret i32 21
 cond_false:
-    ret int 42
+    ret i32 42
 }
+
index 9d9f17e7466c535d4b726c1853a3af95ce9e4619..b2435063a5eb328a65f5aa8758c4d9f13e60ce6e 100644 (file)
@@ -1,7 +1,7 @@
 ; RUN: llvm-upgrade < %s | llvm-as | opt -scalarrepl -instcombine | \
-; RUN:    llc -march=x86 -mcpu=yonah &&
+; RUN:   llc -march=x86 -mcpu=yonah &&
 ; RUN: llvm-upgrade < %s | llvm-as | opt -scalarrepl -instcombine | \
-; RUN:    llc -march=x86 -mcpu=yonah | not grep sub.*esp
+; RUN:   llc -march=x86 -mcpu=yonah | not grep sub.*esp
 
 ; This checks that various insert/extract idiom work without going to the 
 ; stack.
index c8c76ee6e127e16ea01302bef1435a532f5c9d41..45af8300a642e2908481bf1c171cc83b56f2791a 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as -f %s -o %t.bc
+; RUN: llvm-upgrade < %s | llvm-as -f -o %t.bc
 ; RUN: lli %t.bc > /dev/null
 
 int %main() {
index 6b1b0abcbab747515004d5b5b1c4223847df2da7..1d9ba77145b54b704ff3e2e38339a1435d70138b 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as -f %s -o %t.bc
+; RUN: llvm-upgrade < %s | llvm-as -f -o %t.bc
 ; RUN: lli %t.bc > /dev/null
 
 target endian = little
index 6e4e5e1bac1609cbc5879335e88275c5a745b50c..8c1aaba27df4e485e359e2afbcb630fcd761cd76 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as -f %s -o %t.bc
+; RUN: llvm-upgrade < %s | llvm-as -f -o %t.bc
 ; RUN: lli %t.bc > /dev/null
 
 ; Testcase distilled from 256.bzip2.
index 80b51532d8e150853d745c5cc0dedfabd6db512c..adc82206b280908431f70c42b6194f169c50cfb7 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as -f %s -o %t.bc
+; RUN: llvm-upgrade < %s | llvm-as -f -o %t.bc
 ; RUN: lli %t.bc > /dev/null
 
 ; This testcase failed to work because two variable sized allocas confused the
index 1a7e05e213e81b1dfe97382446a20faeb8b23d78..4d1d0452dba0c1986712b7107c8a4ffc96c76849 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as -f %s -o %t.bc
+; RUN: llvm-upgrade < %s | llvm-as -f -o %t.bc
 ; RUN: lli %t.bc > /dev/null
 
 ; This testcase exposes a bug in the local register allocator where it runs out
index 0f62dcbb48710f988f6070764f06a127bb58c273..ea2f9a4cce5d5b6686e8d91e963633f4a97cb2f3 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as -f %s -o %t.bc
+; RUN: llvm-upgrade < %s | llvm-as -f -o %t.bc
 ; RUN: lli %t.bc > /dev/null
 
 %.LC0 = internal global [12 x sbyte] c"Hello World\00"
index 92aa5f1918411f06326a29220cb6bdd4286dc9e4..b186c52e2b5157cf242770fcea4c3c39d8f6b672 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as -f %s -o %t.bc
+; RUN: llvm-upgrade < %s | llvm-as -f -o %t.bc
 ; RUN: lli %t.bc > /dev/null
 
 
index 207229f5996ba3fd7bb654e8482624be3356b7aa..1f578d29f27b3e35d4ba58a1dca5e6780c03149a 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as -f %s -o %t.bc
+; RUN: llvm-upgrade < %s | llvm-as -f -o %t.bc
 ; RUN: lli %t.bc > /dev/null
 
 
index 47a5c64038f83efc5d66a2e3c66adf50908dde62..68b70446272a8ece667dc786b74798d94b01be25 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as -f %s -o %t.bc
+; RUN: llvm-upgrade < %s | llvm-as -f -o %t.bc
 ; RUN: lli %t.bc > /dev/null
 
 implementation
index ac558b0185528af1d9db8dbcb2578ace8e6a4d22..8a4b7933d18b7ce6c9f8ca34883eda36eb24238d 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as -f %s -o %t.bc
+; RUN: llvm-upgrade < %s | llvm-as -f -o %t.bc
 ; RUN: lli %t.bc > /dev/null
 
 
index bad6a9ab85d0cd85727c8b6cea1c3525cbddd90f..86af2e224fcf538aaffe046af55f28b02a83d1b2 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as -f %s -o %t.bc
+; RUN: llvm-upgrade < %s | llvm-as -f -o %t.bc
 ; RUN: lli %t.bc > /dev/null
 
 
index 69c412abdcfcdab28356065347a26ce81c3e04cb..7a7f245bf5cf042a747b80922da5970b1db66ca1 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as -f %s -o %t.bc
+; RUN: llvm-upgrade < %s | llvm-as -f -o %t.bc
 ; RUN: lli %t.bc > /dev/null
 
 
index 6fbaf717d75d7ccf3dded98eda981b32a62b1fe0..e20691277fde7d214a59414d2fa7be8d212c93a5 100644 (file)
@@ -1,16 +1,16 @@
-; RUN: llvm-as -f %s -o %t.bc
+; RUN: llvm-upgrade < %s | llvm-as -f -o %t.bc
 ; RUN: lli %t.bc > /dev/null
 
 ; test return instructions
 
-void %test() { ret void }
-sbyte %test() { ret sbyte 1 }
-ubyte %test() { ret ubyte 1 }
-short %test() { ret short -1 }
-ushort %test() { ret ushort 65535 }
+void %test1() { ret void }
+sbyte %test2() { ret sbyte 1 }
+ubyte %test3() { ret ubyte 1 }
+short %test4() { ret short -1 }
+ushort %test5() { ret ushort 65535 }
 int  %main() { ret int 0 }
-uint %test() { ret uint 4 }
-long %test() { ret long 0 }
-ulong %test() { ret ulong 0 }
-float %test() { ret float 1.0 }
-double %test() { ret double 2.0 }
+uint %test6() { ret uint 4 }
+long %test7() { ret long 0 }
+ulong %test8() { ret ulong 0 }
+float %test9() { ret float 1.0 }
+double %test10() { ret double 2.0 }
index 22e467887977a69d7ef51053137fd3da11be249a..2549f346f2032ac645d67c89754c83630fca1036 100644 (file)
@@ -6,35 +6,35 @@ int %main() {
     %shamt = add ubyte 0, 1
 
     ; Left shifts...
-    %t1 = shl int 1, ubyte %shamt
-    %t2 = shl int 1, ubyte 4
+    %t1.s = shl int 1, ubyte %shamt
+    %t2.s = shl int 1, ubyte 4
 
     %t1 = shl uint 1, ubyte %shamt
     %t2 = shl uint 1, ubyte 5
 
     ;%t1 = shl long 1, ubyte %shamt
-    %t2 = shl long 1, ubyte 4
+    %t2.s = shl long 1, ubyte 4
 
     ;%t1 = shl ulong 1, ubyte %shamt
     %t2 = shl ulong 1, ubyte 5
 
     ; Right shifts...
-    %tr1 = shr int 1, ubyte %shamt
-    %tr2 = shr int 1, ubyte 4
+    %tr1.s = shr int 1, ubyte %shamt
+    %tr2.s = shr int 1, ubyte 4
 
     %tr1 = shr uint 1, ubyte %shamt
     %tr2 = shr uint 1, ubyte 5
 
     ;%tr1 = shr long 1, ubyte %shamt
-    %tr1 = shr long 1, ubyte 4
-    %tr2 = shr long 1, ubyte %shamt
-    %tr3 = shl long 1, ubyte 4
-    %tr4 = shl long 1, ubyte %shamt
+    %tr1.l = shr long 1, ubyte 4
+    %tr2.l = shr long 1, ubyte %shamt
+    %tr3.l = shl long 1, ubyte 4
+    %tr4.l = shl long 1, ubyte %shamt
 
     ;%t1 = shr ulong 1, ubyte %shamt
-    %tr1 = shr ulong 1, ubyte 5
-    %tr2 = shr ulong 1, ubyte %shamt
-    %tr3 = shl ulong 1, ubyte 5
-    %tr4 = shl ulong 1, ubyte %shamt
+    %tr1.u = shr ulong 1, ubyte 5
+    %tr2.u = shr ulong 1, ubyte %shamt
+    %tr3.u = shl ulong 1, ubyte 5
+    %tr4.u = shl ulong 1, ubyte %shamt
     ret int 0
 }
index 285b6abf1148f3904cccf66d149351d3f847e4d1..d950e4019f544668e5b7dd9401a84cbdb08b3d76 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s > %t.bc
+; RUN: llvm-upgrade < %s | llvm-as > %t.bc
 ; RUN: echo | llvm-as > %t.tmp.bc
 ; RUN: llvm-link %t.tmp.bc %t.bc
 
index 413a31ae570d2ee578b11ff856d0cd3696867003..67bf686448e87ecf858096e3a8f3dfef38982cb1 100644 (file)
@@ -1,7 +1,7 @@
 ; This fails linking when it is linked with an empty file as the first object file
 
 ; RUN: llvm-as > %t1.bc < /dev/null
-; RUN: llvm-as < %s > %t2.bc
+; RUN: llvm-upgrade < %s | llvm-as > %t2.bc
 ; RUN: llvm-link %t[12].bc
 
 %work = global int (int, int)* %zip
index 8b00cb902c56126551a9f3f924a512154b0c2aec..03b178e96d31109dd72263f3f4a353f9c8a397b2 100644 (file)
@@ -1,7 +1,7 @@
 ; This fails linking when it is linked with an empty file as the first object file
 
 ; RUN: llvm-as > %t.LinkTest.bc < /dev/null
-; RUN: llvm-as < %s > %t.bc
+; RUN: llvm-upgrade < %s | llvm-as > %t.bc
 ; RUN: llvm-link %t.LinkTest.bc %t.bc
 
 %work = global int 4
index a0760457d8aded64f1fefe7e9c2dcd9f2fb80c30..3caf7632cb7ee5f241605d6ccf886a5c943154a3 100644 (file)
@@ -1,7 +1,7 @@
 ; This one fails because the LLVM runtime is allowing two null pointers of
 ; the same type to be created!
 
-; RUN: echo "%T = type int" | llvm-as > %t.2.bc
+; RUN: echo "%T = type int" | llvm-upgrade | llvm-as > %t.2.bc
 ; RUN: llvm-upgrade < %s | llvm-as -f > %t.1.bc
 ; RUN: llvm-link %t.[12].bc
 
index 163cdfddcecfd23be0787e17e8d5392335027439..ee1caf78314c542d7b7e8ec8e17240b810771fed 100644 (file)
@@ -1,8 +1,8 @@
 ; This one fails because the LLVM runtime is allowing two null pointers of
 ; the same type to be created!
 
-; RUN: echo "%S = type { %T*} %T = type opaque" | llvm-as > %t.2.bc
-; RUN: llvm-as < %s > %t.1.bc
+; RUN: echo "%S = type { %T*} %T = type opaque" | llvm-upgrade | llvm-as > %t.2.bc
+; RUN: llvm-upgrade < %s | llvm-as > %t.1.bc
 ; RUN: llvm-link %t.[12].bc
 
 %S = type { %T* }
index ceb046ee003ae2e7dc58f4b2ceebbde26eb9f6a0..05d7adf13fec03ffc8233fd63ed33e44df63c3c8 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: echo "%T = type opaque" | llvm-as > %t.2.bc
-; RUN: llvm-as < %s > %t.1.bc
+; RUN: echo "%T = type opaque" | llvm-upgrade | llvm-as > %t.2.bc
+; RUN: llvm-upgrade < %s | llvm-as > %t.1.bc
 ; RUN: llvm-link %t.[12].bc
 
 %T = type opaque
index aa1bc174fb05cf68f5257404fd8341e5054cbb61..c0228c4af869c6c03841bc67ae7df8840a9eb6be 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: echo "%T = type int" | llvm-as > %t.1.bc
-; RUN: llvm-as < %s > %t.2.bc
+; RUN: echo "%T = type int" | llvm-upgrade | llvm-as > %t.1.bc
+; RUN: llvm-upgrade < %s | llvm-as > %t.2.bc
 ; RUN: llvm-link %t.[12].bc
 
 %T = type opaque
index 5b45cdfa53b4d75a98fde28e18229f00be0715fb..6b378d586be0158e8110e6ff9ca7378fbb783382 100644 (file)
@@ -1,6 +1,6 @@
 
-; RUN: llvm-as < %s > %t.out1.bc
-; RUN: echo "%S = type { int, int* }" | llvm-as > %t.out2.bc
+; RUN: llvm-upgrade < %s | llvm-as > %t.out1.bc
+; RUN: echo "%S = type { int, int* }" | llvm-upgrade | llvm-as > %t.out2.bc
 ; RUN: llvm-link %t.out[12].bc
 
 %T = type opaque
index 51ad19451a2f98a87ddf8a975a5d73a4090ce5c3..e249641be32fe9a801ba32765750e36e6c4e6968 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: llvm-as < %s > %t.out1.bc
-; RUN: echo "%S = external global { int, opaque* } declare void %F(opaque*)" | llvm-as > %t.out2.bc
+; RUN: llvm-upgrade < %s | llvm-as > %t.out1.bc
+; RUN: echo "%S = external global { int, opaque* } declare void %F(opaque*)" | llvm-upgrade | llvm-as > %t.out2.bc
 ; RUN: llvm-link %t.out[12].bc | llvm-dis | not grep opaque
 
 ; After linking this testcase, there should be no opaque types left.  The two
index e052d56bacd4a9e969b766d7931a8fb26427278a..1a95b874037ebab8c92af980381bf0149c60bd40 100644 (file)
@@ -1,8 +1,8 @@
 ; It's a bad idea to go recursively traipsing through types without a safety 
 ; net.
 
-; RUN: llvm-as < %s > %t.out1.bc
-; RUN: echo "%S = type { %S*, int* }" | llvm-as > %t.out2.bc
+; RUN: llvm-upgrade < %s | llvm-as > %t.out1.bc
+; RUN: echo "%S = type { %S*, int* }" | llvm-upgrade | llvm-as > %t.out2.bc
 ; RUN: llvm-link %t.out[12].bc
 
 %S = type { %S*, opaque* }
index afc8f4666dcb969c57f49f43f45b7e3794548060..db098d6f7c7116fab1c3099ce667fbadc5fa4f82 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: llvm-as < %s > %t.out1.bc
-; RUN: echo "%S = type [8 x int] external global %S " | llvm-as > %t.out2.bc
+; RUN: llvm-upgrade < %s | llvm-as > %t.out1.bc
+; RUN: echo "%S = type [8 x int] external global %S " | llvm-upgrade | llvm-as > %t.out2.bc
 ; RUN: llvm-link %t.out[12].bc | llvm-dis | grep %S | grep '{'
 
 %S = type { int }
index e726222f696e2c099147fb3262fbcf75410ef54b..617e5c6ebda1b0b3895881f61213eeaa205aece3 100644 (file)
@@ -1,8 +1,8 @@
 ; The linker should merge link-once globals into strong external globals,
 ; just like it does for weak symbols!
 
-; RUN: echo "%X = global int 7" | llvm-as > %t.2.bc
-; RUN: llvm-as < %s > %t.1.bc
+; RUN: echo "%X = global int 7" | llvm-upgrade | llvm-as > %t.2.bc
+; RUN: llvm-upgrade < %s | llvm-as > %t.1.bc
 ; RUN: llvm-link %t.[12].bc
 
 %X = linkonce global int 7
index 352c16b110cdf6459d87fef4ebcee65ae18b8e14..b2579d411f598668eb0cb8c9ec4aa5fd47bc8586 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: llvm-as < %s > %t.out2.bc
-; RUN: echo "%me = global int* null" | llvm-as > %t.out1.bc
+; RUN: llvm-upgrade < %s | llvm-as > %t.out2.bc
+; RUN: echo "%me = global int* null" | llvm-upgrade | llvm-as > %t.out1.bc
 ; RUN: llvm-link %t.out[12].bc -o /dev/null -f
 
 %me = weak global int * null
index 6de77479cf4cfa8a7a3a1a6e986ca35997092fdf..bf93ca871f13c47a0d7a0baf5c2746201785fdbc 100644 (file)
@@ -1,8 +1,8 @@
 ; Test that a prototype can be marked const, and the definition is allowed
 ; to be nonconst.
 
-; RUN: echo "%X = external constant int" | llvm-as > %t.2.bc
-; RUN: llvm-as < %s > %t.1.bc
-; RUN: llvm-link %t.[12].bc | llvm-dis | grep 'global int 7'
+; RUN: echo "%X = external constant int" | llvm-upgrade | llvm-as > %t.2.bc
+; RUN: llvm-upgrade < %s | llvm-as > %t.1.bc
+; RUN: llvm-link %t.[12].bc | llvm-dis | grep 'global i32 7'
 
 %X = global int 7
index f1e219ef962e87488c808572831116ed0f110a4c..5bb43a7821a2ae7ecc18c3ceb3941e65d66382df 100644 (file)
@@ -1,8 +1,8 @@
 ; Test that a prototype can be marked const, and the definition is allowed
 ; to be nonconst.
 
-; RUN: echo "%X = global int 7" | llvm-as > %t.2.bc
-; RUN: llvm-as < %s > %t.1.bc
-; RUN: llvm-link %t.[12].bc | llvm-dis | grep 'global int 7'
+; RUN: echo "%X = global int 7" | llvm-upgrade | llvm-as > %t.2.bc
+; RUN: llvm-upgrade < %s | llvm-as > %t.1.bc
+; RUN: llvm-link %t.[12].bc | llvm-dis | grep 'global i32 7'
 
 %X = external constant int
index 5caea0a5919d4564e1eb801e78533f0e12a4c9bd..c5b78cc3fe1deed70052530b6970c190e25c6862 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: echo "%G = appending global [0 x int] zeroinitializer" | llvm-as > %t.out2.bc
-; RUN: llvm-as < %s > %t.out1.bc
+; RUN: echo "%G = appending global [0 x int] zeroinitializer" | llvm-upgrade | llvm-as > %t.out2.bc
+; RUN: llvm-upgrade < %s | llvm-as > %t.out1.bc
 ; RUN: llvm-link %t.out[12].bc | llvm-dis | grep '%G ='
 
 ; When linked, the globals should be merged, and the result should still 
index 3f7bf460d264ee83ff2d3e631aab624edd8e0c78..df56105e9d68e704fa0af793be4d6bda47c04274 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as %s -f -o %s.bc ; llvm-link -f -o %s.linked %s.bc
+; RUN: llvm-upgrade < %s | llvm-as -f -o %s.bc ; llvm-link -f -o %s.linked %s.bc
 
 target endian = big
 target pointersize = 32
index 65fde7c616648af665be41b1e6f83d9d8a3c0edc..22e9755caea8ac46ed963145a03ae271aa2c0c3e 100644 (file)
@@ -1,7 +1,7 @@
 ; The linker should choose the largest alignment when linking.
 
-; RUN: echo "%X = global int 7, align 8" | llvm-as > %t.2.bc
-; RUN: llvm-as < %s > %t.1.bc
+; RUN: echo "%X = global int 7, align 8" | llvm-upgrade | llvm-as > %t.2.bc
+; RUN: llvm-upgrade < %s | llvm-as > %t.1.bc
 ; RUN: llvm-link %t.[12].bc | llvm-dis | grep 'align 8'
 
 %X = weak global int 7, align 4
index 8aabc8b3cf94acf2bca44362ada689b248407ef1..a906f698bce7ee929e8bdcdef2da7095b9978311 100644 (file)
@@ -1,7 +1,7 @@
 ; Test that appending linkage works correctly when arrays are the same size.
 
-; RUN: echo "%X = appending global [1x int] [int 8]" | llvm-as > %t.2.bc
-; RUN: llvm-as < %s > %t.1.bc
+; RUN: echo "%X = appending global [1x int] [int 8]" | llvm-upgrade | llvm-as > %t.2.bc
+; RUN: llvm-upgrade < %s | llvm-as > %t.1.bc
 ; RUN: llvm-link %t.[12].bc | llvm-dis | grep 7 | grep 8
 
 %X = appending global [1 x int] [int 7]
index ac2d5c045756a39d5a8d66167a3ae75cc1b76ce7..1a05f7a9eb4697031e94271fef2faf35939a7992 100644 (file)
@@ -1,7 +1,7 @@
 ; Test that appending linkage works correctly when arrays are the same size.
 
-; RUN: echo "%X = constant [1x int] [int 8]" | llvm-as > %t.2.bc
-; RUN: llvm-upgrade %s | llvm-as > %t.1.bc
+; RUN: echo "%X = constant [1x int] [int 8]" | llvm-upgrade | llvm-as > %t.2.bc
+; RUN: llvm-upgrade %s | llvm-as > %t.1.bc
 ; RUN: llvm-link %t.[12].bc | llvm-dis | grep constant
 
 %X = uninitialized global [1 x int]
index 3650c5f9bca82c05177e8f2d70683e2e31e8a6e1..ae97a0ba6262651d35580b5639f7ad0d1441c4ea 100644 (file)
@@ -1,7 +1,7 @@
 ; Test that appending linkage works correctly when arrays are the same size.
 
-; RUN: echo "%X = external global [1x int]" | llvm-as > %t.2.bc
-; RUN: llvm-upgrade %s | llvm-as > %t.1.bc
+; RUN: echo "%X = external global [1x int]" | llvm-upgrade | llvm-as > %t.2.bc
+; RUN: llvm-upgrade %s -o - | llvm-as > %t.1.bc
 ; RUN: llvm-link %t.[12].bc | llvm-dis | grep constant
 
 %X = constant [1 x int] [ int 12 ]
index 58727060c16430ecc2a2e39cc17fb7df0ced8893..9a84c3a350eaad2f003859e7d415c4fd9afef986 100644 (file)
@@ -1,6 +1,6 @@
 ; Test that appending linkage works correctly when arrays are the same size.
 
-; RUN: echo "%X = external constant [1x int]" | llvm-as > %t.2.bc
+; RUN: echo "%X = external constant [1x int]" | llvm-upgrade | llvm-as > %t.2.bc
 ; RUN: llvm-upgrade %s | llvm-as > %t.1.bc
 ; RUN: llvm-link %t.[12].bc | llvm-dis | grep constant
 
index 17e742e751ad77151bb97e761a2148cb375175d7..95f65ae12a4a9cc9a31dadd9d2674df34a31837e 100644 (file)
@@ -1,8 +1,8 @@
 ; This fails because the linker renames the non-opaque type not the opaque 
 ; one...
 
-; RUN: echo "%X = linkonce global int 8" | llvm-as > %t.2.bc
-; RUN: llvm-as < %s > %t.1.bc
+; RUN: echo "%X = linkonce global int 8" | llvm-upgrade | llvm-as > %t.2.bc
+; RUN: llvm-upgrade < %s | llvm-as > %t.1.bc
 ; RUN: llvm-link %t.[12].bc | llvm-dis
 
 %X = linkonce global int 7
index d1f78fbdb0566d2e65e4a5768df1b063cc48e419..3bda535d0ca5ca97f9ae048b215471bb8fb2d2eb 100644 (file)
@@ -1,9 +1,9 @@
-; RUN: llvm-as < %s > %t.bc
-; RUN: llvm-as < `dirname %s`/testlink1.ll > %t2.bc
+; RUN: llvm-upgrade < %s | llvm-as > %t.bc
+; RUN: llvm-upgrade < `dirname %s`/testlink1.ll | llvm-as > %t2.bc
 ; RUN: llvm-link %t.bc %t.bc %t2.bc -o %t1.bc -f
-; RUN: llvm-dis < %t1.bc |grep "kallsyms_names = extern_weak" &&
-; RUN: llvm-dis < %t1.bc |grep "MyVar = external global int" &&
-; RUN: llvm-dis < %t1.bc |grep "Inte = global int"
+; RUN: llvm-dis < %t1.bc | grep "kallsyms_names = extern_weak" &&
+; RUN: llvm-dis < %t1.bc | grep "MyVar = external global i32" &&
+; RUN: llvm-dis < %t1.bc | grep "Inte = global i32"
 
 %kallsyms_names = extern_weak global [0 x ubyte]
 %MyVar     = extern_weak global int
index ba777768ed9cec5d487294f4a7df9c3da994a2b4..d42c9c39daa6ec86aa69bd2a8ee47b4f29c78228 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -argpromotion | llvm-dis | grep 'load int\* %A'
+; RUN: llvm-upgrade < %s | llvm-as | opt -argpromotion | llvm-dis | grep 'load i32\* %A'
 
 implementation
 
index 5f52d6e1bc6d5b6a8ca571e7a43380b4e2f6cf14..4a9d8a586fc7b23a8d62cff33cc9aaa210d9ae69 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -constprop | llvm-dis | grep 'uint -1' &&
+; RUN: llvm-upgrade < %s | llvm-as | opt -constprop | llvm-dis | grep 'i32 -1' &&
 ; RUN: llvm-upgrade < %s | llvm-as | opt -constprop | llvm-dis | not grep zeroinitializer
 
 < 4 x uint> %test() {
index a2d6feb2609e6f2e7a60ba29c1514594e831b697..fbc3111146ae47136831f7fb067c1cec56f9d4fe 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -constprop | llvm-dis | grep 'ret int -1' &&
-; RUN: llvm-upgrade < %s | llvm-as | opt -constprop | llvm-dis | grep 'ret uint 1'
+; RUN: llvm-upgrade < %s | llvm-as | opt -constprop | llvm-dis | grep 'ret i32 -1' &&
+; RUN: llvm-upgrade < %s | llvm-as | opt -constprop | llvm-dis | grep 'ret i32 1'
 
 int %test1() {
   %A = sext bool true to int
index 9987ca79272a9364e8c6cf030275692c7cbfe68f..39cd53487f77c0ad2a7f9434b0d8ccb7e4b43589 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llvm-dis &&
-; RUN: llvm-as < %s | llvm-dis | grep 0x36A0000000000000
+; RUN: llvm-upgrade < %s | llvm-as | llvm-dis &&
+; RUN: llvm-upgrade < %s | llvm-as | llvm-dis | grep 0x36A0000000000000
 
 %A = global float bitcast (int 1 to float)
index dc6c391976bde6c8d8b02dd5b3344701af9eddc3..df641cd0c815cd1422304a5e36f6fbf7521c1f31 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -constprop | llvm-dis | grep -F 'ret int* null' | wc -l | grep 2
+; RUN: llvm-upgrade < %s | llvm-as | opt -constprop | llvm-dis | grep -F 'ret i32* null' | wc -l | grep 2
 int* %test1() {
   %X = cast float 0.0 to int*
   ret int* %X
index b78be884dc3734fe651b4231ad5899658c3f0b7f..100c795797cfe71b82744b9a807dd5dcc84a3e2f 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -dse | llvm-dis | grep 'store int 1234567'
+; RUN: llvm-upgrade < %s | llvm-as | opt -dse | llvm-dis | grep 'store i32 1234567'
 
 ; Do not delete stores that are only partially killed.
 
index 1d1be152bf3c26f317b0efb2d94acb5253db2e3a..52429341b5045fa9f6ace2171595bc85a5bb63bc 100644 (file)
@@ -755,22 +755,22 @@ cond_true226.critedge:            ; preds = %cond_false210
        %tmp.i = load %struct.TType** %DP_TTable                ; <%struct.TType*> [#uses=1]
        %tmp.i7.b = load bool* %TTSize.b                ; <bool> [#uses=1]
        %tmp1.i = select bool %tmp.i7.b, uint 60000000, uint 0          ; <uint> [#uses=1]
-       %tmp.i = getelementptr %struct.TType* %tmp.i, int 0, uint 0             ; <sbyte*> [#uses=1]
-       call void %llvm.memset.i32( sbyte* %tmp.i, ubyte 0, uint %tmp1.i, uint 4 )
+       %tmp.i.sb = getelementptr %struct.TType* %tmp.i, int 0, uint 0          ; <sbyte*> [#uses=1]
+       call void %llvm.memset.i32( sbyte* %tmp.i.sb, ubyte 0, uint %tmp1.i, uint 4 )
        %tmp2.i = load %struct.TType** %AS_TTable               ; <%struct.TType*> [#uses=1]
        %tmp3.i8.b = load bool* %TTSize.b               ; <bool> [#uses=1]
        %tmp4.i = select bool %tmp3.i8.b, uint 60000000, uint 0         ; <uint> [#uses=1]
        %tmp2.i = getelementptr %struct.TType* %tmp2.i, int 0, uint 0           ; <sbyte*> [#uses=1]
        call void %llvm.memset.i32( sbyte* %tmp2.i, ubyte 0, uint %tmp4.i, uint 4 )
-       %tmp.i = load %struct.QTType** %QS_TTable               ; <%struct.QTType*> [#uses=1]
+       %tmp.i.QTT = load %struct.QTType** %QS_TTable           ; <%struct.QTType*> [#uses=1]
        %tmp5.i9.b = load bool* %TTSize.b               ; <bool> [#uses=1]
        %tmp6.i10 = select bool %tmp5.i9.b, uint 48000000, uint 0               ; <uint> [#uses=1]
-       %tmp7.i = getelementptr %struct.QTType* %tmp.i, int 0, uint 0           ; <sbyte*> [#uses=1]
+       %tmp7.i = getelementptr %struct.QTType* %tmp.i.QTT, int 0, uint 0               ; <sbyte*> [#uses=1]
        call void %llvm.memset.i32( sbyte* %tmp7.i, ubyte 0, uint %tmp6.i10, uint 4 )
-       %tmp.i = load %struct.ECacheType** %ECache              ; <%struct.ECacheType*> [#uses=1]
+       %tmp.i.ECache = load %struct.ECacheType** %ECache               ; <%struct.ECacheType*> [#uses=1]
        %tmp.i14.b = load bool* %ECacheSize.b           ; <bool> [#uses=1]
        %tmp1.i16 = select bool %tmp.i14.b, uint 12000000, uint 0               ; <uint> [#uses=1]
-       %tmp.i17 = cast %struct.ECacheType* %tmp.i to sbyte*            ; <sbyte*> [#uses=1]
+       %tmp.i17 = cast %struct.ECacheType* %tmp.i.ECache to sbyte*             ; <sbyte*> [#uses=1]
        call void %llvm.memset.i32( sbyte* %tmp.i17, ubyte 0, uint %tmp1.i16, uint 4 )
        call void %llvm.memset.i32( sbyte* cast ([300 x int]* %rootlosers to sbyte*), ubyte 0, uint 1200, uint 4 )
        %tmp234.b = load bool* %is_pondering.b          ; <bool> [#uses=1]
@@ -800,12 +800,12 @@ bb260:            ; preds = %bb249
        %tmp1.b.i = load bool* %PBSize.b                ; <bool> [#uses=1]
        %tmp1.i1 = select bool %tmp1.b.i, uint 200000, uint 0           ; <uint> [#uses=1]
        %tmp.i2 = call sbyte* %calloc( uint %tmp1.i1, uint 44 )         ; <sbyte*> [#uses=1]
-       %tmp.i = cast sbyte* %tmp.i2 to ubyte*          ; <ubyte*> [#uses=1]
-       store ubyte* %tmp.i, ubyte** %membuff
+       %tmp.i.ub = cast sbyte* %tmp.i2 to ubyte*               ; <ubyte*> [#uses=1]
+       store ubyte* %tmp.i.ub, ubyte** %membuff
        %tmp2.i3 = call sbyte* %calloc( uint 1, uint 44 )               ; <sbyte*> [#uses=3]
        %tmp2.i = cast sbyte* %tmp2.i3 to %struct.node_t*               ; <%struct.node_t*> [#uses=6]
-       %tmp.i = getelementptr [512 x %struct.move_s]* null, int 0, int 0               ; <%struct.move_s*> [#uses=3]
-       call fastcc void %gen( %struct.move_s* %tmp.i )
+       %tmp.i.move_s = getelementptr [512 x %struct.move_s]* null, int 0, int 0                ; <%struct.move_s*> [#uses=3]
+       call fastcc void %gen( %struct.move_s* %tmp.i.move_s )
        %tmp3.i4 = load int* %numb_moves                ; <int> [#uses=4]
        %tmp3.i5 = cast int %tmp3.i4 to uint            ; <uint> [#uses=0]
        store bool false, bool* %alllosers.b
@@ -850,8 +850,8 @@ in_check.exit.i:            ; preds = %bb260
 cond_true43.i:         ; preds = %cond_false12.i.i, %cond_true4.i.i
        %tmp21.0.ph.i = phi int [ %tmp217.i, %cond_true4.i.i ], [ %tmp2120.i, %cond_false12.i.i ]               ; <int> [#uses=1]
        %i.0.0.i = cast uint 0 to int           ; <int> [#uses=2]
-       call fastcc void %make( %struct.move_s* %tmp.i, int %i.0.0.i )
-       %tmp27.i = call fastcc uint %check_legal( %struct.move_s* %tmp.i, int %i.0.0.i, int %tmp21.0.ph.i )             ; <uint> [#uses=1]
+       call fastcc void %make( %struct.move_s* %tmp.i.move_s, int %i.0.0.i )
+       %tmp27.i = call fastcc uint %check_legal( %struct.move_s* %tmp.i.move_s, int %i.0.0.i, int %tmp21.0.ph.i )              ; <uint> [#uses=1]
        %tmp.i6 = seteq uint %tmp27.i, 0                ; <bool> [#uses=0]
        ret void
 
index 7bda152b4f6d68be488f1af47c10d945fe8543de..8fcd8e44c85de42c1e85bdbbda4f1c61cf30cd14 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -indvars | llvm-dis | grep 'ret int 152'
+; RUN: llvm-upgrade < %s | llvm-as | opt -indvars | llvm-dis | grep 'ret i32 152'
 
 int %main() {
 entry:
index 30f0c95b9f1e4048b6faf7160094b0318c89fc0c..deb9abd382bdd99068b1f4a11aa125b666b8a837 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -indvars | llvm-dis | grep 'ret int 27'
+; RUN: llvm-upgrade < %s | llvm-as | opt -indvars | llvm-dis | grep 'ret i32 27'
 
 ; Make sure to compute the right exit value based on negative strides.
 ; PR726
index a8883ffa9f2ed5786c65a1db573bb0d1e0720342..d464cfa0640a78f3a4ee0a14dc226f37ce5576c4 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -indvars -instcombine | llvm-dis | grep 'store int 0'
+; RUN: llvm-upgrade < %s | llvm-as | opt -indvars -instcombine | llvm-dis | grep 'store i32 0'
 ; Test that -indvars can reduce variable stride IVs.  If it can reduce variable
 ; stride iv's, it will make %iv. and %m.0.0 isomorphic to each other without 
 ; cycles, allowing the tmp.21 subtraction to be eliminated.
@@ -19,7 +19,7 @@ no_exit.preheader:              ; preds = %entry
         br label %no_exit
 
 no_exit:                ; preds = %no_exit, %no_exit.preheader
-        %iv. = phi uint [ 0, %no_exit.preheader ], [ %iv..inc, %no_exit ]               ; <uint> [#uses=1]
+        %iv.ui = phi uint [ 0, %no_exit.preheader ], [ %iv..inc.ui, %no_exit ]               ; <uint> [#uses=1]
         %iv. = phi int [ %tmp.5, %no_exit.preheader ], [ %iv..inc, %no_exit ]           ; <int> [#uses=2]
         %m.0.0 = phi int [ %tmp.5, %no_exit.preheader ], [ %tmp.24, %no_exit ]          ; <int> [#uses=2]
         store int 2, int* %tmp.16
@@ -27,8 +27,8 @@ no_exit:                ; preds = %no_exit, %no_exit.preheader
         store int %tmp.21, int* %data
         %tmp.24 = add int %m.0.0, %tmp.9                ; <int> [#uses=1]
         %iv..inc = add int %tmp.9, %iv.         ; <int> [#uses=1]
-        %iv..inc = add uint %iv., 1             ; <uint> [#uses=2]
-        %iv..inc1 = cast uint %iv..inc to int           ; <int> [#uses=1]
+        %iv..inc.ui = add uint %iv.ui, 1             ; <uint> [#uses=2]
+        %iv..inc1 = cast uint %iv..inc.ui to int           ; <int> [#uses=1]
         %tmp.12 = setlt int %iv..inc1, %tmp.2           ; <bool> [#uses=1]
         br bool %tmp.12, label %no_exit, label %return.loopexit
 
index c201a457bcc43c473d0963d6ddbf4cc9ed64575a..e7b17443a85800999d4a166fa9474c5ad23accae 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -inline | llvm-dis | grep 'ret int 1'
+; RUN: llvm-upgrade < %s | llvm-as | opt -inline | llvm-dis | grep 'ret i32 1'
 ; ModuleID = 'short.opt.bc'
 
 implementation   ; Functions:
index ef05e6b354252a22c5fd845a508a4228b69721d1..3b708cd59dc9b5c412ac1dbf6ab1a204f8e67477 100644 (file)
@@ -10,7 +10,7 @@ implementation   ; Functions:
 
 int %mem_mono_copy_mono(%struct.gx_device* %dev, ubyte* %base, int %sourcex, int %raster, int %x, int %y, int %w, int %h, uint %zero, uint %one) {
 entry:
-       %raster = cast int %raster to uint              ; <uint> [#uses=3]
+       %raster.ui = cast int %raster to uint           ; <uint> [#uses=3]
        %tmp = seteq uint %one, %zero           ; <bool> [#uses=1]
        br bool %tmp, label %cond_true, label %cond_next
 
@@ -146,7 +146,6 @@ cond_true249:               ; preds = %cond_true249, %cond_true249.preheader
        %optr.3.2 = phi ubyte* [ %tmp232, %cond_true249 ], [ %dest.1.0, %cond_true249.preheader ]               ; <ubyte*> [#uses=1]
        %bptr.3.2 = phi ubyte* [ %tmp226, %cond_true249 ], [ %line.1.0, %cond_true249.preheader ]               ; <ubyte*> [#uses=1]
        %tmp. = add int %tmp109, %w             ; <int> [#uses=1]
-       %indvar = cast uint %indvar to int              ; <int> [#uses=1]
        %tmp.58 = mul int %indvar, -8           ; <int> [#uses=1]
        %tmp.57 = add int %tmp., -16            ; <int> [#uses=1]
        %tmp246.2 = add int %tmp.58, %tmp.57            ; <int> [#uses=1]
@@ -236,10 +235,8 @@ cond_true295.us:           ; preds = %cond_next280.us, %cond_true295.preheader.split.us
        %dest.1.0.us = phi ubyte* [ %tmp286.us, %cond_next280.us ], [ %tmp100, %cond_true295.preheader.split.us ]               ; <ubyte*> [#uses=3]
        %dest_line.1.0.us = phi ubyte** [ %tmp282.us, %cond_next280.us ], [ %tmp96, %cond_true295.preheader.split.us ]          ; <ubyte**> [#uses=1]
        %tmp.89 = sub uint 0, %indvar86         ; <uint> [#uses=1]
-       %tmp.89 = cast uint %tmp.89 to int              ; <int> [#uses=1]
        %tmp292.0.us = add int %tmp.89, %tmp29222               ; <int> [#uses=1]
-       %tmp.91 = mul uint %indvar86, %raster           ; <uint> [#uses=1]
-       %tmp.91 = cast uint %tmp.91 to int              ; <int> [#uses=1]
+       %tmp.91 = mul uint %indvar86, %raster.ui                ; <uint> [#uses=1]
        %tmp104.sum101 = add int %tmp102, %tmp.91               ; <int> [#uses=1]
        %line.1.0.us = getelementptr ubyte* %base, int %tmp104.sum101           ; <ubyte*> [#uses=2]
        %tmp.us = load ubyte* %line.1.0.us              ; <ubyte> [#uses=1]
@@ -313,10 +310,8 @@ cond_true295:              ; preds = %cond_true295.preheader.split, %cond_next280
        %dest.1.0 = phi ubyte* [ %tmp286, %cond_next280 ], [ %tmp100, %cond_true295.preheader.split ]           ; <ubyte*> [#uses=4]
        %dest_line.1.0 = phi ubyte** [ %tmp282, %cond_next280 ], [ %tmp96, %cond_true295.preheader.split ]              ; <ubyte**> [#uses=1]
        %tmp.63 = sub uint 0, %indvar60         ; <uint> [#uses=1]
-       %tmp.63 = cast uint %tmp.63 to int              ; <int> [#uses=1]
        %tmp292.0 = add int %tmp.63, %tmp29222          ; <int> [#uses=1]
-       %tmp.65 = mul uint %indvar60, %raster           ; <uint> [#uses=1]
-       %tmp.65 = cast uint %tmp.65 to int              ; <int> [#uses=1]
+       %tmp.65 = mul uint %indvar60, %raster.ui                ; <uint> [#uses=1]
        %tmp104.sum97 = add int %tmp102, %tmp.65                ; <int> [#uses=1]
        %line.1.0 = getelementptr ubyte* %base, int %tmp104.sum97               ; <ubyte*> [#uses=3]
        %tmp = load ubyte* %line.1.0            ; <ubyte> [#uses=1]
@@ -386,7 +381,6 @@ cond_true398:               ; preds = %cond_true398, %cond_true398.preheader
        %optr309.3.0 = phi ubyte* [ %optr309.3, %cond_true398 ], [ %optr309.353, %cond_true398.preheader ]              ; <ubyte*> [#uses=2]
        %optr309.3.in.0 = add uint %indvar66, %optr309.3.in51           ; <uint> [#uses=1]
        %tmp.70 = add int %tmp109, %w           ; <int> [#uses=1]
-       %indvar66 = cast uint %indvar66 to int          ; <int> [#uses=1]
        %tmp.72 = mul int %indvar66, -8         ; <int> [#uses=1]
        %tmp.71 = add int %tmp.70, -8           ; <int> [#uses=1]
        %count308.3.0 = add int %tmp.72, %tmp.71                ; <int> [#uses=1]
@@ -440,7 +434,6 @@ cond_true414:               ; preds = %cond_true404
        %tmp416 = load ubyte* %tmp410           ; <ubyte> [#uses=1]
        %tmp416 = cast ubyte %tmp416 to uint            ; <uint> [#uses=1]
        %tmp418 = shr uint %tmp416, ubyte %tmp319               ; <uint> [#uses=1]
-       %tmp418 = cast uint %tmp418 to int              ; <int> [#uses=1]
        %tmp420 = add int %tmp418, %tmp408              ; <int> [#uses=1]
        br label %cond_next422
 
@@ -479,7 +472,6 @@ cond_true457.preheader:             ; preds = %cond_false299
        %tmp354 = and uint %iftmp.37.0, %mask.1.1               ; <uint> [#uses=1]
        %tmp361 = sub int %w, %tmp110           ; <int> [#uses=2]
        %tmp39755 = setgt int %tmp361, 7                ; <bool> [#uses=1]
-       %iftmp.35.0 = cast uint %iftmp.35.0 to int              ; <int> [#uses=1]
        %tmp426 = cast uint %rmask.0.1 to ubyte         ; <ubyte> [#uses=1]
        %tmp426not = xor ubyte %tmp426, 255             ; <ubyte> [#uses=1]
        %tmp428 = or ubyte %tmp347, %tmp426not          ; <ubyte> [#uses=1]
@@ -492,10 +484,8 @@ cond_true457:              ; preds = %cond_true457.preheader, %cond_next442
        %dest.3.0 = phi ubyte* [ %tmp448, %cond_next442 ], [ %tmp100, %cond_true457.preheader ]         ; <ubyte*> [#uses=3]
        %dest_line.3.0 = phi ubyte** [ %tmp444, %cond_next442 ], [ %tmp96, %cond_true457.preheader ]            ; <ubyte**> [#uses=1]
        %tmp.77 = sub uint 0, %indvar74         ; <uint> [#uses=1]
-       %tmp.77 = cast uint %tmp.77 to int              ; <int> [#uses=1]
        %tmp454.0 = add int %tmp.77, %tmp45438          ; <int> [#uses=1]
-       %tmp.79 = mul uint %indvar74, %raster           ; <uint> [#uses=1]
-       %tmp.79 = cast uint %tmp.79 to int              ; <int> [#uses=1]
+       %tmp.79 = mul uint %indvar74, %raster.ui                ; <uint> [#uses=1]
        %tmp104.sum = add int %tmp102, %tmp.79          ; <int> [#uses=1]
        %line.3.0 = getelementptr ubyte* %base, int %tmp104.sum         ; <ubyte*> [#uses=3]
        %tmp318 = load ubyte* %line.3.0         ; <ubyte> [#uses=2]
index beb4489946bb917e3b0e4695a0d3846c94844958..bd1dbd009c0ab9fbad348b02a39e3a0453456769 100644 (file)
@@ -9,8 +9,8 @@ void %test() {
 entry:
        %tmp = getelementptr { long, long, long, long }* null, int 0, uint 3
        %tmp = load long* %tmp          ; <long> [#uses=1]
-       %tmp8 = load ulong* null                ; <ulong> [#uses=1]
-       %tmp8 = cast ulong %tmp8 to long                ; <long> [#uses=1]
+       %tmp8.ui = load ulong* null             ; <ulong> [#uses=1]
+       %tmp8 = cast ulong %tmp8.ui to long             ; <long> [#uses=1]
        %tmp9 = and long %tmp8, %tmp            ; <long> [#uses=1]
        %sext = cast long %tmp9 to int          ; <int> [#uses=1]
        %tmp27.i = cast int %sext to long               ; <long> [#uses=1]
index c38b32524ae277fc222d4c196f678464621eb3f8..051d91f91fb93afb0b9b4f78f0abfa28e6449934 100644 (file)
@@ -2,10 +2,10 @@
 ; PR913
 
 int %test(int* %tmp1) {
-        %tmp = load int* %tmp1          ; <int> [#uses=1]
-        %tmp = cast int %tmp to uint            ; <uint> [#uses=1]
-        %tmp2 = shr uint %tmp, ubyte 5          ; <uint> [#uses=1]
-        %tmp2 = cast uint %tmp2 to int          ; <int> [#uses=1]
+        %tmp.i = load int* %tmp1          ; <int> [#uses=1]
+        %tmp = cast int %tmp.i to uint            ; <uint> [#uses=1]
+        %tmp2.ui = shr uint %tmp, ubyte 5          ; <uint> [#uses=1]
+        %tmp2 = cast uint %tmp2.ui to int          ; <int> [#uses=1]
         %tmp3 = and int %tmp2, 1                ; <int> [#uses=1]
         %tmp3 = cast int %tmp3 to bool          ; <bool> [#uses=1]
         %tmp34 = cast bool %tmp3 to int         ; <int> [#uses=1]
index d3bfdfa65fc644bf139afdcd2d0b255bc2e110f2..89ec03dbbee8314d9ffebbad6f5a631e7d534351 100644 (file)
@@ -1,5 +1,5 @@
 ; The optimizer should be able to remove cast operation here.
-; RUN: llvm-upgrade %s -o - | llvm-as | opt -instcombine | llvm-dis | not grep 'sext.*int'
+; RUN: llvm-upgrade %s -o - | llvm-as | opt -instcombine | llvm-dis | not grep 'sext.*i32'
 
 bool %eq_signed_to_small_unsigned(sbyte %SB) {
    %Y = cast sbyte %SB to uint         ; <uint> [#uses=1]
index cab0b940d87e5691969cd22881d187c13097e5a9..edd9054f2f59266ef59e0c505eaefbe51de5051c 100644 (file)
@@ -1,6 +1,6 @@
 ; This test case is reduced from llvmAsmParser.cpp
 ; The optimizer should not remove the cast here.
-; RUN: llvm-upgrade %s -o - | llvm-as | opt -instcombine | llvm-dis | grep 'sext.*int'
+; RUN: llvm-upgrade %s -o - | llvm-as | opt -instcombine | llvm-dis | grep 'sext.*i32'
 
 bool %test(short %X) {
     %A = cast short %X to uint
index fbd3c0c2df91ddb7e6c1d72f88ec41cb00be1bd5..836d6147f231e55c320aca34361255108de04f42 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | grep 'ret int %A'
+; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | grep 'ret i32 %A'
 
 int %test(int %A) {
   %X = or bool false, false
index dedcd13f9bc6f134eedb257c8a7840dc6a30c017..1da8e42edf4f607f5b97939a5bb20591cbdb9d79 100644 (file)
@@ -1,14 +1,14 @@
 ; Test some floating point casting cases
 ; RUN: llvm-upgrade %s -o - | llvm-as | opt -instcombine | llvm-dis | notcast
 ; RUN: llvm-upgrade %s -o - | llvm-as | opt -instcombine | llvm-dis | \
-; RUN:   grep 'ret [us]byte \(-1\)\|\(255\)'
+; RUN:   grep 'ret i8 \(-1\)\|\(255\)'
 
-sbyte %test() {
+sbyte %test1() {
     %x = fptoui float 255.0 to sbyte 
     ret sbyte %x
 }
 
-ubyte %test() {
+ubyte %test2() {
     %x = fptosi float -1.0 to ubyte
     ret ubyte %x
 }
index 43a4ebdfd2c981c4be7f046242e6b4cf422568d3..a887d61196a367d434290695fecd0ab4306ad2d9 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine -disable-output &&
-; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | grep 'lshr int' | wc -l | grep 2 &&
+; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | grep 'lshr i32' | wc -l | grep 2 &&
 ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | not grep ashr
 
 int %test1(int %X, ubyte %A) {
index 8ca2e783ca2960ddc9fc55ab325b835c17e515ef..ebc1a6d9e2ecfb8938beed8efdaa0d649ccbb220 100644 (file)
@@ -1,7 +1,7 @@
 ; This test makes sure that these instructions are properly eliminated.
 ;
 
-; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | grep -v 'sub int %Cok, %Bok' | not grep sub
+; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | grep -v 'sub i32 %Cok, %Bok' | not grep sub
 
 implementation
 
index e32f4b966cfa88c63534325cedcfe164b8b9871a..2d30f910dcdfcc98fa054edfd96db5a9d84dcc96 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | grep 'and int %Y, 8'
+; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | grep 'and i32 %Y, 8'
 
 int %test1(ubyte %X) {
         %Y = cast ubyte %X to int
index 05a0ad1eb29c5641efd41ad2e277950f00448e68..7d12aee73968522ef782864c608e310e70dc5698 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -lcssa | llvm-dis | grep "X3.lcssa = phi int" &&
-; RUN: llvm-upgrade < %s | llvm-as | opt -lcssa | llvm-dis | grep "%X4 = add int 3, %X3.lcssa"
+; RUN: llvm-upgrade < %s | llvm-as | opt -lcssa | llvm-dis | grep "X3.lcssa = phi i32" &&
+; RUN: llvm-upgrade < %s | llvm-as | opt -lcssa | llvm-dis | grep "%X4 = add i32 3, %X3.lcssa"
 
 void %lcssa(bool %S2) {
 entry:
@@ -23,4 +23,4 @@ post.if:
 loop.exit:
        %X4 = add int 3, %X3
        ret void
-}
\ No newline at end of file
+}
index 6458f035c2e5b4ffa30b04a140218dccf33328b5..f3311ea6c2959b62161089a7fb82ecb83b1af3ef 100644 (file)
@@ -1,12 +1,12 @@
 ; RUN: llvm-upgrade < %s | llvm-as | opt -licm | llvm-dis
 
-void "testfunc"(int %i) {
+void "testfunc"(int %i.s) {
 
        br label %Loop
 
 Loop:
        %j = phi uint [0, %0], [%Next, %Loop]
-       %i = cast int %i to uint
+       %i = cast int %i.s to uint
        %i2 = mul uint %i, 17
        %Next = add uint %j, %i2
        %cond = seteq uint %Next, 0
index 954857ae3b1d9c6ae990523df5b8bfc3df9c4152..7f4b51aef9d3a3674904cc1aaaa04e0e97d5cce8 100644 (file)
@@ -1,7 +1,7 @@
 ; Test that LICM works when there is not a loop-preheader
 ; RUN: llvm-upgrade < %s | llvm-as | opt -licm | llvm-dis
 
-void "testfunc"(int %i, bool %ifcond) {
+void "testfunc"(int %i.s, bool %ifcond) {
        br bool %ifcond, label %Then, label %Else
 Then:
        br label %Loop
@@ -10,7 +10,7 @@ Else:
 
 Loop:
        %j = phi uint [0, %Then], [12, %Else], [%Next, %Loop]
-       %i = cast int %i to uint
+       %i = cast int %i.s to uint
        %i2 = mul uint %i, 17
        %Next = add uint %j, %i2
        %cond = seteq uint %Next, 0
index 75c92cf13171fb3c62b1fe576caf12103d9c565a..7d86f0d613653e3c9cf01ec02c79c0a025d7eafe 100644 (file)
Binary files a/test/Transforms/LoopSimplify/2006-08-11-LoopSimplifyLongTime.ll.bc and b/test/Transforms/LoopSimplify/2006-08-11-LoopSimplifyLongTime.ll.bc differ
index 3caa366b066236615f4de032be92c411daef4286..1959832d51c78055a857f17d79b54bcafcc8c5f6 100644 (file)
@@ -25,8 +25,8 @@ no_exit.1.outer:              ; preds = %cond_true, %no_exit.1.preheader
        br label %no_exit.1
 
 no_exit.1:             ; preds = %cond_continue, %no_exit.1.outer
-       %indvar = phi uint [ 0, %no_exit.1.outer ], [ %indvar.next, %cond_continue ]            ; <uint> [#uses=2]
-       %indvar = cast uint %indvar to int              ; <int> [#uses=1]
+       %indvar.ui = phi uint [ 0, %no_exit.1.outer ], [ %indvar.next, %cond_continue ]         ; <uint> [#uses=2]
+       %indvar = cast uint %indvar.ui to int           ; <int> [#uses=1]
        %j.1.2 = add int %indvar, %j.1.2.ph             ; <int> [#uses=2]
        %tmp.11 = add int %j.1.2, %tmp.9                ; <int> [#uses=1]
        %tmp.12 = cast int %tmp.11 to ubyte             ; <ubyte> [#uses=1]
@@ -43,7 +43,7 @@ cond_true:            ; preds = %no_exit.1
 
 cond_continue:         ; preds = %no_exit.1
        %tmp.519 = setlt int %inc.1, %C         ; <bool> [#uses=1]
-       %indvar.next = add uint %indvar, 1              ; <uint> [#uses=1]
+       %indvar.next = add uint %indvar.ui, 1           ; <uint> [#uses=1]
        br bool %tmp.519, label %no_exit.1, label %loopexit.1
 
 loopexit.1:            ; preds = %cond_continue, %cond_true, %loopentry.1
index ba897c401f154d4c843946a017ed85c466f373b1..d8316a52bccabd2a55c6cc48e40601fe19abccba 100644 (file)
@@ -1,17 +1,17 @@
 ; RUN: llvm-upgrade < %s | llvm-as | opt -loop-reduce | llvm-dis | grep mul | wc -l | grep 1
 ; LSR should not make two copies of the Q*L expression in the preheader!
 
-sbyte %test(sbyte* %A, sbyte* %B, int %L, int %Q, int %N) {
+sbyte %test(sbyte* %A, sbyte* %B, int %L, int %Q, int %N.s) {
 entry:
        %tmp.6 = mul int %Q, %L         ; <int> [#uses=1]
-       %N = cast int %N to uint                ; <uint> [#uses=1]
+       %N = cast int %N.s to uint              ; <uint> [#uses=1]
        br label %no_exit
 
 no_exit:               ; preds = %no_exit, %no_exit.preheader
-       %indvar = phi uint [ 0, %entry], [ %indvar.next, %no_exit ]             ; <uint> [#uses=2]
+       %indvar.ui = phi uint [ 0, %entry], [ %indvar.next, %no_exit ]          ; <uint> [#uses=2]
        %Sum.0.0 = phi sbyte [ 0, %entry], [ %tmp.21, %no_exit ]                ; <sbyte> [#uses=1]
-       %indvar = cast uint %indvar to int              ; <int> [#uses=1]
-       %N_addr.0.0 = sub int %N, %indvar               ; <int> [#uses=1]
+       %indvar = cast uint %indvar.ui to int           ; <int> [#uses=1]
+       %N_addr.0.0 = sub int %N.s, %indvar             ; <int> [#uses=1]
        %tmp.8 = add int %N_addr.0.0, %tmp.6            ; <int> [#uses=2]
        %tmp.9 = getelementptr sbyte* %A, int %tmp.8            ; <sbyte*> [#uses=1]
        %tmp.10 = load sbyte* %tmp.9            ; <sbyte> [#uses=1]
@@ -19,7 +19,7 @@ no_exit:              ; preds = %no_exit, %no_exit.preheader
        %tmp.18 = load sbyte* %tmp.17           ; <sbyte> [#uses=1]
        %tmp.19 = sub sbyte %tmp.10, %tmp.18            ; <sbyte> [#uses=1]
        %tmp.21 = add sbyte %tmp.19, %Sum.0.0           ; <sbyte> [#uses=2]
-       %indvar.next = add uint %indvar, 1              ; <uint> [#uses=2]
+       %indvar.next = add uint %indvar.ui, 1           ; <uint> [#uses=2]
        %exitcond = seteq uint %indvar.next, %N         ; <bool> [#uses=1]
        br bool %exitcond, label %loopexit, label %no_exit
 
index 4a6e9b2a13db70798cdb1e9aa23e79db2201fc9b..028400c47f07b01bc9fb71520171957fff933385 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -loop-reduce | llvm-dis | grep 'add uint %iv.*inc, 1'
+; RUN: llvm-upgrade < %s | llvm-as | opt -loop-reduce | llvm-dis | grep 'add i32 %iv.*inc, 1'
 ;
 ; Make sure that the use of the IV outside of the loop (the store) uses the 
 ; post incremented value of the IV, not the preincremented value.  This 
@@ -13,13 +13,13 @@ then.0:
         br label %no_exit.2
 
 no_exit.2:              ; preds = %no_exit.2, %then.0
-        %indvar630 = phi uint [ 0, %then.0 ], [ %indvar.next631, %no_exit.2 ]           ; <uint> [#uses=3]
-        %indvar630 = cast uint %indvar630 to int                ; <int> [#uses=1]
-        %tmp.38 = getelementptr [700 x int]* %nbeaux_.0__558, int 0, uint %indvar630            ; <int*> [#uses=1]
+        %indvar630.ui = phi uint [ 0, %then.0 ], [ %indvar.next631, %no_exit.2 ]           ; <uint> [#uses=3]
+        %indvar630 = cast uint %indvar630.ui to int                ; <int> [#uses=1]
+        %tmp.38 = getelementptr [700 x int]* %nbeaux_.0__558, int 0, uint %indvar630.ui            ; <int*> [#uses=1]
         store int 0, int* %tmp.38
         %inc.2 = add int %indvar630, 2          ; <int> [#uses=2]
         %tmp.34 = call bool %pred(int %indvar630)
-        %indvar.next631 = add uint %indvar630, 1                ; <uint> [#uses=1]
+        %indvar.next631 = add uint %indvar630.ui, 1                ; <uint> [#uses=1]
         br bool %tmp.34, label %no_exit.2, label %loopexit.2.loopexit
 
 loopexit.2.loopexit:            ; preds = %no_exit.2
index 7b4f022aa38737e2f9d3e1298186b8720d56c090..3e8f63abe3b6e12e3803ce77f45461e56327872f 100644 (file)
@@ -17,10 +17,10 @@ target triple = "i686-apple-darwin8"
 
 implementation   ; Functions:
 
-void %foo(int %k, int %i) {
+void %foo(int %k, int %i.s) {
 entry:
-       %i = cast int %i to uint                ; <uint> [#uses=2]
-       %k_addr.012 = shl int %i, ubyte 1               ; <int> [#uses=1]
+       %i = cast int %i.s to uint              ; <uint> [#uses=2]
+       %k_addr.012 = shl int %i.s, ubyte 1             ; <int> [#uses=1]
        %tmp14 = setgt int %k_addr.012, 8192            ; <bool> [#uses=1]
        br bool %tmp14, label %return, label %bb.preheader
 
@@ -35,7 +35,7 @@ bb:           ; preds = %bb, %bb.preheader
        %k_addr.0.0 = cast uint %tmp.16 to int          ; <int> [#uses=1]
        %tmp = getelementptr [8193 x sbyte]* %flags2, int 0, uint %tmp.16               ; <sbyte*> [#uses=1]
        store sbyte 0, sbyte* %tmp
-       %k_addr.0 = add int %k_addr.0.0, %i             ; <int> [#uses=1]
+       %k_addr.0 = add int %k_addr.0.0, %i.s           ; <int> [#uses=1]
        %tmp = setgt int %k_addr.0, 8192                ; <bool> [#uses=1]
        %indvar.next = add uint %indvar, 1              ; <uint> [#uses=1]
        br bool %tmp, label %return.loopexit, label %bb
index ac0b798094026e1cbcd68e4c93b827d785d93dee..38df259ed81ecb2feb32f16460c8e7809b61375f 100644 (file)
@@ -1421,8 +1421,8 @@ no_exit.53.outer:
 no_exit.53:            ; preds = %else.166, %else.168, %then.360, %no_exit.53.outer
        %file.2.3.3.ph = phi int [ 0, %no_exit.53.outer ], [ %inc.551688, %then.360 ], [ %inc.551701, %else.168 ], [ %file.2.3.3.ph, %else.166 ]                ; <int> [#uses=2]
        %nempty.5.3.ph = phi int [ 0, %no_exit.53.outer ], [ %nempty.5.3, %then.360 ], [ %nempty.5.3, %else.168 ], [ %nempty.5.3.ph, %else.166 ]                ; <int> [#uses=2]
-       %indvar2053 = phi uint [ 0, %no_exit.53.outer ], [ 0, %then.360 ], [ 0, %else.168 ], [ %indvar.next2054, %else.166 ]            ; <uint> [#uses=2]
-       %indvar2053 = cast uint %indvar2053 to int              ; <int> [#uses=2]
+       %indvar2053.ui = phi uint [ 0, %no_exit.53.outer ], [ 0, %then.360 ], [ 0, %else.168 ], [ %indvar.next2054, %else.166 ]         ; <uint> [#uses=2]
+       %indvar2053 = cast uint %indvar2053.ui to int           ; <int> [#uses=2]
        %file.2.3.3 = add int %indvar2053, %file.2.3.3.ph               ; <int> [#uses=4]
        %nempty.5.3 = add int %indvar2053, %nempty.5.3.ph               ; <int> [#uses=3]
        %tmp.4749 = add int %file.2.3.3, %tmp.4747              ; <int> [#uses=1]
@@ -1472,7 +1472,7 @@ else.168:         ; preds = %endif.358
 else.166:              ; preds = %no_exit.53
        %inc.55 = add int %file.2.3.3, 1                ; <int> [#uses=1]
        %tmp.47421705 = setlt int %inc.55, 8            ; <bool> [#uses=1]
-       %indvar.next2054 = add uint %indvar2053, 1              ; <uint> [#uses=1]
+       %indvar.next2054 = add uint %indvar2053.ui, 1           ; <uint> [#uses=1]
        br bool %tmp.47421705, label %no_exit.53, label %loopexit.56
 
 loopexit.56:           ; preds = %else.166, %else.168, %then.360
index 8f2fdbd79adb9631d070c4f0d0d9d444c64399ed..1023497ee31a5851dfa7390dc0ae11d3224a4a8f 100644 (file)
@@ -16,8 +16,8 @@ cond_true.outer:              ; preds = %cond_true.i, %entry
        br label %cond_true
 
 cond_true:             ; preds = %return.i, %cond_true.outer
-       %indvar = phi uint [ 0, %cond_true.outer ], [ %indvar.next, %return.i ]         ; <uint> [#uses=2]
-       %indvar = cast uint %indvar to int              ; <int> [#uses=1]
+       %indvar.ui = phi uint [ 0, %cond_true.outer ], [ %indvar.next, %return.i ]              ; <uint> [#uses=2]
+       %indvar = cast uint %indvar.ui to int           ; <int> [#uses=1]
        %i.0.0 = add int %indvar, %i.0.0.ph             ; <int> [#uses=3]
        %savedstack = call sbyte* %llvm.stacksave( )            ; <sbyte*> [#uses=2]
        %tmp.i = seteq int %i.0.0, 0            ; <bool> [#uses=1]
@@ -38,7 +38,7 @@ cond_true.i:          ; preds = %cond_true
 return.i:              ; preds = %cond_true
        call void %llvm.stackrestore( sbyte* %savedstack )
        %tmp21 = setgt int %tmp5, 9999          ; <bool> [#uses=1]
-       %indvar.next = add uint %indvar, 1              ; <uint> [#uses=1]
+       %indvar.next = add uint %indvar.ui, 1           ; <uint> [#uses=1]
        br bool %tmp21, label %bb8, label %cond_true
 
 bb8:           ; preds = %return.i, %cond_true.i
index e51c8cc1ec884fb11a6f40baa325a83e4ea18536..4583769a84cd63197a05e78b137bee88775be479 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -reassociate -instcombine | llvm-dis | grep 'ret int 0'
+; RUN: llvm-upgrade < %s | llvm-as | opt -reassociate -instcombine | llvm-dis | grep 'ret i32 0'
 
 int %f(int %a0, int %a1, int %a2, int %a3, int %a4) {
        %tmp.2 = add int %a4, %a3               ; <int> [#uses=1]
index 6a65aafb186c3bbfc1d5e0f29105358d767db10d..0bfe0ec2df69005e284a80156ad68189751d08e7 100644 (file)
@@ -1,6 +1,6 @@
 ; With shl->mul reassociation, we can see that this is (shl A, 9) * A
 ;
-; RUN: llvm-upgrade < %s | llvm-as | opt -reassociate -instcombine | llvm-dis | grep 'shl .*, ubyte 9'
+; RUN: llvm-upgrade < %s | llvm-as | opt -reassociate -instcombine | llvm-dis | grep 'shl .*, i8 9'
 
 int %test(int %A, int %B) {
        %X = shl int %A, ubyte 5
index 9d08137df19da9ec22fbbacdb292a2c9f26870aa..52cda01e1655c4f9bed15f73121e5936576aa9e0 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -sccp | llvm-dis | grep 'ret int 1'
+; RUN: llvm-upgrade < %s | llvm-as | opt -sccp | llvm-dis | grep 'ret i32 1'
 
 ; This function definitely returns 1, even if we don't know the direction
 ; of the branch.
index ddb9c4f887841a2a6ebcd7a3068dc395603d349c..7942b657f635edee115be287678ae1d4c609510c 100644 (file)
@@ -105,8 +105,8 @@ implementation   ; Functions:
 
 void %gldLLVMVecPointRender(%struct.GLDContextRec* %ctx) {
 entry:
-       %tmp = getelementptr %struct.GLDContextRec* %ctx, int 0, uint 22                ; <uint*> [#uses=1]
-       %tmp = load uint* %tmp          ; <uint> [#uses=3]
+       %tmp.uip = getelementptr %struct.GLDContextRec* %ctx, int 0, uint 22            ; <uint*> [#uses=1]
+       %tmp = load uint* %tmp.uip              ; <uint> [#uses=3]
        %tmp91 = lshr uint %tmp, ubyte 5                ; <uint> [#uses=1]
        %tmp92 = trunc uint %tmp91 to bool              ; <bool> [#uses=1]
        br bool %tmp92, label %cond_true93, label %cond_next116
index 18bfd8ec027e14d8d3bab2c917367c60a4589fa5..2c42dface5448a1d96b5badded108e0a31eeef95 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -ipsccp | llvm-dis | grep -v 'ret int 17' | grep -v 'ret int undef' | not grep ret
+; RUN: llvm-upgrade < %s | llvm-as | opt -ipsccp | llvm-dis | grep -v 'ret i32 17' | grep -v 'ret i32 undef' | not grep ret
 
 implementation
 
index fceb31e132146d019b6d12851af8ddeeb30a6731..5f06df3e8e133b8e087e52434275c16936b61413 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -ipsccp | llvm-dis | grep -v 'ret int 0' | grep -v 'ret int undef' | not grep ret
+; RUN: llvm-upgrade < %s | llvm-as | opt -ipsccp | llvm-dis | grep -v 'ret i32 0' | grep -v 'ret i32 undef' | not grep ret
 
 implementation
 
index 446e99e0391699265e6dd4639e30c5c73f6a0a88..c0a555a3002bf32d4d7c59ca2815ce12102ceef0 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -sccp | llvm-dis | grep 'ret int 0'
+; RUN: llvm-upgrade < %s | llvm-as | opt -sccp | llvm-dis | grep 'ret i32 0'
 
 ; Test that SCCP has basic knowledge of when and/or nuke overdefined values.
 
index ae795858a806b082464e0e3af0b9fcf0bbb67541..82bb1edd7f1da32d330550085e3e48faac8e5771 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: llvm-upgrade < %s | llvm-as | opt -scalarrepl | llvm-dis &&
-; RUN: llvm-upgrade < %s | llvm-as | opt -scalarrepl | llvm-dis | grep -F 'alloca [2 x <4 x int>]'
+; RUN: llvm-upgrade < %s | llvm-as | opt -scalarrepl | llvm-dis | grep -F 'alloca [2 x <4 x i32>]'
 
 int %func(<4 x float> %v0, <4 x float> %v1) {
        %vsiidx = alloca [2 x <4 x int>], align 16              ; <[2 x <4 x int>]*> [#uses=3]
index 9c0e23e8a64b43a3849b4adff7e9d12f7833cb60..681636b07b4207c1f5c93b329b31e1319a57827f 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: llvm-upgrade < %s | llvm-as | opt -scalarrepl | llvm-dis | not grep alloca &&
-; RUN: llvm-upgrade < %s | llvm-as | opt -scalarrepl | llvm-dis | grep 'bitcast.*float.*int'
+; RUN: llvm-upgrade < %s | llvm-as | opt -scalarrepl | llvm-dis | grep 'bitcast.*float.*i32'
 
 int %test(float %X) {
         %X_addr = alloca float
index 0207ab976d17271ae206957ef6a31602c6d8ea16..be4c4604f9c869d6f35d833227321bd6ea47c8cc 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: llvm-upgrade < %s | llvm-as | opt -scalarrepl | llvm-dis | not grep alloca &&
-; RUN: llvm-upgrade < %s | llvm-as | opt -scalarrepl | llvm-dis | grep 'ret sbyte'
+; RUN: llvm-upgrade < %s | llvm-as | opt -scalarrepl | llvm-dis | grep 'ret i8'
 
 ; PR892
 
index ca48041f67b4ddcef2eb2902defa1d3c9148fd2f..d067ac099444fbac5988574a1a8e3f4e785a7ce7 100644 (file)
@@ -413,11 +413,11 @@ invcont222:               ; preds = %cond_true220
 cond_next225:          ; preds = %invcont222, %cond_true217, %invcont213
        %toPage.1 = phi int [ %tmp223, %invcont222 ], [ %tmp214, %cond_true217 ], [ %tmp214, %invcont213 ]              ; <int> [#uses=2]
        %fromPage.1 = phi int [ 1, %invcont222 ], [ %tmp211, %cond_true217 ], [ %tmp211, %invcont213 ]          ; <int> [#uses=2]
-       %tmp = invoke uint %_ZNK8QPrinter9pageOrderEv( %struct.QPrinter* %printer )
+       %tmp.page = invoke uint %_ZNK8QPrinter9pageOrderEv( %struct.QPrinter* %printer )
                        to label %invcont227 unwind label %cleanup329           ; <uint> [#uses=1]
 
 invcont227:            ; preds = %cond_next225
-       %tmp228 = seteq uint %tmp, 1            ; <bool> [#uses=1]
+       %tmp228 = seteq uint %tmp.page, 1               ; <bool> [#uses=1]
        br bool %tmp228, label %cond_true230, label %cond_next234
 
 cond_true230:          ; preds = %invcont227
index 2063d9f4ae132a4a4a0163992b7d7754825c00ae..1ca04824b568f6715d49886b22784fb26b0a5dc8 100644 (file)
@@ -56,7 +56,7 @@ entry:
 
 bb:             ; preds = %bb33
         %tmp = load %struct.FILE** %f_addr              ; <%struct.FILE*> [#uses=1]
-        %tmp = call int %_IO_getc( %struct.FILE* %tmp )         ; <int> [#uses=1]
+        %tmp.r = call int %_IO_getc( %struct.FILE* %tmp )         ; <int> [#uses=1]
         %tmp6 = call int %tolower( int %tmp )           ; <int> [#uses=1]
         %tmp6 = trunc int %tmp6 to sbyte                ; <sbyte> [#uses=1]
         store sbyte %tmp6, sbyte* %c
index 944e39d2e594a67bdc0c71a1e522e1cf0054f822..f8af2ecf802772da6f64d9fe3e12614f939125fd 100644 (file)
@@ -1,5 +1,5 @@
 ; Test that the ExitInMainOptimization pass works correctly
-; RUN: llvm-upgrade < %s | llvm-as | opt -simplify-libcalls | llvm-dis | grep -c 'ret int 3' | grep 1
+; RUN: llvm-upgrade < %s | llvm-as | opt -simplify-libcalls | llvm-dis | grep -c 'ret i32 3' | grep 1
 
 declare void %exit(int)
 declare void %exitonly(int)
index 198e5aedb7944ae5984eccccdf098c4929df5373..6ddb1b708481ff042dd9eb130dd4063904e178c5 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -tailcallelim | llvm-dis | grep 'call int %foo'
+; RUN: llvm-upgrade < %s | llvm-as | opt -tailcallelim | llvm-dis | grep 'call i32 %foo'
 
 declare void %bar(int*)
 int %foo(uint %N) {
index 33b02df46ee9d1263bfcd1b1a08227c585756bb7..8125960ec244ff60aabadc5b5156f9f5eb547d7d 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -tailcallelim | llvm-dis | %prcontext alloca 1 | grep 'int %foo'
+; RUN: llvm-upgrade < %s | llvm-as | opt -tailcallelim | llvm-dis | %prcontext alloca 1 | grep 'i32 %foo'
 
 declare void %bar(int*)
 int %foo() {