Tests: rewrite 'opt ... %s' to 'opt ... < %s' so that opt does not emit a ModuleID

This is done to avoid odd test failures, like the one fixed in r171243.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171250 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dmitri Gribenko 2012-12-30 02:33:22 +00:00
parent 979aff6399
commit a6542923b8
27 changed files with 30 additions and 30 deletions

View File

@ -1,4 +1,4 @@
; RUN: opt -verify -disable-output %s
; RUN: opt -verify -disable-output < %s
; This tests that we handle unreachable blocks correctly
define void @f() {

View File

@ -1,4 +1,4 @@
; RUN: opt -regions %s
; RUN: opt -regions < %s
define i32 @main() nounwind {
entry:
br label %for.cond

View File

@ -1,4 +1,4 @@
; RUN: opt -indvars %s
; RUN: opt -indvars < %s
; PR9424: Attempt to use a SCEVCouldNotCompute object!
; The inner loop computes the Step and Start of the outer loop.
; Call that Vexit. The outer End value is max(2,Vexit), because

View File

@ -1,5 +1,5 @@
; RUN: llc < %s -mtriple=i686-linux -mcpu=corei7 | FileCheck %s
; RUN: opt -instsimplify %s -disable-output
; RUN: opt -instsimplify -disable-output < %s
;CHECK: SHUFF0
define <8 x i32*> @SHUFF0(<4 x i32*> %ptrv) nounwind {

View File

@ -1,5 +1,5 @@
; RUN: llc < %s -march=x86 -mcpu=corei7-avx | FileCheck %s
; RUN: opt -instsimplify %s -disable-output
; RUN: opt -instsimplify -disable-output < %s
;CHECK: AGEP0:
define <4 x i32*> @AGEP0(i32* %ptr) nounwind {

View File

@ -1,5 +1,5 @@
; RUN: opt -instcombine -S -o - %s | llvm-as
; RUN: opt -instcombine -globalopt -S -o - %s | llvm-as
; RUN: opt -instcombine -S < %s | llvm-as
; RUN: opt -instcombine -globalopt -S < %s | llvm-as
@G1 = global i32 zeroinitializer
@G2 = global i32 zeroinitializer
@g = global <2 x i32*> zeroinitializer

View File

@ -1,5 +1,5 @@
; rdar://7879828
; RUN: opt -inline -argpromotion %s
; RUN: opt -inline -argpromotion < %s
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-n8:16:32:64"
target triple = "x86_64-apple-darwin10.0.0"

View File

@ -1,4 +1,4 @@
; RUN: opt -no-aa -gvn -S %s
; RUN: opt -no-aa -gvn -S < %s
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-n8:16:32:64"
target triple = "x86_64-unknown-freebsd8.0"

View File

@ -1,4 +1,4 @@
; RUN: opt -gvn %s -disable-output
; RUN: opt -gvn -disable-output < %s
; PR5631

View File

@ -1,5 +1,5 @@
; PR6422
; RUN: opt -globalopt -S %s
; RUN: opt -globalopt -S < %s
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 -globalopt -S %s
; RUN: opt -globalopt -S < %s
; PR6435
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 -globalopt -disable-output %s
; RUN: opt -globalopt -disable-output < %s
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-n8:16:32"
target triple = "i386-apple-darwin9.8"

View File

@ -1,4 +1,4 @@
; RUN: opt -indvars %s -disable-output
; RUN: opt -indvars -disable-output < %s
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-n8:16:32:64"
declare i32 @putchar(i8) nounwind

View File

@ -1,4 +1,4 @@
; RUN: opt -inline -scalarrepl -max-cg-scc-iterations=1 %s -disable-output
; RUN: opt -inline -scalarrepl -max-cg-scc-iterations=1 -disable-output < %s
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-n8:16:32:64"
target triple = "x86_64-apple-darwin10.3"

View File

@ -1,5 +1,5 @@
; RUN: opt -instcombine %s -disable-output
; RUN: opt -instsimplify %s -disable-output
; RUN: opt -instcombine -disable-output < %s
; RUN: opt -instsimplify -disable-output < %s
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-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

View File

@ -1,4 +1,4 @@
;RUN: opt -instsimplify %s -disable-output
;RUN: opt -instsimplify -disable-output < %s
declare void @helper(<2 x i8*>)
define void @test(<2 x i8*> %a) {
%A = getelementptr <2 x i8*> %a, <2 x i32> <i32 0, i32 0>

View File

@ -1,4 +1,4 @@
; RUN: opt -jump-threading -disable-output %s
; RUN: opt -jump-threading -disable-output < %s
; PR9112
; This is actually a test for value tracking. Jump threading produces

View File

@ -1,4 +1,4 @@
; RUN: opt -licm %s -disable-output
; RUN: opt -licm -disable-output < %s
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-n8:16:32:64"
target triple = "x86_64-apple-darwin10.0.0"

View File

@ -1,4 +1,4 @@
; RUN: opt -loop-rotate %s -disable-output -verify-dom-info -verify-loop-info
; RUN: opt -loop-rotate -disable-output -verify-dom-info -verify-loop-info < %s
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-n8:16:32:64"
target triple = "x86_64-apple-darwin10.0.0"

View File

@ -1,4 +1,4 @@
; RUN: opt -loop-reduce -disable-output -debug-only=loop-reduce %s 2> %t
; RUN: opt -loop-reduce -disable-output -debug-only=loop-reduce < %s 2> %t
; RUN: FileCheck %s < %t
; REQUIRES: asserts
;

View File

@ -1,4 +1,4 @@
; RUN: opt -loop-reduce %s
; RUN: opt -loop-reduce < %s
; we used to crash on this one
declare i8* @_Znwm()

View File

@ -1,4 +1,4 @@
; RUN: opt -loop-unswitch -verify-loop-info -verify-dom-info %s -disable-output
; RUN: opt -loop-unswitch -verify-loop-info -verify-dom-info -disable-output < %s
; Loop unswitch should be able to unswitch these loops and
; preserve LCSSA and LoopSimplify forms.

View File

@ -1,4 +1,4 @@
; RUN: opt -mergefunc %s -disable-output
; RUN: opt -mergefunc -disable-output < %s
; This used to crash.
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:32:32-n8:16:32"

View File

@ -1,4 +1,4 @@
; RUN: opt -disable-output -objc-arc-contract %s
; RUN: opt -disable-output -objc-arc-contract < %s
; test that we don't crash on unreachable code
%2 = type opaque

View File

@ -1,4 +1,4 @@
; RUN: opt -reassociate -disable-output %s
; RUN: opt -reassociate -disable-output < %s
; rdar://7507855

View File

@ -1,5 +1,5 @@
; RUN: opt -scalarrepl %s -disable-output
; RUN: opt -scalarrepl-ssa %s -disable-output
; RUN: opt -scalarrepl -disable-output < %s
; RUN: opt -scalarrepl-ssa -disable-output < %s
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-n8:16:32:64"
target triple = "x86_64-apple-darwin10.0.0"

View File

@ -1,4 +1,4 @@
; RUN: opt -strip-dead-debug-info -disable-output %s
; RUN: opt -strip-dead-debug-info -disable-output < %s
define i32 @foo() nounwind ssp {
entry:
ret i32 0, !dbg !8