llvm.org GIT mirror llvm / fbfb1b2
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 Dmitri Gribenko 6 years ago
29 changed file(s) with 30 addition(s) and 30 deletion(s). Raw diff Collapse all Expand all
None ; RUN: opt %s -deadargelim -S | FileCheck %s
0 ; RUN: opt -deadargelim -S < %s | FileCheck %s
11 ; PR14016
22
33 ; Check that debug info metadata for subprograms stores pointers to
None ; RUN: opt %s -basicaa -dse -S | FileCheck %s
0 ; RUN: opt -basicaa -dse -S < %s | FileCheck %s
11
22 %t = type { i32 }
33
None ; RUN: opt %s -dse -disable-output
0 ; RUN: opt -dse -disable-output < %s
11 ; test that we don't crash
22 declare void @bar()
33
None ; RUN: opt %s -basicaa -dse -S | FileCheck %s
0 ; RUN: opt -basicaa -dse -S < %s | FileCheck %s
11
22 declare void @test1f()
33
None ; RUN: opt %s -gvn -disable-output
0 ; RUN: opt -gvn -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-f128:128:128-n8:16:32:64"
33
None ; RUN: opt %s -gvn -S -o - | FileCheck %s
0 ; RUN: opt -gvn -S < %s | FileCheck %s
11
22 define i32 @f1(i32 %x) {
33 ; CHECK: define i32 @f1(
None ; RUN: opt %s -gvn -S -o - | FileCheck %s
0 ; RUN: opt -gvn -S < %s | FileCheck %s
11
22 define double @test1(double %x, double %y) {
33 ; CHECK: @test1(double %x, double %y)
None ; RUN: opt %s -gvn -S -o - | FileCheck %s
0 ; RUN: opt -gvn -S < %s | FileCheck %s
11
22 define i32 @test1(i32 %x, i32 %y) {
33 ; CHECK: @test1(i32 %x, i32 %y)
None ; RUN: opt %s -basicaa -gvn -S -o - | FileCheck %s
0 ; RUN: opt -basicaa -gvn -S < %s | FileCheck %s
11
22 define i32 @test1(i32* %p) {
33 ; CHECK: @test1(i32* %p)
None ; RUN: opt %s -basicaa -gvn -S -o - | FileCheck %s
0 ; RUN: opt -basicaa -gvn -S < %s | FileCheck %s
11
22 define i32 @test1(i8* %p, i8* %q) {
33 ; CHECK: @test1(i8* %p, i8* %q)
None ; RUN: opt %s -globalopt -S | FileCheck %s
0 ; RUN: opt -globalopt -S < %s | FileCheck %s
11
22 @a = internal global i32 0, align 4
33 @b = internal global i32 0, align 4
None ; RUN: opt %s -inline -mergefunc -disable-output
0 ; RUN: opt -inline -mergefunc -disable-output < %s
11
22 ; This tests for a bug where the inliner kept the functions in a ValueMap after
33 ; it had completed and a ModulePass started to run. LLVM would crash deleting
None ; RUN: opt %s -O2 -S -o - | FileCheck %s
0 ; RUN: opt -O2 -S < %s | FileCheck %s
11
22 @data = common global i32* null, align 8
33
228228 %call1 = call i32 @fct2(i32 %tmp1)
229229 %add = add nsw i32 %call, %call1
230230 ret i32 %add
231 }
231 }
None ; RUN: opt %s -inline -S | FileCheck %s
0 ; RUN: opt -inline -S < %s | FileCheck %s
11 ; PR6682
22 declare void @foo() nounwind
33
None ; RUN: opt %s -inline -S | FileCheck %s
0 ; RUN: opt -inline -S < %s | FileCheck %s
11
22 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"
33 target triple = "i386-apple-darwin10.0"
None ; RUN: opt %s -instcombine -S | FileCheck %s
0 ; RUN: opt -instcombine -S < %s | FileCheck %s
11 ; PR5438
22
33 ; TODO: This should also optimize down.
None ; RUN: opt %s -instcombine -S | FileCheck %s
0 ; RUN: opt -instcombine -S < %s | FileCheck %s
11
22 %overflow.result = type {i8, i1}
33
None ; RUN: opt %s -jump-threading -S | FileCheck %s
0 ; RUN: opt -jump-threading -S < %s | FileCheck %s
11
22 declare i32 @f1()
33 declare i32 @f2()
None ; RUN: opt %s -loop-deletion -disable-output
0 ; RUN: opt -loop-deletion -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
None ; RUN: opt %s -metarenamer -S | FileCheck %s
0 ; RUN: opt -metarenamer -S < %s | FileCheck %s
11
22 ; CHECK: target triple {{.*}}
33 ; CHECK-NOT: {{^x*}}xxx{{^x*}}
None ; RUN: opt %s -sccp -S
0 ; RUN: opt -sccp -S < %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"
22 target triple = "x86_64-apple-darwin10.0"
33
None ; RUN: opt %s -ipsccp -S | FileCheck %s
0 ; RUN: opt -ipsccp -S < %s | FileCheck %s
11 ; PR7876
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 %s -sccp -S | FileCheck %s
0 ; RUN: opt -sccp -S < %s | FileCheck %s
11
22
33 ; PR6940
None ; RUN: opt %s -scalarrepl -S | FileCheck %s
0 ; RUN: opt -scalarrepl -S < %s | FileCheck %s
11 ; PR6832
22 target datalayout =
33 "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"
None ; RUN: opt %s -scalarrepl -S | FileCheck %s
0 ; RUN: opt -scalarrepl -S < %s | FileCheck %s
11 ; Test promotion of allocas that have phis and select users.
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.2"
None ; RUN: opt %s -simplifycfg -disable-output
0 ; RUN: opt -simplifycfg -disable-output < %s
11 ; END.
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-linux-gnu"
None ; RUN: opt %s -simplifycfg -disable-output
0 ; RUN: opt -simplifycfg -disable-output < %s
11
22 @foo = external constant i32
33
None ; RUN: opt %s -strip -S | FileCheck %s
0 ; RUN: opt -strip -S < %s | FileCheck %s
11 ; PR10286
22
33 @main_addrs = constant [2 x i8*] [i8* blockaddress(@f, %FOO), i8* blockaddress(@f, %BAR)]
None ; RUN: opt %s -tailcallelim -S | FileCheck %s
0 ; RUN: opt -tailcallelim -S < %s | FileCheck %s
11 ; XFAIL: *
22
33 declare void @use(i8* nocapture, i8* nocapture)