mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
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. llvm-svn: 171250
This commit is contained in:
parent
cdaabf694c
commit
968fc2e59b
@ -1,4 +1,4 @@
|
|||||||
; RUN: opt -verify -disable-output %s
|
; RUN: opt -verify -disable-output < %s
|
||||||
; This tests that we handle unreachable blocks correctly
|
; This tests that we handle unreachable blocks correctly
|
||||||
|
|
||||||
define void @f() {
|
define void @f() {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
; RUN: opt -regions %s
|
; RUN: opt -regions < %s
|
||||||
define i32 @main() nounwind {
|
define i32 @main() nounwind {
|
||||||
entry:
|
entry:
|
||||||
br label %for.cond
|
br label %for.cond
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
; RUN: opt -indvars %s
|
; RUN: opt -indvars < %s
|
||||||
; PR9424: Attempt to use a SCEVCouldNotCompute object!
|
; PR9424: Attempt to use a SCEVCouldNotCompute object!
|
||||||
; The inner loop computes the Step and Start of the outer loop.
|
; The inner loop computes the Step and Start of the outer loop.
|
||||||
; Call that Vexit. The outer End value is max(2,Vexit), because
|
; Call that Vexit. The outer End value is max(2,Vexit), because
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
; RUN: llc < %s -mtriple=i686-linux -mcpu=corei7 | FileCheck %s
|
; RUN: llc < %s -mtriple=i686-linux -mcpu=corei7 | FileCheck %s
|
||||||
; RUN: opt -instsimplify %s -disable-output
|
; RUN: opt -instsimplify -disable-output < %s
|
||||||
|
|
||||||
;CHECK: SHUFF0
|
;CHECK: SHUFF0
|
||||||
define <8 x i32*> @SHUFF0(<4 x i32*> %ptrv) nounwind {
|
define <8 x i32*> @SHUFF0(<4 x i32*> %ptrv) nounwind {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
; RUN: llc < %s -march=x86 -mcpu=corei7-avx | FileCheck %s
|
; RUN: llc < %s -march=x86 -mcpu=corei7-avx | FileCheck %s
|
||||||
; RUN: opt -instsimplify %s -disable-output
|
; RUN: opt -instsimplify -disable-output < %s
|
||||||
|
|
||||||
;CHECK: AGEP0:
|
;CHECK: AGEP0:
|
||||||
define <4 x i32*> @AGEP0(i32* %ptr) nounwind {
|
define <4 x i32*> @AGEP0(i32* %ptr) nounwind {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
; RUN: opt -instcombine -S -o - %s | llvm-as
|
; RUN: opt -instcombine -S < %s | llvm-as
|
||||||
; RUN: opt -instcombine -globalopt -S -o - %s | llvm-as
|
; RUN: opt -instcombine -globalopt -S < %s | llvm-as
|
||||||
@G1 = global i32 zeroinitializer
|
@G1 = global i32 zeroinitializer
|
||||||
@G2 = global i32 zeroinitializer
|
@G2 = global i32 zeroinitializer
|
||||||
@g = global <2 x i32*> zeroinitializer
|
@g = global <2 x i32*> zeroinitializer
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
; rdar://7879828
|
; 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 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"
|
target triple = "x86_64-apple-darwin10.0.0"
|
||||||
|
|
||||||
|
@ -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 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"
|
target triple = "x86_64-unknown-freebsd8.0"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
; RUN: opt -gvn %s -disable-output
|
; RUN: opt -gvn -disable-output < %s
|
||||||
|
|
||||||
; PR5631
|
; PR5631
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
; PR6422
|
; 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 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"
|
target triple = "x86_64-unknown-linux-gnu"
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
; RUN: opt -globalopt -S %s
|
; RUN: opt -globalopt -S < %s
|
||||||
; PR6435
|
; 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 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"
|
target triple = "x86_64-unknown-linux-gnu"
|
||||||
|
@ -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 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"
|
target triple = "i386-apple-darwin9.8"
|
||||||
|
|
||||||
|
@ -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"
|
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
|
declare i32 @putchar(i8) nounwind
|
||||||
|
@ -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 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"
|
target triple = "x86_64-apple-darwin10.3"
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
; RUN: opt -instcombine %s -disable-output
|
; RUN: opt -instcombine -disable-output < %s
|
||||||
; RUN: opt -instsimplify %s -disable-output
|
; 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 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"
|
target triple = "x86_64-unknown-linux-gnu"
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
;RUN: opt -instsimplify %s -disable-output
|
;RUN: opt -instsimplify -disable-output < %s
|
||||||
declare void @helper(<2 x i8*>)
|
declare void @helper(<2 x i8*>)
|
||||||
define void @test(<2 x i8*> %a) {
|
define void @test(<2 x i8*> %a) {
|
||||||
%A = getelementptr <2 x i8*> %a, <2 x i32> <i32 0, i32 0>
|
%A = getelementptr <2 x i8*> %a, <2 x i32> <i32 0, i32 0>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
; RUN: opt -jump-threading -disable-output %s
|
; RUN: opt -jump-threading -disable-output < %s
|
||||||
; PR9112
|
; PR9112
|
||||||
|
|
||||||
; This is actually a test for value tracking. Jump threading produces
|
; This is actually a test for value tracking. Jump threading produces
|
||||||
|
@ -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 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"
|
target triple = "x86_64-apple-darwin10.0.0"
|
||||||
|
@ -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 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"
|
target triple = "x86_64-apple-darwin10.0.0"
|
||||||
|
@ -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
|
; RUN: FileCheck %s < %t
|
||||||
; REQUIRES: asserts
|
; REQUIRES: asserts
|
||||||
;
|
;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
; RUN: opt -loop-reduce %s
|
; RUN: opt -loop-reduce < %s
|
||||||
; we used to crash on this one
|
; we used to crash on this one
|
||||||
|
|
||||||
declare i8* @_Znwm()
|
declare i8* @_Znwm()
|
||||||
|
@ -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
|
; Loop unswitch should be able to unswitch these loops and
|
||||||
; preserve LCSSA and LoopSimplify forms.
|
; preserve LCSSA and LoopSimplify forms.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
; RUN: opt -mergefunc %s -disable-output
|
; RUN: opt -mergefunc -disable-output < %s
|
||||||
; This used to crash.
|
; 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"
|
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"
|
||||||
|
@ -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
|
; test that we don't crash on unreachable code
|
||||||
%2 = type opaque
|
%2 = type opaque
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
; RUN: opt -reassociate -disable-output %s
|
; RUN: opt -reassociate -disable-output < %s
|
||||||
|
|
||||||
|
|
||||||
; rdar://7507855
|
; rdar://7507855
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
; RUN: opt -scalarrepl %s -disable-output
|
; RUN: opt -scalarrepl -disable-output < %s
|
||||||
; RUN: opt -scalarrepl-ssa %s -disable-output
|
; 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 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"
|
target triple = "x86_64-apple-darwin10.0.0"
|
||||||
|
@ -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 {
|
define i32 @foo() nounwind ssp {
|
||||||
entry:
|
entry:
|
||||||
ret i32 0, !dbg !8
|
ret i32 0, !dbg !8
|
||||||
|
Loading…
x
Reference in New Issue
Block a user