Fix the syntax for these tests. Noticed by Duncan Sands.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36132 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Spencer 2007-04-16 15:00:39 +00:00
parent 90b707f51e
commit 3401c99889
17 changed files with 20 additions and 18 deletions

View File

@ -1,6 +1,6 @@
; Make sure we don't get an assertion failure, even though this is a parse ; Make sure we don't get an assertion failure, even though this is a parse
; error ; error
; RUN: llvm-as 2>&1 < %s -o /dev/null -f | grep 'No arguments' ; RUN: llvm-as < %s -o /dev/null -f |& grep 'No arguments'
%ty = type void (i32) %ty = type void (i32)

View File

@ -1,5 +1,5 @@
; RUN: llvm-upgrade < %s 2>/dev/null | llvm-as -o /dev/null -f && ; RUN: llvm-upgrade < %s 2>/dev/null | llvm-as -o /dev/null -f
; RUN: llvm-upgrade < %s 2>&1 | grep "Renaming global variable 'X' to" ; RUN: llvm-upgrade < %s |& grep {Renaming global variable 'X' to}
%X = external global uint * %X = external global uint *
%X = external global %T* %X = external global %T*

View File

@ -1,4 +1,4 @@
; RUN: llvm-as 2>&1 < %s >/dev/null | grep "Expected type 'i32' for element #0" ; RUN: llvm-as < %s >/dev/null |& grep "Expected type 'i32' for element #0"
; Test the case of a misformed constant initializer ; Test the case of a misformed constant initializer
; This should cause an assembler error, not an assertion failure! ; This should cause an assembler error, not an assertion failure!
constant { i32 } { float 1.0 } constant { i32 } { float 1.0 }

View File

@ -1,4 +1,4 @@
; Found by inspection of the code ; Found by inspection of the code
; RUN: llvm-as 2>&1 < %s > /dev/null | grep "Logical operator requires integral" ; RUN: llvm-as < %s > /dev/null |& grep "Logical operator requires integral"
global i32 ashr (float 1.0, float 2.0) global i32 ashr (float 1.0, float 2.0)

View File

@ -1,4 +1,4 @@
; Found by inspection of the code ; Found by inspection of the code
; RUN: llvm-as 2>&1 < %s > /dev/null | grep "Illegal number of init" ; RUN: llvm-as < %s > /dev/null |& grep "Illegal number of init"
global {} { i32 7, float 1.0, i32 7, i32 8 } global {} { i32 7, float 1.0, i32 7, i32 8 }

View File

@ -1,4 +1,5 @@
; RUN: llvm-as 2>&1 < %s -o /dev/null -f | grep 'Undefined type remains' ; RUN: llvm-as < %s -o /dev/null -f |& grep 'Undefined type remains'
; END.
@d_reduction_0_dparser_gram = global { @d_reduction_0_dparser_gram = global {
i32 (i8*, i8**, i32, i32, { i32 (i8*, i8**, i32, i32, {

View File

@ -1,3 +1,3 @@
; RUN: llvm-as %s 2>&1 | grep error ; RUN: llvm-as %s |& grep error
void %foo() { void %foo() {

View File

@ -1,5 +1,5 @@
; RUN: ignore llvm-as < %s -o /dev/null -f |& \ ; RUN: ignore llvm-as < %s -o /dev/null -f |& \
; RUN: grep "LLVM functions cannot return aggregate types" ; RUN: grep {LLVM functions cannot return aggregate types}
define void @test() { define void @test() {
call {} @foo() call {} @foo()

View File

@ -1,6 +1,6 @@
; Test for PR902. This program is erroneous, but should not crash llvm-as. ; Test for PR902. This program is erroneous, but should not crash llvm-as.
; This tests that a simple error is caught and processed correctly. ; This tests that a simple error is caught and processed correctly.
; RUN: llvm-as < %s 2>&1 >/dev/null | grep 'FP constant invalid for type' ; RUN: llvm-as < %s >/dev/null |& grep {FP constant invalid for type}
define void @test() { define void @test() {
add i32 1, 2.0 add i32 1, 2.0

View File

@ -1,5 +1,5 @@
; The assembler should catch an undefined argument type . ; The assembler should catch an undefined argument type .
; RUN: llvm-as < %s -o /dev/null -f 2>&1 | grep "Reference to abstract argument" ; RUN: llvm-as < %s -o /dev/null -f |& grep {Reference to abstract argument}
; %typedef.bc_struct = type opaque ; %typedef.bc_struct = type opaque

View File

@ -1,5 +1,5 @@
; PR1117 ; PR1117
; RUN: llvm-as < %s -o /dev/null -f |& grep "invalid cast opcode for cast from" ; RUN: llvm-as < %s -o /dev/null -f |& grep {invalid cast opcode for cast from}
define i8* @nada(i64 %X) { define i8* @nada(i64 %X) {
%result = trunc i64 %X to i8* %result = trunc i64 %X to i8*

View File

@ -1,4 +1,4 @@
; PR1117 ; PR1117
; RUN: llvm-as < %s -o /dev/null -f |& grep "invalid cast opcode for cast from" ; RUN: llvm-as < %s -o /dev/null -f |& grep {invalid cast opcode for cast from}
@X = constant i8* trunc (i64 0 to i8*) @X = constant i8* trunc (i64 0 to i8*)

View File

@ -1,6 +1,6 @@
; Make sure we don't get an assertion failure, even though this is a parse ; Make sure we don't get an assertion failure, even though this is a parse
; error ; error
; RUN: llvm-upgrade 2>&1 < %s > /dev/null | grep 'No arguments passed to a ' ; RUN: llvm-upgrade < %s > /dev/null |& grep {No arguments passed to a }
%ty = type void (int) %ty = type void (int)

View File

@ -1,4 +1,4 @@
; Found by inspection of the code ; Found by inspection of the code
; RUN: llvm-upgrade 2>&1 < %s > /dev/null | grep "Shift constant expression" ; RUN: llvm-upgrade < %s > /dev/null |& grep {Shift constant expression}
global int shr (float 1.0, ubyte 2) global int shr (float 1.0, ubyte 2)

View File

@ -1,4 +1,4 @@
; Found by inspection of the code ; Found by inspection of the code
; RUN: llvm-upgrade 2>&1 < %s > /dev/null | grep "Illegal number of init" ; RUN: llvm-upgrade < %s > /dev/null |& grep {Illegal number of init}
global {} { int 7, float 1.0, int 7, int 8 } global {} { int 7, float 1.0, int 7, int 8 }

View File

@ -1,4 +1,5 @@
; RUN: llvm-upgrade 2>&1 < %s -o /dev/null -f | grep 'Reference to an undef' ; RUN: 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 } %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 }

View File

@ -1,5 +1,5 @@
; PR 1258 ; PR 1258
; RUN: llvm-as < %s 2>&1 >/dev/null -f | grep "Numbered.*does not match" ; RUN: llvm-as < %s >/dev/null -f |& grep {Numbered.*does not match}
define i32 @test1(i32 %a, i32 %b) { define i32 @test1(i32 %a, i32 %b) {
entry: entry: