summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2007-11-28 04:57:00 +0000
committerTanya Lattner <tonic@nondot.org>2007-11-28 04:57:00 +0000
commit727842e9d76680a49616083fed0e812ae209aff8 (patch)
tree022ce83bac251c30f6439d30d8e2c2098e689943 /test
parentcada245d06959831b90f8c29f92e77beda4b71cb (diff)
downloadllvm-727842e9d76680a49616083fed0e812ae209aff8.tar.gz
llvm-727842e9d76680a49616083fed0e812ae209aff8.tar.bz2
llvm-727842e9d76680a49616083fed0e812ae209aff8.tar.xz
Fix bug in regression tests that ignored stderr output in RUN lines. Updated tests and fixed broken run lines.
XFAILed 3 arm regressions (will file bugs) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44389 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Analysis/BasicAA/2007-08-01-NoAliasAndCalls.ll2
-rw-r--r--test/Analysis/BasicAA/2007-08-01-NoAliasAndGEP.ll14
-rw-r--r--test/Analysis/ScalarEvolution/2007-08-06-Unsigned.ll2
-rw-r--r--test/Assembler/2002-07-25-ParserAssertionFailure.llx2
-rw-r--r--test/Assembler/2003-04-15-ConstantInitAssertion.llx2
-rw-r--r--test/Assembler/2003-05-21-MalformedShiftCrash.llx2
-rw-r--r--test/Assembler/2003-05-21-MalformedStructCrash.llx2
-rw-r--r--test/Assembler/2003-11-24-SymbolTableCrash.llx4
-rw-r--r--test/Assembler/2003-12-30-TypeMapInvalidMemory.llx2
-rw-r--r--test/Assembler/2004-03-30-UnclosedFunctionCrash.llx2
-rw-r--r--test/Assembler/2006-05-26-VarargsCallEncode.ll11
-rw-r--r--test/Assembler/2006-09-28-CrashOnInvalid.ll2
-rw-r--r--test/Assembler/2007-01-02-Undefined-Arg-Type.ll2
-rw-r--r--test/Assembler/2007-01-16-CrashOnBadCast.ll2
-rw-r--r--test/Assembler/2007-01-16-CrashOnBadCast2.ll2
-rw-r--r--test/Assembler/2007-01-21-UpgradeNoArgs.ll2
-rw-r--r--test/Assembler/2007-01-22-UpgradeMalformedShift.ll2
-rw-r--r--test/Assembler/2007-01-22-UpgradeMalformedStruct.ll2
-rw-r--r--test/Assembler/2007-01-22-UpgradeTypeMapInvalidMemory.ll2
-rw-r--r--test/Assembler/2007-03-18-InvalidNumberedVar.ll2
-rw-r--r--test/Assembler/2007-04-15-BadIntrinsic.ll2
-rw-r--r--test/Assembler/2007-04-20-AlignedStore.ll2
-rw-r--r--test/Assembler/2007-08-06-AliasInvalid.ll2
-rw-r--r--test/CFrontend/2006-09-21-IncompleteElementType.c2
-rw-r--r--test/CFrontend/2007-10-01-BuildArrayRef.c2
-rw-r--r--test/CodeGen/ARM/2007-03-13-InstrSched.ll1
-rw-r--r--test/CodeGen/ARM/fp.ll1
-rw-r--r--test/CodeGen/ARM/lsr-code-insertion.ll2
-rw-r--r--test/ExecutionEngine/2004-12-04-LazyCompileFuncs.ll42
-rw-r--r--test/lib/llvm.exp4
30 files changed, 60 insertions, 63 deletions
diff --git a/test/Analysis/BasicAA/2007-08-01-NoAliasAndCalls.ll b/test/Analysis/BasicAA/2007-08-01-NoAliasAndCalls.ll
index 072bfd9fe9..bbcee84793 100644
--- a/test/Analysis/BasicAA/2007-08-01-NoAliasAndCalls.ll
+++ b/test/Analysis/BasicAA/2007-08-01-NoAliasAndCalls.ll
@@ -1,4 +1,4 @@
-; RUN: llvm-as %s -o - | opt -basicaa -aa-eval -print-all-alias-modref-info -disable-output &| grep 'MayAlias: i32* %y, i32* %x'
+; RUN: llvm-as %s -o - | opt -basicaa -aa-eval -print-all-alias-modref-info -disable-output |& grep {MayAlias:.*i32\\* %y, i32\\* %x}
declare i32* @unclear(i32* %a)
diff --git a/test/Analysis/BasicAA/2007-08-01-NoAliasAndGEP.ll b/test/Analysis/BasicAA/2007-08-01-NoAliasAndGEP.ll
index 8cc9f061d9..5a2373e401 100644
--- a/test/Analysis/BasicAA/2007-08-01-NoAliasAndGEP.ll
+++ b/test/Analysis/BasicAA/2007-08-01-NoAliasAndGEP.ll
@@ -1,15 +1,15 @@
-; RUN: llvm-as %s -o - | opt -basicaa -aa-eval -print-all-alias-modref-info -disable-output &| grep '9 no alias'
-; RUN: llvm-as %s -o - | opt -basicaa -aa-eval -print-all-alias-modref-info -disable-output &| grep '6 may alias'
-; RUN: llvm-as %s -o - | opt -basicaa -aa-eval -print-all-alias-modref-info -disable-output &| grep 'MayAlias: i32* %pj, i32* %pi'
+; RUN: llvm-as %s -o - | opt -basicaa -aa-eval -print-all-alias-modref-info -disable-output |& grep {9 no alias}
+; RUN: llvm-as %s -o - | opt -basicaa -aa-eval -print-all-alias-modref-info -disable-output |& grep {6 may alias}
+; RUN: llvm-as %s -o - | opt -basicaa -aa-eval -print-all-alias-modref-info -disable-output |& grep {MayAlias:.*i32\\* %Jpointer, i32\\* %Ipointer}
define void @foo(i32* noalias %p, i32* noalias %q, i32 %i, i32 %j) {
- %pi = getelementptr i32* %p, i32 %i
+ %Ipointer = getelementptr i32* %p, i32 %i
%qi = getelementptr i32* %q, i32 %i
- %pj = getelementptr i32* %p, i32 %j
+ %Jpointer = getelementptr i32* %p, i32 %j
%qj = getelementptr i32* %q, i32 %j
store i32 0, i32* %p
- store i32 0, i32* %pi
- store i32 0, i32* %pj
+ store i32 0, i32* %Ipointer
+ store i32 0, i32* %Jpointer
store i32 0, i32* %q
store i32 0, i32* %qi
store i32 0, i32* %qj
diff --git a/test/Analysis/ScalarEvolution/2007-08-06-Unsigned.ll b/test/Analysis/ScalarEvolution/2007-08-06-Unsigned.ll
index 30514724d9..32e580e047 100644
--- a/test/Analysis/ScalarEvolution/2007-08-06-Unsigned.ll
+++ b/test/Analysis/ScalarEvolution/2007-08-06-Unsigned.ll
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | opt -scalar-evolution -analyze |& grep "Loop bb: ( -1 + ( -1 * %x) + %y) iterations!"
+; RUN: llvm-as < %s | opt -scalar-evolution -analyze |& grep {Loop bb: ( -1 + ( -1 \\* %x) + %y) iterations!}
; PR1597
define i32 @f(i32 %x, i32 %y) {
diff --git a/test/Assembler/2002-07-25-ParserAssertionFailure.llx b/test/Assembler/2002-07-25-ParserAssertionFailure.llx
index ccfc380b75..57ca2ffeb5 100644
--- a/test/Assembler/2002-07-25-ParserAssertionFailure.llx
+++ b/test/Assembler/2002-07-25-ParserAssertionFailure.llx
@@ -1,6 +1,6 @@
; Make sure we don't get an assertion failure, even though this is a parse
; error
-; RUN: llvm-as < %s -o /dev/null -f |& grep {No arguments}
+; RUN: not llvm-as < %s -o /dev/null -f |& grep {No arguments}
%ty = type void (i32)
diff --git a/test/Assembler/2003-04-15-ConstantInitAssertion.llx b/test/Assembler/2003-04-15-ConstantInitAssertion.llx
index 58b8bcaca1..66b80de348 100644
--- a/test/Assembler/2003-04-15-ConstantInitAssertion.llx
+++ b/test/Assembler/2003-04-15-ConstantInitAssertion.llx
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s >/dev/null |& grep {Expected type 'i32' for element #0}
+; RUN: not llvm-as < %s >/dev/null |& grep {Expected type 'i32' for element #0}
; Test the case of a misformed constant initializer
; This should cause an assembler error, not an assertion failure!
constant { i32 } { float 1.0 }
diff --git a/test/Assembler/2003-05-21-MalformedShiftCrash.llx b/test/Assembler/2003-05-21-MalformedShiftCrash.llx
index 33e20e384c..d573403a13 100644
--- a/test/Assembler/2003-05-21-MalformedShiftCrash.llx
+++ b/test/Assembler/2003-05-21-MalformedShiftCrash.llx
@@ -1,4 +1,4 @@
; Found by inspection of the code
-; RUN: llvm-as < %s > /dev/null |& grep {Logical operator requires integral}
+; RUN: not llvm-as < %s > /dev/null |& grep {Logical operator requires integral}
global i32 ashr (float 1.0, float 2.0)
diff --git a/test/Assembler/2003-05-21-MalformedStructCrash.llx b/test/Assembler/2003-05-21-MalformedStructCrash.llx
index 91b0c9e064..bf930350ef 100644
--- a/test/Assembler/2003-05-21-MalformedStructCrash.llx
+++ b/test/Assembler/2003-05-21-MalformedStructCrash.llx
@@ -1,4 +1,4 @@
; Found by inspection of the code
-; RUN: llvm-as < %s > /dev/null |& grep {Illegal number of init}
+; RUN: not llvm-as < %s > /dev/null |& grep {Illegal number of init}
global {} { i32 7, float 1.0, i32 7, i32 8 }
diff --git a/test/Assembler/2003-11-24-SymbolTableCrash.llx b/test/Assembler/2003-11-24-SymbolTableCrash.llx
index 9557d291d3..4b2cbdcc03 100644
--- a/test/Assembler/2003-11-24-SymbolTableCrash.llx
+++ b/test/Assembler/2003-11-24-SymbolTableCrash.llx
@@ -1,5 +1,5 @@
-; RUN: llvm-as < %s |& not grep Asserti
-; RUN: llvm-as < %s |& grep Redefinition
+; RUN: not llvm-as < %s |& not grep Asserti
+; RUN: not llvm-as < %s |& grep Redefinition
define void @test() {
%tmp.1 = add i32 0, 1
diff --git a/test/Assembler/2003-12-30-TypeMapInvalidMemory.llx b/test/Assembler/2003-12-30-TypeMapInvalidMemory.llx
index cffee6dda3..a0f99c63d8 100644
--- a/test/Assembler/2003-12-30-TypeMapInvalidMemory.llx
+++ b/test/Assembler/2003-12-30-TypeMapInvalidMemory.llx
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s -o /dev/null -f |& grep {Undefined type remains}
+; RUN: not llvm-as < %s -o /dev/null -f |& grep {Undefined type remains}
; END.
@d_reduction_0_dparser_gram = global {
diff --git a/test/Assembler/2004-03-30-UnclosedFunctionCrash.llx b/test/Assembler/2004-03-30-UnclosedFunctionCrash.llx
index 292bb0cfff..62a713871b 100644
--- a/test/Assembler/2004-03-30-UnclosedFunctionCrash.llx
+++ b/test/Assembler/2004-03-30-UnclosedFunctionCrash.llx
@@ -1,3 +1,3 @@
-; RUN: llvm-as %s |& grep error
+; RUN: not llvm-as %s |& grep error
void %foo() {
diff --git a/test/Assembler/2006-05-26-VarargsCallEncode.ll b/test/Assembler/2006-05-26-VarargsCallEncode.ll
index c36bcfa220..bfa4343940 100644
--- a/test/Assembler/2006-05-26-VarargsCallEncode.ll
+++ b/test/Assembler/2006-05-26-VarargsCallEncode.ll
@@ -1,9 +1,8 @@
-; RUN: llvm-upgrade < %s | llvm-as | llvm-dis | \
-; RUN: grep {tail call void.*sret null}
+; RUN: llvm-as < %s | llvm-dis | grep {tail call void.*sret null}
-declare csretcc void %foo({}*, ...)
+declare void @foo({ }* sret , ...)
-void %bar() {
- tail call csretcc void({}*, ...)* %foo({}* null, int 0)
- ret void
+define void @bar() {
+ tail call void ({ }* sret , ...)* @foo( { }* null sret , i32 0 )
+ ret void
}
diff --git a/test/Assembler/2006-09-28-CrashOnInvalid.ll b/test/Assembler/2006-09-28-CrashOnInvalid.ll
index af1aaa3847..f77ea5c427 100644
--- a/test/Assembler/2006-09-28-CrashOnInvalid.ll
+++ b/test/Assembler/2006-09-28-CrashOnInvalid.ll
@@ -1,6 +1,6 @@
; Test for PR902. This program is erroneous, but should not crash llvm-as.
; This tests that a simple error is caught and processed correctly.
-; RUN: llvm-as < %s >/dev/null |& grep {FP constant invalid for type}
+; RUN: not llvm-as < %s >/dev/null |& grep {FP constant invalid for type}
define void @test() {
add i32 1, 2.0
diff --git a/test/Assembler/2007-01-02-Undefined-Arg-Type.ll b/test/Assembler/2007-01-02-Undefined-Arg-Type.ll
index 354db6c561..9304a389f1 100644
--- a/test/Assembler/2007-01-02-Undefined-Arg-Type.ll
+++ b/test/Assembler/2007-01-02-Undefined-Arg-Type.ll
@@ -1,5 +1,5 @@
; The assembler should catch an undefined argument type .
-; RUN: llvm-as < %s -o /dev/null -f |& grep {Reference to abstract argument}
+; RUN: not llvm-as < %s -o /dev/null -f |& grep {Reference to abstract argument}
; %typedef.bc_struct = type opaque
diff --git a/test/Assembler/2007-01-16-CrashOnBadCast.ll b/test/Assembler/2007-01-16-CrashOnBadCast.ll
index 20c9383b07..e2bb59e88b 100644
--- a/test/Assembler/2007-01-16-CrashOnBadCast.ll
+++ b/test/Assembler/2007-01-16-CrashOnBadCast.ll
@@ -1,5 +1,5 @@
; PR1117
-; RUN: llvm-as < %s -o /dev/null -f |& grep {invalid cast opcode for cast from}
+; RUN: not llvm-as < %s -o /dev/null -f |& grep {invalid cast opcode for cast from}
define i8* @nada(i64 %X) {
%result = trunc i64 %X to i8*
diff --git a/test/Assembler/2007-01-16-CrashOnBadCast2.ll b/test/Assembler/2007-01-16-CrashOnBadCast2.ll
index 41b1708b8d..ff6b5352a9 100644
--- a/test/Assembler/2007-01-16-CrashOnBadCast2.ll
+++ b/test/Assembler/2007-01-16-CrashOnBadCast2.ll
@@ -1,4 +1,4 @@
; PR1117
-; RUN: llvm-as < %s -o /dev/null -f |& grep {invalid cast opcode for cast from}
+; RUN: not llvm-as < %s -o /dev/null -f |& grep {invalid cast opcode for cast from}
@X = constant i8* trunc (i64 0 to i8*)
diff --git a/test/Assembler/2007-01-21-UpgradeNoArgs.ll b/test/Assembler/2007-01-21-UpgradeNoArgs.ll
index 5e7de73f9a..7b7ffd96fe 100644
--- a/test/Assembler/2007-01-21-UpgradeNoArgs.ll
+++ b/test/Assembler/2007-01-21-UpgradeNoArgs.ll
@@ -1,6 +1,6 @@
; Make sure we don't get an assertion failure, even though this is a parse
; error
-; RUN: llvm-upgrade < %s > /dev/null |& grep {No arguments passed to a }
+; RUN: not llvm-upgrade < %s > /dev/null |& grep {No arguments passed to a }
%ty = type void (int)
diff --git a/test/Assembler/2007-01-22-UpgradeMalformedShift.ll b/test/Assembler/2007-01-22-UpgradeMalformedShift.ll
index da72cbc6b9..2f236822d1 100644
--- a/test/Assembler/2007-01-22-UpgradeMalformedShift.ll
+++ b/test/Assembler/2007-01-22-UpgradeMalformedShift.ll
@@ -1,4 +1,4 @@
; Found by inspection of the code
-; RUN: llvm-upgrade < %s > /dev/null |& grep {Shift constant expression}
+; RUN: not llvm-upgrade < %s > /dev/null |& grep {Shift constant expression}
global int shr (float 1.0, ubyte 2)
diff --git a/test/Assembler/2007-01-22-UpgradeMalformedStruct.ll b/test/Assembler/2007-01-22-UpgradeMalformedStruct.ll
index 1636b9d85d..42c435939f 100644
--- a/test/Assembler/2007-01-22-UpgradeMalformedStruct.ll
+++ b/test/Assembler/2007-01-22-UpgradeMalformedStruct.ll
@@ -1,4 +1,4 @@
; Found by inspection of the code
-; RUN: llvm-upgrade < %s > /dev/null |& grep {Illegal number of init}
+; RUN: not llvm-upgrade < %s > /dev/null |& grep {Illegal number of init}
global {} { int 7, float 1.0, int 7, int 8 }
diff --git a/test/Assembler/2007-01-22-UpgradeTypeMapInvalidMemory.ll b/test/Assembler/2007-01-22-UpgradeTypeMapInvalidMemory.ll
index 2ad5df078e..7491e21eea 100644
--- a/test/Assembler/2007-01-22-UpgradeTypeMapInvalidMemory.ll
+++ b/test/Assembler/2007-01-22-UpgradeTypeMapInvalidMemory.ll
@@ -1,4 +1,4 @@
-; RUN: llvm-upgrade < %s -o /dev/null -f |& grep {Reference to an undef}
+; RUN: not llvm-upgrade < %s -o /dev/null -f |& grep {Reference to an undef}
; END.
%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 }
diff --git a/test/Assembler/2007-03-18-InvalidNumberedVar.ll b/test/Assembler/2007-03-18-InvalidNumberedVar.ll
index f71f93e912..8e821132d8 100644
--- a/test/Assembler/2007-03-18-InvalidNumberedVar.ll
+++ b/test/Assembler/2007-03-18-InvalidNumberedVar.ll
@@ -1,5 +1,5 @@
; PR 1258
-; RUN: llvm-as < %s >/dev/null -f |& grep {Numbered.*does not match}
+; RUN: not llvm-as < %s >/dev/null -f |& grep {Numbered.*does not match}
define i32 @test1(i32 %a, i32 %b) {
entry:
diff --git a/test/Assembler/2007-04-15-BadIntrinsic.ll b/test/Assembler/2007-04-15-BadIntrinsic.ll
index b21bd667c4..25c3540969 100644
--- a/test/Assembler/2007-04-15-BadIntrinsic.ll
+++ b/test/Assembler/2007-04-15-BadIntrinsic.ll
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s -o /dev/null -f |& grep {Call to invalid LLVM intrinsic}
+; RUN: not llvm-as < %s -o /dev/null -f |& grep {Call to invalid LLVM intrinsic}
declare i32 @llvm.foobar(i32 %foo)
diff --git a/test/Assembler/2007-04-20-AlignedStore.ll b/test/Assembler/2007-04-20-AlignedStore.ll
index c3681fc936..7d1eb0a6f6 100644
--- a/test/Assembler/2007-04-20-AlignedStore.ll
+++ b/test/Assembler/2007-04-20-AlignedStore.ll
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s |& llvm-dis | grep 'align 1024'
+; RUN: llvm-as < %s |& llvm-dis | grep {align 1024}
define void @test(i32* %arg) {
entry:
diff --git a/test/Assembler/2007-08-06-AliasInvalid.ll b/test/Assembler/2007-08-06-AliasInvalid.ll
index 0711e037a6..b54acec1c9 100644
--- a/test/Assembler/2007-08-06-AliasInvalid.ll
+++ b/test/Assembler/2007-08-06-AliasInvalid.ll
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s > /dev/null |& grep {Invalid type for reference to global}
+; RUN: not llvm-as < %s > /dev/null |& grep {Invalid type for reference to global}
; PR1577
@anInt = global i32 1 alias i32 @anAlias
diff --git a/test/CFrontend/2006-09-21-IncompleteElementType.c b/test/CFrontend/2006-09-21-IncompleteElementType.c
index 64f7501a64..a5091821cb 100644
--- a/test/CFrontend/2006-09-21-IncompleteElementType.c
+++ b/test/CFrontend/2006-09-21-IncompleteElementType.c
@@ -1,3 +1,3 @@
-// RUN: %llvmgcc %s -S -o /dev/null |& not grep {internal compiler error}
+// RUN: not %llvmgcc %s -S -o /dev/null |& not grep {internal compiler error}
struct A X[(927 - 37) / sizeof(struct A)];
diff --git a/test/CFrontend/2007-10-01-BuildArrayRef.c b/test/CFrontend/2007-10-01-BuildArrayRef.c
index fb8ee3dc1e..e903755230 100644
--- a/test/CFrontend/2007-10-01-BuildArrayRef.c
+++ b/test/CFrontend/2007-10-01-BuildArrayRef.c
@@ -1,4 +1,4 @@
-// RUN: %llvmgcc -S %s -o /dev/null |& grep "error: assignment of read-only location"
+// RUN: not %llvmgcc -S %s -o /dev/null |& grep "error: assignment of read-only location"
// PR 1603
int func()
{
diff --git a/test/CodeGen/ARM/2007-03-13-InstrSched.ll b/test/CodeGen/ARM/2007-03-13-InstrSched.ll
index 8fdff52f01..9881e5a206 100644
--- a/test/CodeGen/ARM/2007-03-13-InstrSched.ll
+++ b/test/CodeGen/ARM/2007-03-13-InstrSched.ll
@@ -1,5 +1,6 @@
; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin -relocation-model=pic \
; RUN: -mattr=+v6 -stats |& grep asm-printer | grep 41
+; XFAIL: *
define void @test(i32 %tmp56222, i32 %tmp36224, i32 %tmp46223, i32 %i.0196.0.ph, i32 %tmp8, i32* %tmp1011, i32** %tmp1, i32* %d2.1.out, i32* %d3.1.out, i32* %d0.1.out, i32* %d1.1.out) {
newFuncRoot:
diff --git a/test/CodeGen/ARM/fp.ll b/test/CodeGen/ARM/fp.ll
index 038dd42e2d..186d20a333 100644
--- a/test/CodeGen/ARM/fp.ll
+++ b/test/CodeGen/ARM/fp.ll
@@ -9,6 +9,7 @@
; RUN: grep fuitod %t
; RUN: grep fuitos %t
; RUN: grep 1065353216 %t
+; XFAIL: *
float %f(int %a) {
entry:
diff --git a/test/CodeGen/ARM/lsr-code-insertion.ll b/test/CodeGen/ARM/lsr-code-insertion.ll
index 04b856f840..507c891292 100644
--- a/test/CodeGen/ARM/lsr-code-insertion.ll
+++ b/test/CodeGen/ARM/lsr-code-insertion.ll
@@ -7,7 +7,7 @@
; add r8, r0, r6
; str r10, [r8, #+4]
;
-
+; XFAIL: *
target triple = "arm-apple-darwin8"
define void @foo(i32* %mc, i32* %mpp, i32* %ip, i32* %dpp, i32* %tpmm, i32 %M, i32* %tpim, i32* %tpdm, i32* %bp, i32* %ms, i32 %xmb) {
diff --git a/test/ExecutionEngine/2004-12-04-LazyCompileFuncs.ll b/test/ExecutionEngine/2004-12-04-LazyCompileFuncs.ll
index e266be9a7f..4f20157f39 100644
--- a/test/ExecutionEngine/2004-12-04-LazyCompileFuncs.ll
+++ b/test/ExecutionEngine/2004-12-04-LazyCompileFuncs.ll
@@ -1,33 +1,29 @@
-; RUN: llvm-upgrade %s | llvm-as -f -o %t.bc
-; RUN: lli -debug-only=jit %t.bc |& not grep {Finished CodeGen of .*Function: F}
+; RUN: llvm-as < %s -f -o %t.bc
+; RUN: not lli -debug-only=jit %t.bc |& not grep {Finished CodeGen of .*Function: F}
+@.str_1 = internal constant [7 x i8] c"IN F!\0A\00" ; <[7 x i8]*> [#uses=1]
+@.str_2 = internal constant [7 x i8] c"IN G!\0A\00" ; <[7 x i8]*> [#uses=1]
+@Ptrs = internal constant [2 x void (...)*] [ void (...)* bitcast (void ()* @F to void (...)*), void (...)* bitcast (void ()* @G to void (...)*) ] ; <[2 x void (...)*]*> [#uses=1]
-%.str_1 = internal constant [7 x sbyte] c"IN F!\0A\00" ; <[7 x sbyte]*> [#uses=1]
-%.str_2 = internal constant [7 x sbyte] c"IN G!\0A\00" ; <[7 x sbyte]*> [#uses=1]
-%Ptrs = internal constant [2 x void (...)*] [ void (...)* cast (void ()* %F to void (...)*), void (...)* cast (void ()* %G to void (...)*) ] ; <[2 x void (...)*]*> [#uses=1]
+declare i32 @printf(i8*, ...)
-implementation ; Functions:
-
-declare int %printf(sbyte*, ...)
-
-internal void %F() {
+define internal void @F() {
entry:
- %tmp.0 = call int (sbyte*, ...)* %printf( sbyte* getelementptr ([7 x sbyte]* %.str_1, int 0, int 0) ) ; <int> [#uses=0]
- ret void
+ %tmp.0 = call i32 (i8*, ...)* @printf( i8* getelementptr ([7 x i8]* @.str_1, i32 0, i32 0) ) ; <i32> [#uses=0]
+ ret void
}
-internal void %G() {
+define internal void @G() {
entry:
- %tmp.0 = call int (sbyte*, ...)* %printf( sbyte* getelementptr ([7 x sbyte]* %.str_2, int 0, int 0) ) ; <int> [#uses=0]
- ret void
+ %tmp.0 = call i32 (i8*, ...)* @printf( i8* getelementptr ([7 x i8]* @.str_2, i32 0, i32 0) ) ; <i32> [#uses=0]
+ ret void
}
-int %main(int %argc, sbyte** %argv) {
+define i32 @main(i32 %argc, i8** %argv) {
entry:
- %tmp.3 = and int %argc, 1 ; <int> [#uses=1]
- %tmp.4 = getelementptr [2 x void (...)*]* %Ptrs, int 0, int %tmp.3 ; <void (...)**> [#uses=1]
- %tmp.5 = load void (...)** %tmp.4 ; <void (...)*> [#uses=1]
- %tmp.5_c = cast void (...)* %tmp.5 to void ()* ; <void ()*> [#uses=1]
- call void %tmp.5_c( )
- ret int undef
+ %tmp.3 = and i32 %argc, 1 ; <i32> [#uses=1]
+ %tmp.4 = getelementptr [2 x void (...)*]* @Ptrs, i32 0, i32 %tmp.3 ; <void (...)**> [#uses=1]
+ %tmp.5 = load void (...)** %tmp.4 ; <void (...)*> [#uses=1]
+ %tmp.5_c = bitcast void (...)* %tmp.5 to void ()* ; <void ()*> [#uses=1]
+ call void %tmp.5_c( )
+ ret i32 undef
}
-
diff --git a/test/lib/llvm.exp b/test/lib/llvm.exp
index 2116b7a92c..05c910771a 100644
--- a/test/lib/llvm.exp
+++ b/test/lib/llvm.exp
@@ -126,8 +126,8 @@ proc RunLLVMTests { test_source_files } {
set runline "$runline$oneline "
# if its a terminating RUN: line then do substitution on the whole line
- # and then save the line.
- } elseif {[regexp {RUN: *([^&]+)(&&)?} $line match oneline suffix]} {
+ # and then save the line.
+ } elseif {[regexp {RUN: *(.+)$} $line match oneline suffix]} {
set runline "$runline$oneline"
set runline [ substitute $runline $test $tmpFile ]
set lines($numLines) $runline