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,4 +1,4 @@
; RUN: opt %s -jump-threading -disable-output
; RUN: opt < %s -jump-threading -disable-output
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
target triple = "i386-apple-darwin9"
@Link = global [1 x i32] [ i32 -1 ] ; <[1 x i32]*> [#uses=2]

View File

@@ -1,4 +1,4 @@
; RUN: opt %s -jump-threading -disable-output
; RUN: opt < %s -jump-threading -disable-output
; PR2285
target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128"
target triple = "x86_64-unknown-linux-gnu"

View File

@@ -1,4 +1,4 @@
; RUN: opt %s -jump-threading | llvm-dis
; RUN: opt < %s -jump-threading | llvm-dis
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
target triple = "i386-apple-darwin9.5"

View File

@@ -1,4 +1,4 @@
; RUN: opt %s -jump-threading | llvm-dis
; RUN: opt < %s -jump-threading | llvm-dis
; PR3298
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"

View File

@@ -1,4 +1,4 @@
; RUN: opt %s -jump-threading | llvm-dis
; RUN: opt < %s -jump-threading | llvm-dis
; PR3353
define i32 @test(i8 %X) {

View File

@@ -1,6 +1,6 @@
; RUN: opt %s -jump-threading -mem2reg -instcombine -simplifycfg -S | grep {ret i32 %v1}
; RUN: opt < %s -jump-threading -mem2reg -instcombine -simplifycfg -S | grep {ret i32 %v1}
; There should be no uncond branches left.
; RUN: opt %s -jump-threading -mem2reg -instcombine -simplifycfg -S | not grep {br label}
; RUN: opt < %s -jump-threading -mem2reg -instcombine -simplifycfg -S | not grep {br label}
declare i32 @f1()
declare i32 @f2()

View File

@@ -1,6 +1,6 @@
; RUN: opt %s -jump-threading -mem2reg -instcombine -simplifycfg -S | grep {ret i32 %v1}
; RUN: opt < %s -jump-threading -mem2reg -instcombine -simplifycfg -S | grep {ret i32 %v1}
; There should be no uncond branches left.
; RUN: opt %s -jump-threading -mem2reg -instcombine -simplifycfg -S | not grep {br label}
; RUN: opt < %s -jump-threading -mem2reg -instcombine -simplifycfg -S | not grep {br label}
declare i32 @f1()
declare i32 @f2()

View File

@@ -1,6 +1,6 @@
; RUN: opt %s -jump-threading -simplifycfg -mem2reg -S | grep {ret i32 %v1}
; RUN: opt < %s -jump-threading -simplifycfg -mem2reg -S | grep {ret i32 %v1}
; There should be no uncond branches left.
; RUN: opt %s -jump-threading -simplifycfg -mem2reg -S | not grep {br label}
; RUN: opt < %s -jump-threading -simplifycfg -mem2reg -S | not grep {br label}
declare i32 @f1()
declare i32 @f2()

View File

@@ -1,4 +1,4 @@
; RUN: opt %s -jump-threading -S | not grep phi
; RUN: opt < %s -jump-threading -S | not grep phi
declare i8 @mcguffin()

View File

@@ -1,5 +1,5 @@
; There should be no phi nodes left.
; RUN: opt %s -jump-threading -simplifycfg -mem2reg -S | not grep {phi i32}
; RUN: opt < %s -jump-threading -simplifycfg -mem2reg -S | not grep {phi i32}
declare i32 @f1()
declare i32 @f2()

View File

@@ -1,4 +1,4 @@
; RUN: opt %s -jump-threading -die -S | grep icmp | count 1
; RUN: opt < %s -jump-threading -die -S | grep icmp | count 1
declare void @f1()
declare void @f2()

View File

@@ -1,4 +1,4 @@
; RUN: opt %s -jump-threading -loop-rotate -instcombine -indvars -loop-unroll -simplifycfg -S > %t
; RUN: opt < %s -jump-threading -loop-rotate -instcombine -indvars -loop-unroll -simplifycfg -S > %t
; RUN: grep {volatile store} %t | count 3
; RUN: not grep {br label} %t

View File

@@ -1,4 +1,4 @@
; RUN: opt %s -jump-threading -mem2reg -simplifycfg -S | grep {ret i32 1}
; RUN: opt < %s -jump-threading -mem2reg -simplifycfg -S | grep {ret i32 1}
; rdar://6402033
; Test that we can thread through the block with the partially redundant load (%2).

View File

@@ -1,5 +1,5 @@
; RUN: opt %s -jump-threading -S | not grep {br }
; RUN: opt %s -jump-threading -S | grep {ret i32} | count 1
; RUN: opt < %s -jump-threading -S | not grep {br }
; RUN: opt < %s -jump-threading -S | grep {ret i32} | count 1
define i32 @test(i1 %cond) {
br i1 undef, label %T1, label %F1