Update tests that need to be run through llvm-upgrade. This is necessary
authorReid Spencer <rspencer@reidspencer.com>
Fri, 29 Dec 2006 20:01:32 +0000 (20:01 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Fri, 29 Dec 2006 20:01:32 +0000 (20:01 +0000)
for upcoming changes to the llvm assembly grammar.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32768 91177308-0d34-0410-b5e6-96231b3b80d8

41 files changed:
test/Analysis/BasicAA/2004-07-28-MustAliasbug.llx
test/Analysis/LoadVN/casts.ll
test/Assembler/2002-07-25-ParserAssertionFailure.llx
test/Assembler/2003-12-30-TypeMapInvalidMemory.llx
test/Assembler/2004-06-07-VerifierBug.llx
test/Assembler/2004-09-29-VerifierIsReallySlow.llx
test/BugPoint/crash-basictest.ll
test/BugPoint/crash-narrowfunctiontest.ll
test/BugPoint/misopt-basictest.ll
test/BugPoint/remove_arguments_test.ll
test/Bytecode/2006-12-11-Cast-ConstExpr.ll
test/CodeGen/ARM/arm-asm.ll
test/CodeGen/CBackend/2006-12-11-Float-Bitcast.ll
test/CodeGen/Generic/2002-04-16-StackFrameSizeAlignment.ll
test/CodeGen/Generic/2006-12-16-InlineAsmCrash.ll
test/CodeGen/PowerPC/2006-12-07-LargeAlloca.ll
test/CodeGen/X86/2006-12-19-IntelSyntax.ll
test/CodeGen/X86/bitcast.ll
test/CodeGen/X86/packed_struct.ll
test/CodeGen/X86/vec_ins_extract.ll
test/CodeGen/X86/x86-64-asm.ll
test/DebugInfo/funccall.ll
test/Linker/2003-01-30-LinkerRename.ll
test/Linker/2003-04-21-Linkage.ll
test/Linker/2003-04-23-LinkOnceLost.ll
test/Linker/2003-08-28-TypeResolvesGlobal.ll
test/Linker/2003-08-28-TypeResolvesGlobal2.ll
test/Linker/2003-08-28-TypeResolvesGlobal3.ll
test/Linker/2004-05-07-TypeResolution1.ll
test/Linker/AppendingLinkage.ll
test/Linker/testlink1.ll
test/Transforms/ADCE/2002-07-29-Segfault.ll
test/Transforms/IndVarsSimplify/2006-12-10-BitCast.ll
test/Transforms/InstCombine/2006-12-05-fp-to-int-ext.ll
test/Transforms/InstCombine/2006-12-15-Range-Test.ll
test/Transforms/InstCombine/2006-12-23-Select-Cmp-Cmp.ll
test/Transforms/InstCombine/shl-trunc.ll
test/Transforms/LevelRaise/2002-03-21-MissedRaise.ll
test/Transforms/SCCP/2006-12-19-UndefBug.ll
test/Transforms/ScalarRepl/2006-12-11-SROA-Crash.ll
test/Transforms/SimplifyCFG/2006-12-08-Ptr-ICmp-Branch.ll

index d1cf73b6ab40d12f1154cd7875e3cfe42d0de50f..82212af0c6c22b648498a775cc319ee46c7db726 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | opt -dse | llvm-dis | grep 'store int 0'
+; RUN: llvm-upgrade < %s | llvm-as | opt -dse | llvm-dis | grep 'store int 0'
 
 void %test({int,int }* %P) {
        %Q = getelementptr {int,int}* %P, int 1
index 462338d0d84e07c7d405cd0e239b46c22e532d5a..5dd3bc60ab387761d5f8465d2ee9fc6efe043f2b 100644 (file)
@@ -1,6 +1,7 @@
 ; Check to make sure that Value Numbering doesn't merge casts of different
 ; flavors.
-; RUN: llvm-as < %s | opt -load-vn -gcse | llvm-dis | grep '[sz]ext' | wc -l | grep 2
+; RUN: llvm-upgrade < %s | llvm-as | opt -load-vn -gcse | llvm-dis | \
+; RUN: grep '[sz]ext' | wc -l | grep 2
 
 declare void %external(int)
 
index 9e44afaeab79955af23baa661d6a673c1b85ee06..f7fdae8c82389ebee4b43ea3ff65e84b67279cf3 100644 (file)
@@ -1,6 +1,6 @@
 ; Make sure we don't get an assertion failure, even though this is a parse 
 ; error
-; RUN: llvm-as < %s 2>&1 | grep 'No arguments'
+; RUN: llvm-upgrade < %s | llvm-as -o /dev/null -f 2>&1 | grep 'No arguments'
 
 %ty = type void (int)
 
index 79bd0b3829d480dd33bce867183ce2d2bf5dc235..a3d4590d1a1bbf0cc22961e344dc09628326c873 100644 (file)
@@ -3,3 +3,4 @@
 
 %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 }
 
+implementation
index 88d25e40a48d094b24c586c3a1c64233088bb55d..49c2703a0030e4425f53c8799500cb4ac8344189 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s > /dev/null
+; RUN: llvm-upgrade < %s | llvm-as > /dev/null
 void %t() {
 entry:
        ret void
index 5076a24b6c6d9ee906f24b3c2eabbe868f173593..6de3767ca61486ce39b493fd387f734801953fa9 100644 (file)
@@ -1,6 +1,6 @@
 ; Check to see that the verifier does not take an outrageous amount of time on 
 ; this testcase.
-; RUN: llvm-as < %s -o /dev/null -f
+; RUN: llvm-upgrade < %s | llvm-as -o /dev/null -f
 
        "complex long double" = type { double, double }
        "struct.std::dcomplex" = type { "complex long double" }
index 3c5804ced70575c8b0dbddb9c3243e4d268a1696..77eb6ecdc5f01eec90801c720516dccfc1fee14b 100644 (file)
@@ -1,5 +1,7 @@
 ; Basic test for bugpoint.
-; RUN: bugpoint %s -domset -idom -domset -bugpoint-crashcalls -domset -idom -domset
+; RUN: llvm-upgrade < %s > %t1.ll
+; RUN: bugpoint %t1.ll -domset -idom -domset -bugpoint-crashcalls \
+; RUN:   -domset -idom -domset
 
 int %test() {
        call int %test()
index 8927ba1905eb78a7dc559cb305ee248573979d77..197e42f59d5642eccc8cb99db89effd1ef9af1eb 100644 (file)
@@ -1,6 +1,7 @@
 ; Test that bugpoint can narrow down the testcase to the important function
 ;
-; RUN: bugpoint %s -bugpoint-crashcalls
+; RUN: llvm-upgrade < %s > %t1.ll
+; RUN: bugpoint %t1.ll -bugpoint-crashcalls
 
 int %foo() { ret int 1 }
 
index 76363dfb1f631167cacf6a62a352adb180a9ba32..66cc53f42e086240dd98385ccaa9f7defa11704e 100644 (file)
@@ -1,6 +1,5 @@
-; RUN: PATH=/usr/bin:/bin/:${PATH}
-; RUN: export PATH
-; RUN: bugpoint %s -dce -bugpoint-deletecalls -simplifycfg
+; RUN: llvm-upgrade < %s > %t1.ll
+; RUN: bugpoint %t1.ll -dce -bugpoint-deletecalls -simplifycfg
 
 %.LC0 = internal global [13 x sbyte] c"Hello World\0A\00"
 
index 5a0bd6f00936e004eb26c3d88854afcf808a3ccf..ed77da7cb830a7bbfe6cfb61a4539636775d0c40 100644 (file)
@@ -1,4 +1,5 @@
-; RUN: bugpoint %s  -bugpoint-crashcalls
+; RUN: llvm-upgrade < %s > %t1.ll
+; RUN: bugpoint %t1.ll  -bugpoint-crashcalls
 
 ; Test to make sure that arguments are removed from the function if they are unnecessary.
 
index 6bd1603b0a1f7b7999ce48cc2831caad66d475ff..aa2cf9306fc66c93cbc3577336c14468d4d21a59 100644 (file)
@@ -1,6 +1,6 @@
 ; This test ensures that we get a bitcast constant expression in and out,
 ; not a sitofp constant expression. 
-; RUN: llvm-as < %s | llvm-dis | grep 'bitcast ('
+; RUN: llvm-upgrade < %s | llvm-as | llvm-dis | grep 'bitcast ('
 %G = external global int
 
 float %tryit(int %A) {
index 46c57db50b73f6dd5e7c7121c60e416dc5c8ccd3..6b8ce9a9fa37ec28ad90ef85727587e2b354e745 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -march=arm
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm
 
 void %frame_dummy() {
 entry:
index 53db1f58ba8cfb638a199238340c2177d4102273..bf846545c9c51c515438c7705d767d406cd2fc67 100644 (file)
@@ -1,5 +1,6 @@
-; RUN: llvm-as < %s | llc -march=c &&
-; RUN: llvm-as < %s | llc -march=c | grep '__BITCAST' | wc -l | grep 14
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=c &&
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=c | \
+; RUN:  grep '__BITCAST' | wc -l | grep 14
 
 int %test1(float %F) {
    %X = bitcast float %F to int
index f00aad7900cbc275eb8950ea34012a53a8b15d78..d7e138abd9292a4b90363acfb59268988e786087 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as -f %s -o - | llc
+; RUN: llvm-upgrade < %s | llvm-as | llc
 
 ; Compiling this file produces:
 ; Sparc.cpp:91: failed assertion `(offset - OFFSET) % getStackFrameSizeAlignment() == 0'
index f8663c39f1e3022b889e983a85a0b597cb72046c..c8467ec1e73c7f2ba380abd84a103e271e534a73 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -march=x86
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86
 ; PR1049
 target datalayout = "e-p:32:32"
 target endian = little
index a45991c234a4de6c3f86dde9748a42ff93a25e0e..8816ca003c9d173daf0a93c397e6c0b3004d6375 100644 (file)
@@ -1,6 +1,6 @@
-; RUN: llvm-as < %s | llc -march=ppc64 &&
-; RUN: llvm-as < %s | llc -march=ppc32 &&
-; RUN: llvm-as < %s | llc 
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 &&
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 &&
+; RUN: llvm-upgrade < %s | llvm-as | llc 
 
 void %bitap() {
 entry:
index b79700afd0064a38c64f791a49e7b37b553752d4..6985bd0e7a0432905e86e2db0a4fd4e01a858976 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -march=x86 -x86-asm-syntax=intel
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -x86-asm-syntax=intel
 ; PR1061
 
 target datalayout = "e-p:32:32"
index d0d3bd4bcb3ae4ff37b1fa92fd7f5d6cb9e78436..d7c78edb62f21bca299d12b1bc3e1fe1257de226 100644 (file)
@@ -1,6 +1,6 @@
-; RUN: llvm-as < %s | llc &&
-; RUN: llvm-as < %s | llc -march=x86 &&
-; RUN: llvm-as < %s | llc -march=x86-64
+; RUN: llvm-upgrade < %s | llvm-as | llc &&
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 &&
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86-64
 ; PR1033
 
 long %test1(double %t) {
index d027937b08968f6e35727f73be154d4aa7e3f4e5..94548b892f43162e96739f449f579099f8d7c2b9 100644 (file)
@@ -1,8 +1,8 @@
-; RUN: llvm-as < %s | llc -march=x86 |grep "foos+5" &&
-; RUN: llvm-as < %s | llc -march=x86 |grep "foos+1" &&
-; RUN: llvm-as < %s | llc -march=x86 |grep "foos+9" &&
-; RUN: llvm-as < %s | llc -march=x86 |grep "bara+19" &&
-; RUN: llvm-as < %s | llc -march=x86 |grep "bara+4"
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 |grep "foos+5" &&
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 |grep "foos+1" &&
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 |grep "foos+9" &&
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 |grep "bara+19" &&
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 |grep "bara+4"
 
 ; make sure we compute the correct offset for a packed structure
 
index eee8d22ebbae41d6d7138b2ddfec177f032b34fb..9d9f17e7466c535d4b726c1853a3af95ce9e4619 100644 (file)
@@ -1,5 +1,7 @@
-; RUN: llvm-as< %s | opt -scalarrepl -instcombine | llc -march=x86 -mcpu=yonah &&
-; RUN: llvm-as< %s | opt -scalarrepl -instcombine | llc -march=x86 -mcpu=yonah | not grep sub.*esp
+; RUN: llvm-upgrade < %s | llvm-as | opt -scalarrepl -instcombine | \
+; 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
 
 ; This checks that various insert/extract idiom work without going to the 
 ; stack.
index e5b293e304bae28e63ded8212acda1f6b667dcda..0814684bcd0c539a3136d3553f9ba14452cb1c72 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc
+; RUN: llvm-upgrade < %s | llvm-as | llc
 ; PR1029
 
 target datalayout = "e-p:64:64"
index 3243f9071955dc6bac76a05cc28a4be4732df5dc..cb5dab62caf79d95e36134ab75ed59b36cbe42fc 100644 (file)
@@ -1,4 +1,4 @@
-;; RUN: llvm-as < %s | llc
+;; RUN: llvm-upgrade < %s | llvm-as | llc
 
 ;; Debugger type declarations
 %llvm.dbg.anchor.type = type { uint, uint }
index cf9c4ae54d037b3ca82aafe8b29120dc177864ba..724a2a88b0c5d9933d69be9604a0a1358c6d6d6c 100644 (file)
@@ -1,8 +1,9 @@
 ; This fails because the linker renames the external symbol not the internal 
 ; one...
 
-; RUN: echo "implementation internal int %foo() { ret int 7 }" | llvm-as > %t.1.bc
-; RUN: llvm-as < %s > %t.2.bc
+; RUN: echo "implementation internal int %foo() { ret int 7 }" | llvm-upgrade |\
+; RUN:    llvm-as > %t.1.bc
+; RUN: llvm-upgrade < %s | llvm-as -o %t.2.bc -f
 ; RUN: llvm-link %t.[12].bc | llvm-dis | grep '%foo()' | grep -v internal
 
 implementation
index 6071d0b39498223198633f39c9bddba6a0f88098..742faa8c99e838347114056b0da0f30d82f89b33 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: echo "%X = linkonce global int 5  implementation linkonce int %foo() { ret int 7 }" | llvm-as > %t.1.bc
-; RUN: llvm-as < %s > %t.2.bc
+; RUN: echo "%X = linkonce global int 5  implementation linkonce int %foo() { ret int 7 }" | llvm-upgrade | llvm-as > %t.1.bc
+; RUN: llvm-upgrade < %s | llvm-as -o %t.2.bc -f
 ; RUN: llvm-link %t.[12].bc 
 %X = external global int 
 
index add9981f16d04d2c14a45c1c6d0f2b20dc073b30..3996cc40b77a9c544954509fcbf7be534dcd9be8 100644 (file)
@@ -1,8 +1,9 @@
 ; This fails because the linker renames the non-opaque type not the opaque 
 ; one...
 
-; RUN: echo "implementation linkonce void %foo() { ret void } " | llvm-as > %t.2.bc
-; RUN: llvm-as < %s > %t.1.bc
+; RUN: echo "implementation linkonce void %foo() { ret void } " | llvm-upgrade|\
+; RUN:    llvm-as -o %t.2.bc -f
+; RUN: llvm-upgrade < %s | llvm-as -o %t.1.bc -f
 ; RUN: llvm-link %t.[12].bc | llvm-dis | grep foo | grep linkonce
 
 declare void %foo()
index 54d0a6fa2426997a9cf6f6362e15a45faa9bdb4e..5e90682dc194750cfbd99e4e5ec3c24a57720993 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: llvm-as < %s > %t.out1.bc
-; RUN: echo "%S = type int" | llvm-as > %t.out2.bc
+; RUN: llvm-upgrade < %s | llvm-as > %t.out1.bc
+; RUN: echo "%S = type int" | llvm-upgrade | llvm-as > %t.out2.bc
 ; RUN: llvm-link %t.out[21].bc
 
 %S = type opaque
index e83d232017746af41ca1e5df9f24c13da5feed11..619c8444adf88bc3dc820d79e11b24f8685fb19d 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: llvm-as < %s > %t.out1.bc
-; RUN: echo "%S = type int" | llvm-as > %t.out2.bc
+; RUN: llvm-upgrade < %s | llvm-as > %t.out1.bc
+; RUN: echo "%S = type int" | llvm-upgrade | llvm-as > %t.out2.bc
 ; RUN: llvm-link %t.out[21].bc
 
 %S = type opaque
index 31900998442827059dcd03cc512a5e7495088936..40023fd6603c8740234b08abcc3777583ca8e0f6 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: llvm-as < %s > %t.out1.bc
-; RUN: echo "%S = type int" | llvm-as > %t.out2.bc
+; RUN: llvm-upgrade < %s | llvm-as > %t.out1.bc
+; RUN: echo "%S = type int" | llvm-upgrade | llvm-as > %t.out2.bc
 ; RUN: llvm-link %t.out[21].bc
 
 %S = type opaque
index 94ce3d02c00fbef63160824b83db1577b06b4fd1..94c5af0f958592c712a8a6e2ddb743895461a645 100644 (file)
@@ -1,5 +1,6 @@
-; RUN: llvm-as -f < %s > %t1.bc
-; RUN: llvm-as -f < `dirname %s`/2004-05-07-TypeResolution2.ll > %t2.bc
+; RUN: llvm-upgrade < %s | llvm-as -f -o %t1.bc
+; RUN: llvm-upgrade < `dirname %s`/2004-05-07-TypeResolution2.ll | \
+; RUN:    llvm-as -o %t2.bc -f
 ; RUN: llvm-link -f -o %t3.bc %t1.bc %t2.bc
 
 target endian = little
index 4126b8882b6ce29af71c0b6d7b56454fe303faaf..84c09d81a3c8f2dbb9cfdadf28377fec9afe0ff6 100644 (file)
@@ -1,7 +1,8 @@
 ; Test that appending linkage works correctly.
 
-; 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 | \
+; RUN:    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 4 | grep 8
 
 %X = appending global [2 x int] [int 7, int 4]
index 91d983374d3a4ac3ae91d9d799df397f51e62f4a..ccdd5f3b0be1198123fef8974b2456f4dfe1a95d 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: llvm-as < %s > %t.bc
-; RUN: llvm-as < `dirname %s`/testlink2.ll > %t2.bc
+; RUN: llvm-upgrade < %s | llvm-as > %t.bc
+; RUN: llvm-upgrade < `dirname %s`/testlink2.ll | llvm-as > %t2.bc
 ; RUN: llvm-link %t.bc %t2.bc
 
 %MyVar     = external global int
index 4eae83eaa1ee9ba5d60b8bfc4dbe6a87e70a6249..0c0e2afde4468231f074871ac400cd6b0be92df7 100644 (file)
@@ -1,4 +1,4 @@
-; RUN:  llvm-as < %s | opt -adce
+; RUN:  llvm-upgrade < %s | llvm-as | opt -adce
 
 void "test"()
 begin
index b584539339986b2914ba3af5d1af46351e4c1a6f..4d2a29b22bc7eac964b1edb0ef86c6669124ef92 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | opt -indvars -disable-output
+; RUN: llvm-upgrade < %s | llvm-as | opt -indvars -disable-output
 
 target datalayout = "e-p:32:32"
 target endian = little
index ca552a5d875b3c190de21273ba1df8126fdd9406..4661dfe55bb9bab4fd770bafc3c6d379c6a469ec 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep zext
+; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | grep zext
 
 ; Never merge these two conversions, even though it's possible: this is
 ; significantly more expensive than the two conversions on some targets
index f7cf7e890a5472947f5846213d13a54c69cbd79c..30ea4ee445abfc253a7baa20ecb8c94d462b6f06 100644 (file)
@@ -1,5 +1,8 @@
-; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep 'icmp' | wc -l | grep 1
-; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep 'icmp ugt' | wc -l | grep 1
+; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
+; RUN:   grep 'icmp' | wc -l | grep 1
+; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
+; RUN:   grep 'icmp ugt' | wc -l | grep 1
+;
 ; ModuleID = 'bugpoint-tooptimize.bc'
 target datalayout = "e-p:32:32"
 target endian = little
index 80e31a727d1fae1f05fd5a1a665a9efa3cd4a81c..b9881e3624ba42636d41e5f4d1703aa8cab34349 100644 (file)
@@ -1,6 +1,6 @@
 ; For PR1065. This causes an assertion in instcombine if a select with two cmp
 ; operands is encountered.
-; RUN: llvm-as < %s | opt -instcombine -disable-output
+; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine -disable-output
 ; ModuleID = 'PR1065.bc'
 target datalayout = "e-p:32:32"
 target endian = little
index fae0ce3d42cab2e8909aabd4b630a0e801530af0..bfd41a87fc78f35e346c112ff4aa6d0cd55770fe 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep shl
+; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | grep shl
 
 bool %test(int %X, ubyte %A) {
        %B = lshr int %X, ubyte %A
index f9176c9829cca49c90a4f2eb37a726c0af6d454b..d26b0570d3c0a496fea6bd595885b0af8d0c1d73 100644 (file)
@@ -2,7 +2,7 @@
 ; LevelRaise should eliminate all cast instructions from this testcase.
 ;
 ; XFAIL: *
-; RUN: llvm-as < %s | opt -raise | llvm-dis | notcast
+; RUN: llvm-upgrade < %s | llvm-as | opt -raise | llvm-dis | notcast
 
        %Hash = type { { uint, sbyte *, \2 } * *, int (uint) *, int } *
        %hash = type { { uint, sbyte *, \2 } * *, int (uint) *, int }
index 7ab14366eb51708b7c268dc480fff6ae48dc0c7c..388b9abb29f9e5d72d079a3525558f9b34eabc04 100644 (file)
@@ -1,4 +1,5 @@
-; RUN: llvm-as < %s | opt -sccp | llvm-dis | grep 'ret bool false'
+; RUN: llvm-upgrade < %s | llvm-as | opt -sccp | llvm-dis | \
+; RUN:   grep 'ret bool false'
 
 bool %foo() {
        %X = and bool false, undef
index dbabe299959f312bd9a9082c7a991c2eaeb801ac..0b87a63e399d6161f1687706491bddcab06e1699 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | opt -scalarrepl -disable-output
+; RUN: llvm-upgrade < %s | llvm-as | opt -scalarrepl -disable-output
 ; PR1045
 
 target datalayout = "e-p:32:32"
index 845530d0b0354db82b456d3b9762371077c91a09..2063d9f4ae132a4a4a0163992b7d7754825c00ae 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | opt -simplifycfg | llvm-dis
+; RUN: llvm-upgrade < %s | llvm-as | opt -simplifycfg | llvm-dis
 ; ModuleID = 'bugpoint-tooptimize.bc'
 target datalayout = "e-p:32:32"
 target endian = little