Change tests from "opt %s" to "opt < %s" so that opt doesn't see the

input filename so that opt doesn't print the input filename in the
output so that grep lines in the tests don't unintentionally match
strings in the input filename.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81537 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman
2009-09-11 18:01:28 +00:00
parent 597f9797fd
commit f2f6ce65b7
1273 changed files with 1366 additions and 1366 deletions

View File

@@ -1,6 +1,6 @@
; It is illegal to remove BB1 because it will mess up the PHI node!
;
; RUN: opt %s -adce -S | grep BB1
; RUN: opt < %s -adce -S | grep BB1
define i32 @test(i1 %C, i32 %A, i32 %B) {
; <label>:0

View File

@@ -4,7 +4,7 @@
; removed even though there were uses still around. Now the uses are filled
; in with a dummy value before the PHI is deleted.
;
; RUN: opt %s -adce
; RUN: opt < %s -adce
%node_t = type { double*, %node_t*, %node_t**, double**, double*, i32, i32 }

View File

@@ -1,6 +1,6 @@
; This testcase is a distilled form of: 2002-05-28-Crash.ll
; RUN: opt %s -adce
; RUN: opt < %s -adce
define float @test(i32 %i) {
%F = sitofp i32 %i to float ; <float> [#uses=1]

View File

@@ -11,7 +11,7 @@
; return !s;
;}
;
; RUN: opt %s -adce
; RUN: opt < %s -adce
define i32 @rx_bitset_empty(i32 %size, i32* %set) {
bb1:

View File

@@ -3,7 +3,7 @@
; block in this function, it would work fine, but that would be the part we
; have to fix now, wouldn't it....
;
; RUN: opt %s -adce
; RUN: opt < %s -adce
define void @foo(i8* %reg5481) {
%cast611 = bitcast i8* %reg5481 to i8** ; <i8**> [#uses=1]

View File

@@ -1,6 +1,6 @@
; This testcase was extracted from the gzip SPEC benchmark
;
; RUN: opt %s -adce
; RUN: opt < %s -adce
@bk = external global i32 ; <i32*> [#uses=2]
@hufts = external global i32 ; <i32*> [#uses=1]

View File

@@ -1,4 +1,4 @@
; RUN: opt %s -adce -disable-output
; RUN: opt < %s -adce -disable-output
define void @test() {
br label %BB3

View File

@@ -1,5 +1,5 @@
; Testcase reduced from 197.parser by bugpoint
; RUN: opt %s -adce
; RUN: opt < %s -adce
define void @conjunction_prune() {
; <label>:0

View File

@@ -2,7 +2,7 @@
; entries for it's postdominator. But I think this can only happen when the
; PHI node is dead, so we just avoid patching up dead PHI nodes.
; RUN: opt %s -adce
; RUN: opt < %s -adce
target datalayout = "e-p:32:32"

View File

@@ -1,4 +1,4 @@
; RUN: opt %s -adce -disable-output
; RUN: opt < %s -adce -disable-output
@G = external global i32* ; <i32**> [#uses=1]

View File

@@ -1,4 +1,4 @@
; RUN: opt %s -adce -disable-output
; RUN: opt < %s -adce -disable-output
target datalayout = "e-p:32:32"
%struct..CppObjTypeDesc = type { i32, i16, i16 }
%struct..TypeToken = type { i32, i16, i16 }

View File

@@ -1,4 +1,4 @@
; RUN: opt %s -adce -simplifycfg -S | not grep then:
; RUN: opt < %s -adce -simplifycfg -S | not grep then:
define void @dead_test8(i32* %data.1, i32 %idx.1) {
entry:

View File

@@ -1,4 +1,4 @@
; RUN: opt %s -adce -disable-output
; RUN: opt < %s -adce -disable-output
define void @test() {
br i1 false, label %then, label %endif

View File

@@ -1,4 +1,4 @@
; RUN: opt %s -adce -disable-output
; RUN: opt < %s -adce -disable-output
define i32 @main() {
br label %loop

View File

@@ -1,4 +1,4 @@
; RUN: opt %s -adce -simplifycfg -S | grep call
; RUN: opt < %s -adce -simplifycfg -S | grep call
declare void @exit(i32)
define i32 @main(i32 %argc) {

View File

@@ -1,4 +1,4 @@
; RUN: opt %s -adce -disable-output
; RUN: opt < %s -adce -disable-output
define void @test() {
entry:

View File

@@ -1,4 +1,4 @@
; RUN: opt %s -adce -disable-output
; RUN: opt < %s -adce -disable-output
declare void @strlen()

View File

@@ -1,4 +1,4 @@
; RUN: opt %s -adce -simplifycfg | llvm-dis
; RUN: opt < %s -adce -simplifycfg | llvm-dis
define i32 @Test(i32 %A, i32 %B) {
BB1:

View File

@@ -1,4 +1,4 @@
; RUN: opt %s -adce -simplifycfg | llvm-dis
; RUN: opt < %s -adce -simplifycfg | llvm-dis
%FILE = type { i32, i8*, i8*, i8, i8, i32, i32, i32 }
%spec_fd_t = type { i32, i32, i32, i8* }
@__iob = external global [20 x %FILE] ; <[20 x %FILE]*> [#uses=1]

View File

@@ -1,4 +1,4 @@
; RUN: opt %s -adce -simplifycfg | llvm-dis
; RUN: opt < %s -adce -simplifycfg | llvm-dis
%FILE = type { i32, i8*, i8*, i8, i8, i32, i32, i32 }
%spec_fd_t = type { i32, i32, i32, i8* }
@__iob = external global [20 x %FILE] ; <[20 x %FILE]*> [#uses=1]

View File

@@ -1,4 +1,4 @@
; RUN: opt %s -adce -S | grep null
; RUN: opt < %s -adce -S | grep null
declare i32 @strlen(i8*) readnone

View File

@@ -1,4 +1,4 @@
; RUN: opt %s -adce -disable-output
; RUN: opt < %s -adce -disable-output
define void @test() {
unreachable