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

that it found to be broken.

llvm-svn: 36009
This commit is contained in:
Reid Spencer 2007-04-14 19:27:03 +00:00
parent 69d42ad9b6
commit 6ac77d03a8
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]

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) {
%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*)

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
; 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 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}]]

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 %bar()