Tests: rewrite 'opt ... %s' to 'opt ... < %s' so that opt does not emit a ModuleID
authorDmitri Gribenko <gribozavr@gmail.com>
Sun, 30 Dec 2012 02:33:22 +0000 (02:33 +0000)
committerDmitri Gribenko <gribozavr@gmail.com>
Sun, 30 Dec 2012 02:33:22 +0000 (02:33 +0000)
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

27 files changed:
test/Analysis/Dominators/invoke.ll
test/Analysis/RegionInfo/20100809_bb_not_in_domtree.ll
test/Analysis/ScalarEvolution/2011-03-09-ExactNoMaxBECount.ll
test/CodeGen/X86/pointer-vector.ll
test/CodeGen/X86/vector-gep.ll
test/Feature/global_pv.ll
test/Transforms/ArgumentPromotion/crash.ll
test/Transforms/GVN/crash-no-aa.ll
test/Transforms/GVN/crash.ll
test/Transforms/GlobalOpt/2010-02-25-MallocPromote.ll
test/Transforms/GlobalOpt/2010-02-26-MallocSROA.ll
test/Transforms/GlobalOpt/crash.ll
test/Transforms/IndVarSimplify/crash.ll
test/Transforms/Inline/crash2.ll
test/Transforms/InstCombine/vector_gep1.ll
test/Transforms/InstSimplify/vector_gep.ll
test/Transforms/JumpThreading/degenerate-phi.ll
test/Transforms/LICM/crash.ll
test/Transforms/LoopRotate/crash.ll
test/Transforms/LoopStrengthReduce/2012-07-18-LimitReassociate.ll
test/Transforms/LoopStrengthReduce/dominate-assert.ll
test/Transforms/LoopUnswitch/preserve-analyses.ll
test/Transforms/MergeFunc/2011-02-08-RemoveEqual.ll
test/Transforms/ObjCARC/pr12270.ll
test/Transforms/Reassociate/crash.ll
test/Transforms/ScalarRepl/crash.ll
test/Transforms/StripSymbols/2010-08-25-crash.ll

index f935750c987e02f7041410847b537e5ad3280ee8..da0b2461656c8786ee87dff70701f3ac6999dfcd 100644 (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() {
index 218b4375f70cc4e32ce8a8144d55c2e843edf5ac..0dfa0bf9cd8d79090593d35b1e934e6e7667f5b4 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -regions %s
+; RUN: opt -regions %s
 define i32 @main() nounwind {
 entry:
   br label %for.cond
index 9f17e27577c23dfab22d6f2fb8582109ae405e4a..49e944dcd2666e418dd11c3641b5bb7dafc57892 100644 (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
index 58423d195964422c526a48ec9a376e37d73dce6f..0ee99875264f29e43867cb21089759ace3b8a5d7 100644 (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 {
index 3476e36c646fd96ea837a2aca5f4718e7b22de49..d08e2a07469b4e1132296fd2495e50f6855c254b 100644 (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 {
index d257ec077ab9b43b00cac4c952e35b7643a74743..34b9a7df8824e62556fc3ed484190dfc07aa8e21 100644 (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
index fed002aa98a9fc131ea0018fed0966c334c2a3e2..f70d8de60ee382c9119109d53fb6468b84a56471 100644 (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"
 
index c87a9c6576a8d345e6531721d7f00fa319822fe7..9ad63a7350c27f70fa74e67b0b3568f40d6510b6 100644 (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"
index 4a8c8e4589c8fa2b87d3c50c12f846e3bba644bc..9fb612fcae139cc00f493bf2de3121cf005f105d 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -gvn %s -disable-output
+; RUN: opt -gvn -disable-output < %s
 
 ; PR5631
 
index 27352fa29066fc66d1407fee05e53832962dd80f..629d57c8842444143ea837d6f428b7c783928eb7 100644 (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"
 
index 6f1996a867e3f5ad2a9a66d42d8b31953a1151f0..ab7721fd972044a5cec7a3e705e9e31bd610e640 100644 (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"
index 366a874f73527219fd821a3afc09de583a79eb03..80c777ccabc1a320e11dfa8a3c024bfc71a78f10 100644 (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"
 
index 1b702a3b1a3c9cff688058a55eef7f3afa972fa7..aa6a2ee16521bc97ffa23041e0a9ae96939bcc2c 100644 (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
index cb1f44d5cca7c816b75e92d7d17a3271097dd552..be634f6256339b33ba7142bcafd9139f599ee84a 100644 (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"
 
index f4c75c8009853b163d3dda5739bb304da16fefba..90ca26212f2a624e97d46d86058e002b544d283b 100644 (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"
 
index f65260e00f54617075a2fadf487aeea5b06dd6b0..5ac1ddef64f8a20ebba2c3992c44a8f1044d619b 100644 (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>
index 35d9fdec42816825b4b3281e249ab7df760e533d..2905b43af72cc2aef2a6f389fe47490e033a14be 100644 (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
index de41d008a746b0f8b31572b99a6b5c465bebeef0..b43477a56df57f81f56947fbd3c00210aa840d1b 100644 (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"
index 954b834765517f9ce188f8539e419b9fce4d643d..fd922cb5569eb78ac68725eb0a18419f184aeaf5 100644 (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"
index 3793baccbbc1206c8a701ff09a37320713013b10..0aa278762072a54afdf82b2869243d026f646e2a 100644 (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
 ;
index b87bf620decf105b4a670d6aba63f3e4dcaa7566..ff8cab83137bd0dd0896f4a1ddc59835708aa4b9 100644 (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()
index 668f8ecaf8a5a4a0f27a7d9ff2af2d5a86f23a43..f79612bef51e611621650cc2042a472a0d22a785 100644 (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.
index e3e52b401af56292c07ec807b913322852338079..19cd6a5171dad53abf5efcbb1b6ee8fa003553a0 100644 (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"
index 1faae5f68705e952f281f3c5fd759ff37b148d82..bdff0d7b4d581561d7da30439c274adfa041717f 100644 (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
 
index e29b5dc9c0ce85cc6017f9374ad9f29d5f806d7e..770f97371d7e3b5c7dbacfce16bbca0f8876e86c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -reassociate -disable-output %s
+; RUN: opt -reassociate -disable-output %s
 
 
 ; rdar://7507855
index 58c5a3a0527d082d0dc0fd976bdf1b7b1ba3020e..8c60dceb8b07927cc9111b177beeebeefaa0f6d8 100644 (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"
index 3965c378227645ad3b87b0cd06f4a33b0bf50fbf..7de5a028054a48573450938f041cea19dd299600 100644 (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