diff options
Diffstat (limited to 'test/Assembler')
-rw-r--r-- | test/Assembler/2002-07-25-ParserAssertionFailure.ll | 2 | ||||
-rw-r--r-- | test/Assembler/2003-04-15-ConstantInitAssertion.ll | 2 | ||||
-rw-r--r-- | test/Assembler/2003-05-21-MalformedShiftCrash.ll | 2 | ||||
-rw-r--r-- | test/Assembler/2003-05-21-MalformedStructCrash.ll | 2 | ||||
-rw-r--r-- | test/Assembler/2003-11-24-SymbolTableCrash.ll | 3 | ||||
-rw-r--r-- | test/Assembler/2003-12-30-TypeMapInvalidMemory.ll | 2 | ||||
-rw-r--r-- | test/Assembler/2004-03-30-UnclosedFunctionCrash.ll | 4 | ||||
-rw-r--r-- | test/Assembler/2004-11-28-InvalidTypeCrash.ll | 3 | ||||
-rw-r--r-- | test/Assembler/2006-09-28-CrashOnInvalid.ll | 2 | ||||
-rw-r--r-- | test/Assembler/2007-01-02-Undefined-Arg-Type.ll | 2 | ||||
-rw-r--r-- | test/Assembler/2007-03-18-InvalidNumberedVar.ll | 2 | ||||
-rw-r--r-- | test/Assembler/2007-08-06-AliasInvalid.ll | 6 | ||||
-rw-r--r-- | test/Assembler/2007-12-11-AddressSpaces.ll | 6 | ||||
-rw-r--r-- | test/Assembler/2008-02-18-IntPointerCrash.ll | 2 |
14 files changed, 20 insertions, 20 deletions
diff --git a/test/Assembler/2002-07-25-ParserAssertionFailure.ll b/test/Assembler/2002-07-25-ParserAssertionFailure.ll index e1fa9346be..29c7c02ff8 100644 --- a/test/Assembler/2002-07-25-ParserAssertionFailure.ll +++ b/test/Assembler/2002-07-25-ParserAssertionFailure.ll @@ -1,6 +1,6 @@ ; Make sure we don't get an assertion failure, even though this is a parse ; error -; RUN: not llvm-as %s -o /dev/null -f |& grep {No arguments} +; RUN: not llvm-as %s -o /dev/null -f |& grep {'@foo' defined with} %ty = type void (i32) diff --git a/test/Assembler/2003-04-15-ConstantInitAssertion.ll b/test/Assembler/2003-04-15-ConstantInitAssertion.ll index 66b80de348..e0121688dc 100644 --- a/test/Assembler/2003-04-15-ConstantInitAssertion.ll +++ b/test/Assembler/2003-04-15-ConstantInitAssertion.ll @@ -1,4 +1,4 @@ -; RUN: not llvm-as < %s >/dev/null |& grep {Expected type 'i32' for element #0} +; RUN: not llvm-as < %s >/dev/null |& grep {constant expression type mismatch} ; 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.ll b/test/Assembler/2003-05-21-MalformedShiftCrash.ll index d573403a13..c661f7c077 100644 --- a/test/Assembler/2003-05-21-MalformedShiftCrash.ll +++ b/test/Assembler/2003-05-21-MalformedShiftCrash.ll @@ -1,4 +1,4 @@ ; Found by inspection of the code -; RUN: not llvm-as < %s > /dev/null |& grep {Logical operator requires integral} +; RUN: not llvm-as < %s > /dev/null |& grep {constexpr requires integer or integer vector operands} global i32 ashr (float 1.0, float 2.0) diff --git a/test/Assembler/2003-05-21-MalformedStructCrash.ll b/test/Assembler/2003-05-21-MalformedStructCrash.ll index bf930350ef..1efb57704e 100644 --- a/test/Assembler/2003-05-21-MalformedStructCrash.ll +++ b/test/Assembler/2003-05-21-MalformedStructCrash.ll @@ -1,4 +1,4 @@ ; Found by inspection of the code -; RUN: not llvm-as < %s > /dev/null |& grep {Illegal number of init} +; RUN: not llvm-as < %s > /dev/null |& grep {constant expression type mismatch} global {} { i32 7, float 1.0, i32 7, i32 8 } diff --git a/test/Assembler/2003-11-24-SymbolTableCrash.ll b/test/Assembler/2003-11-24-SymbolTableCrash.ll index 4b2cbdcc03..041b0d94c4 100644 --- a/test/Assembler/2003-11-24-SymbolTableCrash.ll +++ b/test/Assembler/2003-11-24-SymbolTableCrash.ll @@ -1,5 +1,4 @@ -; RUN: not llvm-as < %s |& not grep Asserti -; RUN: not llvm-as < %s |& grep Redefinition +; RUN: not llvm-as < %s |& grep {multiple definition} define void @test() { %tmp.1 = add i32 0, 1 diff --git a/test/Assembler/2003-12-30-TypeMapInvalidMemory.ll b/test/Assembler/2003-12-30-TypeMapInvalidMemory.ll index db39490d5a..bdb4d54685 100644 --- a/test/Assembler/2003-12-30-TypeMapInvalidMemory.ll +++ b/test/Assembler/2003-12-30-TypeMapInvalidMemory.ll @@ -1,4 +1,4 @@ -; RUN: not llvm-as %s -o /dev/null -f |& grep {Undefined type remains} +; RUN: not llvm-as %s -o /dev/null -f |& grep {use of undefined type named 'struct.D_Scope'} ; END. @d_reduction_0_dparser_gram = global { diff --git a/test/Assembler/2004-03-30-UnclosedFunctionCrash.ll b/test/Assembler/2004-03-30-UnclosedFunctionCrash.ll index 62a713871b..775b7558f3 100644 --- a/test/Assembler/2004-03-30-UnclosedFunctionCrash.ll +++ b/test/Assembler/2004-03-30-UnclosedFunctionCrash.ll @@ -1,3 +1,3 @@ -; RUN: not llvm-as %s |& grep error +; RUN: not llvm-as %s |& grep {found end of file when expecting more instructions} -void %foo() { +define void @foo() { diff --git a/test/Assembler/2004-11-28-InvalidTypeCrash.ll b/test/Assembler/2004-11-28-InvalidTypeCrash.ll index 5f800774fa..6f264393a5 100644 --- a/test/Assembler/2004-11-28-InvalidTypeCrash.ll +++ b/test/Assembler/2004-11-28-InvalidTypeCrash.ll @@ -1,5 +1,4 @@ ; Test for PR463. This program is erroneous, but should not crash llvm-as. -; RUN: not llvm-as %s -o /dev/null -f |& \ -; RUN: grep {Cannot create a null initialized value of this type} +; RUN: not llvm-as %s -o /dev/null -f |& grep {invalid type for null constant} @.FOO = internal global %struct.none zeroinitializer diff --git a/test/Assembler/2006-09-28-CrashOnInvalid.ll b/test/Assembler/2006-09-28-CrashOnInvalid.ll index f77ea5c427..a203c6ad03 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: not llvm-as < %s >/dev/null |& grep {FP constant invalid for type} +; RUN: not llvm-as < %s >/dev/null |& grep {floating point 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 9521b43897..1962ae70c0 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: not llvm-as %s -o /dev/null -f |& grep {Reference to abstract argument} +; RUN: not llvm-as %s -o /dev/null -f |& grep {use of undefined type named 'typedef.bc_struct'} ; %typedef.bc_struct = type opaque diff --git a/test/Assembler/2007-03-18-InvalidNumberedVar.ll b/test/Assembler/2007-03-18-InvalidNumberedVar.ll index 8e821132d8..12bac61124 100644 --- a/test/Assembler/2007-03-18-InvalidNumberedVar.ll +++ b/test/Assembler/2007-03-18-InvalidNumberedVar.ll @@ -1,5 +1,5 @@ ; PR 1258 -; RUN: not llvm-as < %s >/dev/null -f |& grep {Numbered.*does not match} +; RUN: not llvm-as < %s >/dev/null -f |& grep {'%0' defined with type 'i1'} define i32 @test1(i32 %a, i32 %b) { entry: diff --git a/test/Assembler/2007-08-06-AliasInvalid.ll b/test/Assembler/2007-08-06-AliasInvalid.ll index b54acec1c9..9409598246 100644 --- a/test/Assembler/2007-08-06-AliasInvalid.ll +++ b/test/Assembler/2007-08-06-AliasInvalid.ll @@ -1,7 +1,9 @@ -; RUN: not llvm-as < %s > /dev/null |& grep {Invalid type for reference to global} +; RUN: not llvm-as < %s > /dev/null |& grep {expected top-level entity} ; PR1577 -@anInt = global i32 1 alias i32 @anAlias +@anInt = global i32 1 +alias i32 @anAlias + define i32 @main() { ret i32 0 } diff --git a/test/Assembler/2007-12-11-AddressSpaces.ll b/test/Assembler/2007-12-11-AddressSpaces.ll index 16d01307f3..0eb4a79730 100644 --- a/test/Assembler/2007-12-11-AddressSpaces.ll +++ b/test/Assembler/2007-12-11-AddressSpaces.ll @@ -5,9 +5,9 @@ ; RUN: llvm-as < %s | llvm-dis | grep {addrspace(22)} | count 5 %struct.mystruct = type { i32, i32 addrspace(33)*, i32, i32 addrspace(33)* } -@input = weak global %struct.mystruct zeroinitializer addrspace(42) ; <%struct.mystruct addrspace(42)*> [#uses=1] -@output = global %struct.mystruct zeroinitializer addrspace(66) ; <%struct.mystruct addrspace(66)*> [#uses=1] -@y = external global i32 addrspace(11)* addrspace(22)* addrspace(33) ; <i32 addrspace(11)* addrspace(22)* addrspace(33)*> [#uses=1] +@input = weak addrspace(42) global %struct.mystruct zeroinitializer ; <%struct.mystruct addrspace(42)*> [#uses=1] +@output = addrspace(66) global %struct.mystruct zeroinitializer ; <%struct.mystruct addrspace(66)*> [#uses=1] +@y = external addrspace(33) global i32 addrspace(11)* addrspace(22)* ; <i32 addrspace(11)* addrspace(22)* addrspace(33)*> [#uses=1] define void @foo() { entry: diff --git a/test/Assembler/2008-02-18-IntPointerCrash.ll b/test/Assembler/2008-02-18-IntPointerCrash.ll index 69632ae85c..5a661ad9b9 100644 --- a/test/Assembler/2008-02-18-IntPointerCrash.ll +++ b/test/Assembler/2008-02-18-IntPointerCrash.ll @@ -1,4 +1,4 @@ -; RUN: not llvm-as %s |& grep {is invalid or} +; RUN: not llvm-as %s |& grep {integer constant must have integer type} ; PR2060 define i8* @foo() { |