llvm.org GIT mirror llvm / a654292
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 Dmitri Gribenko 6 years ago
27 changed file(s) with 30 addition(s) and 30 deletion(s). Raw diff Collapse all Expand all
None ; RUN: opt -verify -disable-output %s
0 ; RUN: opt -verify -disable-output < %s
11 ; This tests that we handle unreachable blocks correctly
22
33 define void @f() {
None ; RUN: opt -regions %s
0 ; RUN: opt -regions < %s
11 define i32 @main() nounwind {
22 entry:
33 br label %for.cond
None ; RUN: opt -indvars %s
0 ; RUN: opt -indvars < %s
11 ; PR9424: Attempt to use a SCEVCouldNotCompute object!
22 ; The inner loop computes the Step and Start of the outer loop.
33 ; Call that Vexit. The outer End value is max(2,Vexit), because
0 ; RUN: llc < %s -mtriple=i686-linux -mcpu=corei7 | FileCheck %s
1 ; RUN: opt -instsimplify %s -disable-output
1 ; RUN: opt -instsimplify -disable-output < %s
22
33 ;CHECK: SHUFF0
44 define <8 x i32*> @SHUFF0(<4 x i32*> %ptrv) nounwind {
0 ; RUN: llc < %s -march=x86 -mcpu=corei7-avx | FileCheck %s
1 ; RUN: opt -instsimplify %s -disable-output
1 ; RUN: opt -instsimplify -disable-output < %s
22
33 ;CHECK: AGEP0:
44 define <4 x i32*> @AGEP0(i32* %ptr) nounwind {
None ; RUN: opt -instcombine -S -o - %s | llvm-as
1 ; RUN: opt -instcombine -globalopt -S -o - %s | llvm-as
0 ; RUN: opt -instcombine -S < %s | llvm-as
1 ; RUN: opt -instcombine -globalopt -S < %s | llvm-as
22 @G1 = global i32 zeroinitializer
33 @G2 = global i32 zeroinitializer
44 @g = global <2 x i32*> zeroinitializer
0 ; rdar://7879828
1 ; RUN: opt -inline -argpromotion %s
1 ; RUN: opt -inline -argpromotion < %s
22 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"
33 target triple = "x86_64-apple-darwin10.0.0"
44
None ; RUN: opt -no-aa -gvn -S %s
0 ; RUN: opt -no-aa -gvn -S < %s
11
22 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"
33 target triple = "x86_64-unknown-freebsd8.0"
None ; RUN: opt -gvn %s -disable-output
0 ; RUN: opt -gvn -disable-output < %s
11
22 ; PR5631
33
0 ; PR6422
1 ; RUN: opt -globalopt -S %s
1 ; RUN: opt -globalopt -S < %s
22 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"
33 target triple = "x86_64-unknown-linux-gnu"
44
None ; RUN: opt -globalopt -S %s
0 ; RUN: opt -globalopt -S < %s
11 ; PR6435
22 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"
33 target triple = "x86_64-unknown-linux-gnu"
None ; RUN: opt -globalopt -disable-output %s
0 ; RUN: opt -globalopt -disable-output < %s
11 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"
22 target triple = "i386-apple-darwin9.8"
33
None ; RUN: opt -indvars %s -disable-output
0 ; RUN: opt -indvars -disable-output < %s
11 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"
22
33 declare i32 @putchar(i8) nounwind
None ; RUN: opt -inline -scalarrepl -max-cg-scc-iterations=1 %s -disable-output
0 ; RUN: opt -inline -scalarrepl -max-cg-scc-iterations=1 -disable-output < %s
11 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"
22 target triple = "x86_64-apple-darwin10.3"
33
None ; RUN: opt -instcombine %s -disable-output
1 ; RUN: opt -instsimplify %s -disable-output
0 ; RUN: opt -instcombine -disable-output < %s
1 ; RUN: opt -instsimplify -disable-output < %s
22 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"
33 target triple = "x86_64-unknown-linux-gnu"
44
None ;RUN: opt -instsimplify %s -disable-output
0 ;RUN: opt -instsimplify -disable-output < %s
11 declare void @helper(<2 x i8*>)
22 define void @test(<2 x i8*> %a) {
33 %A = getelementptr <2 x i8*> %a, <2 x i32>
None ; RUN: opt -jump-threading -disable-output %s
0 ; RUN: opt -jump-threading -disable-output < %s
11 ; PR9112
22
33 ; This is actually a test for value tracking. Jump threading produces
None ; RUN: opt -licm %s -disable-output
0 ; RUN: opt -licm -disable-output < %s
11
22 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"
33 target triple = "x86_64-apple-darwin10.0.0"
None ; RUN: opt -loop-rotate %s -disable-output -verify-dom-info -verify-loop-info
0 ; RUN: opt -loop-rotate -disable-output -verify-dom-info -verify-loop-info < %s
11
22 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"
33 target triple = "x86_64-apple-darwin10.0.0"
None ; RUN: opt -loop-reduce -disable-output -debug-only=loop-reduce %s 2> %t
0 ; RUN: opt -loop-reduce -disable-output -debug-only=loop-reduce < %s 2> %t
11 ; RUN: FileCheck %s < %t
22 ; REQUIRES: asserts
33 ;
None ; RUN: opt -loop-reduce %s
0 ; RUN: opt -loop-reduce < %s
11 ; we used to crash on this one
22
33 declare i8* @_Znwm()
None ; RUN: opt -loop-unswitch -verify-loop-info -verify-dom-info %s -disable-output
0 ; RUN: opt -loop-unswitch -verify-loop-info -verify-dom-info -disable-output < %s
11
22 ; Loop unswitch should be able to unswitch these loops and
33 ; preserve LCSSA and LoopSimplify forms.
None ; RUN: opt -mergefunc %s -disable-output
0 ; RUN: opt -mergefunc -disable-output < %s
11 ; This used to crash.
22
33 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"
None ; RUN: opt -disable-output -objc-arc-contract %s
0 ; RUN: opt -disable-output -objc-arc-contract < %s
11 ; test that we don't crash on unreachable code
22 %2 = type opaque
33
None ; RUN: opt -reassociate -disable-output %s
0 ; RUN: opt -reassociate -disable-output < %s
11
22
33 ; rdar://7507855
None ; RUN: opt -scalarrepl %s -disable-output
1 ; RUN: opt -scalarrepl-ssa %s -disable-output
0 ; RUN: opt -scalarrepl -disable-output < %s
1 ; RUN: opt -scalarrepl-ssa -disable-output < %s
22
33 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"
44 target triple = "x86_64-apple-darwin10.0.0"
None ; RUN: opt -strip-dead-debug-info -disable-output %s
0 ; RUN: opt -strip-dead-debug-info -disable-output < %s
11 define i32 @foo() nounwind ssp {
22 entry:
33 ret i32 0, !dbg !8