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.

My previous regex was not good enough to find these.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171343 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dmitri Gribenko 2013-01-01 13:57:25 +00:00
parent a6fdcaace8
commit fbfb1b286f
29 changed files with 30 additions and 30 deletions

View File

@ -1,4 +1,4 @@
; RUN: opt %s -deadargelim -S | FileCheck %s
; RUN: opt -deadargelim -S < %s | FileCheck %s
; PR14016
; Check that debug info metadata for subprograms stores pointers to

View File

@ -1,4 +1,4 @@
; RUN: opt %s -basicaa -dse -S | FileCheck %s
; RUN: opt -basicaa -dse -S < %s | FileCheck %s
%t = type { i32 }

View File

@ -1,4 +1,4 @@
; RUN: opt %s -dse -disable-output
; RUN: opt -dse -disable-output < %s
; test that we don't crash
declare void @bar()

View File

@ -1,4 +1,4 @@
; RUN: opt %s -basicaa -dse -S | FileCheck %s
; RUN: opt -basicaa -dse -S < %s | FileCheck %s
declare void @test1f()

View File

@ -1,4 +1,4 @@
; RUN: opt %s -gvn -disable-output
; RUN: opt -gvn -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-f128:128:128-n8:16:32:64"

View File

@ -1,4 +1,4 @@
; RUN: opt %s -gvn -S -o - | FileCheck %s
; RUN: opt -gvn -S < %s | FileCheck %s
define i32 @f1(i32 %x) {
; CHECK: define i32 @f1(

View File

@ -1,4 +1,4 @@
; RUN: opt %s -gvn -S -o - | FileCheck %s
; RUN: opt -gvn -S < %s | FileCheck %s
define double @test1(double %x, double %y) {
; CHECK: @test1(double %x, double %y)

View File

@ -1,4 +1,4 @@
; RUN: opt %s -gvn -S -o - | FileCheck %s
; RUN: opt -gvn -S < %s | FileCheck %s
define i32 @test1(i32 %x, i32 %y) {
; CHECK: @test1(i32 %x, i32 %y)

View File

@ -1,4 +1,4 @@
; RUN: opt %s -basicaa -gvn -S -o - | FileCheck %s
; RUN: opt -basicaa -gvn -S < %s | FileCheck %s
define i32 @test1(i32* %p) {
; CHECK: @test1(i32* %p)

View File

@ -1,4 +1,4 @@
; RUN: opt %s -basicaa -gvn -S -o - | FileCheck %s
; RUN: opt -basicaa -gvn -S < %s | FileCheck %s
define i32 @test1(i8* %p, i8* %q) {
; CHECK: @test1(i8* %p, i8* %q)

View File

@ -1,4 +1,4 @@
; RUN: opt %s -globalopt -S | FileCheck %s
; RUN: opt -globalopt -S < %s | FileCheck %s
@a = internal global i32 0, align 4
@b = internal global i32 0, align 4

View File

@ -1,4 +1,4 @@
; RUN: opt %s -inline -mergefunc -disable-output
; RUN: opt -inline -mergefunc -disable-output < %s
; This tests for a bug where the inliner kept the functions in a ValueMap after
; it had completed and a ModulePass started to run. LLVM would crash deleting

View File

@ -1,4 +1,4 @@
; RUN: opt %s -O2 -S -o - | FileCheck %s
; RUN: opt -O2 -S < %s | FileCheck %s
@data = common global i32* null, align 8
@ -229,4 +229,4 @@ entry:
%call1 = call i32 @fct2(i32 %tmp1)
%add = add nsw i32 %call, %call1
ret i32 %add
}
}

View File

@ -1,4 +1,4 @@
; RUN: opt %s -inline -S | FileCheck %s
; RUN: opt -inline -S < %s | FileCheck %s
; PR6682
declare void @foo() nounwind

View File

@ -1,4 +1,4 @@
; RUN: opt %s -inline -S | FileCheck %s
; RUN: opt -inline -S < %s | FileCheck %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"
target triple = "i386-apple-darwin10.0"

View File

@ -1,4 +1,4 @@
; RUN: opt %s -instcombine -S | FileCheck %s
; RUN: opt -instcombine -S < %s | FileCheck %s
; PR5438
; TODO: This should also optimize down.

View File

@ -1,4 +1,4 @@
; RUN: opt %s -instcombine -S | FileCheck %s
; RUN: opt -instcombine -S < %s | FileCheck %s
%overflow.result = type {i8, i1}

View File

@ -1,4 +1,4 @@
; RUN: opt %s -jump-threading -S | FileCheck %s
; RUN: opt -jump-threading -S < %s | FileCheck %s
declare i32 @f1()
declare i32 @f2()

View File

@ -1,4 +1,4 @@
; RUN: opt %s -loop-deletion -disable-output
; RUN: opt -loop-deletion -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"

View File

@ -1,4 +1,4 @@
; RUN: opt %s -metarenamer -S | FileCheck %s
; RUN: opt -metarenamer -S < %s | FileCheck %s
; CHECK: target triple {{.*}}
; CHECK-NOT: {{^x*}}xxx{{^x*}}

View File

@ -1,4 +1,4 @@
; RUN: opt %s -sccp -S
; RUN: opt -sccp -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-apple-darwin10.0"

View File

@ -1,4 +1,4 @@
; RUN: opt %s -ipsccp -S | FileCheck %s
; RUN: opt -ipsccp -S < %s | FileCheck %s
; PR7876
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 %s -sccp -S | FileCheck %s
; RUN: opt -sccp -S < %s | FileCheck %s
; PR6940

View File

@ -1,4 +1,4 @@
; RUN: opt %s -scalarrepl -S | FileCheck %s
; RUN: opt -scalarrepl -S < %s | FileCheck %s
; PR6832
target datalayout =
"e-p:32:32:32-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-n32"

View File

@ -1,4 +1,4 @@
; RUN: opt %s -scalarrepl -S | FileCheck %s
; RUN: opt -scalarrepl -S < %s | FileCheck %s
; Test promotion of allocas that have phis and select users.
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.2"

View File

@ -1,4 +1,4 @@
; RUN: opt %s -simplifycfg -disable-output
; RUN: opt -simplifycfg -disable-output < %s
; END.
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-linux-gnu"

View File

@ -1,4 +1,4 @@
; RUN: opt %s -simplifycfg -disable-output
; RUN: opt -simplifycfg -disable-output < %s
@foo = external constant i32

View File

@ -1,4 +1,4 @@
; RUN: opt %s -strip -S | FileCheck %s
; RUN: opt -strip -S < %s | FileCheck %s
; PR10286
@main_addrs = constant [2 x i8*] [i8* blockaddress(@f, %FOO), i8* blockaddress(@f, %BAR)]

View File

@ -1,4 +1,4 @@
; RUN: opt %s -tailcallelim -S | FileCheck %s
; RUN: opt -tailcallelim -S < %s | FileCheck %s
; XFAIL: *
declare void @use(i8* nocapture, i8* nocapture)