Convert test cases to new llvm.exp version of llvm_runtest and fix tests

that it found to be broken.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36009 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Spencer 2007-04-14 19:27:03 +00:00
parent 6f254906c5
commit 4b3fd6c010
6 changed files with 13 additions and 7 deletions

View File

@ -1,4 +1,5 @@
; RUN: llvm-as < %s | opt -load-vn -gcse -instcombine | llvm-dis | not grep load ; RUN: llvm-upgrade < %s | llvm-as | opt -load-vn -gcse -instcombine | \
; RUN: llvm-dis | not grep load
%X = constant [2 x int] [int 4, int 5] %X = constant [2 x int] [int 4, int 5]

View File

@ -1,4 +1,4 @@
; RUN: llvm-upgrade < %s | llvm-as | opt -dse | llvm-dis | grep 'store i32 0' ; RUN: llvm-upgrade < %s | llvm-as | opt -dse | llvm-dis | grep {store i32 0}
void %test({int,int }* %P) { void %test({int,int }* %P) {
%Q = getelementptr {int,int}* %P, int 1 %Q = getelementptr {int,int}* %P, int 1

View File

@ -1,4 +1,5 @@
; RUN: llvm-upgrade < %s | llvm-as | opt -basicaa -load-vn -gcse -instcombine | llvm-dis | grep 'load i32\* %A' ; RUN: llvm-upgrade < %s | llvm-as | opt -basicaa -load-vn -gcse -instcombine |\
; RUN: llvm-dis | grep {load i32\\* %A}
declare double* %useit(int*) declare double* %useit(int*)

View File

@ -1,6 +1,9 @@
; RUN: llvm-as < %s | opt -basicaa -load-vn -gcse -instcombine | llvm-dis | grep 'sub i32' &&
; RUN: llvm-as < %s | opt -basicaa -load-vn -gcse -instcombine | llvm-dis | not grep 'ret i32 0'
; PR1109 ; PR1109
; RUN: llvm-as < %s | opt -basicaa -load-vn -gcse -instcombine | llvm-dis | \
; RUN: grep {sub i32}
; RUN: llvm-as < %s | opt -basicaa -load-vn -gcse -instcombine | llvm-dis | \
; RUN: not grep {ret i32 0}
; END.
target datalayout = "e-p:32:32" target datalayout = "e-p:32:32"
target triple = "i686-apple-darwin8" target triple = "i686-apple-darwin8"

View File

@ -1,3 +1,3 @@
load_lib llvm-dg.exp load_lib llvm.exp
llvm-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]] llvm-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]]

View File

@ -1,4 +1,5 @@
; RUN: llvm-upgrade < %s | llvm-as | opt -basicaa -load-vn -gcse -instcombine | llvm-dis | grep 'ret i32 0' ; RUN: llvm-upgrade < %s | llvm-as | opt -basicaa -load-vn -gcse -instcombine |\
; RUN: llvm-dis | grep {ret i32 0}
declare void %foo(int*) declare void %foo(int*)
declare void %bar() declare void %bar()