mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-25 10:27:04 +00:00
Change tests from "opt %s" to "opt < %s" so that opt doesn't see the
input filename so that opt doesn't print the input filename in the output so that grep lines in the tests don't unintentionally match strings in the input filename. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81537 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -globalopt
|
||||
; RUN: opt < %s -globalopt
|
||||
|
||||
@V = global float 1.200000e+01 ; <float*> [#uses=1]
|
||||
@G = internal global i32* null ; <i32**> [#uses=2]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -globalopt -disable-output
|
||||
; RUN: opt < %s -globalopt -disable-output
|
||||
; PR579
|
||||
|
||||
@g_40507551 = internal global i16 31038 ; <i16*> [#uses=1]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -globalopt -disable-output
|
||||
; RUN: opt < %s -globalopt -disable-output
|
||||
%RPyString = type { i32, %arraytype.Char }
|
||||
%arraytype.Char = type { i32, [0 x i8] }
|
||||
%arraytype.Signed = type { i32, [0 x i32] }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -globalopt -disable-output
|
||||
; RUN: opt < %s -globalopt -disable-output
|
||||
; PR820
|
||||
target datalayout = "e-p:32:32"
|
||||
target triple = "i686-pc-linux-gnu"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -globalopt -disable-output
|
||||
; RUN: opt < %s -globalopt -disable-output
|
||||
|
||||
%struct._list = type { i32*, %struct._list* }
|
||||
%struct._play = type { i32, i32*, %struct._list*, %struct._play* }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -globalopt -disable-output
|
||||
; RUN: opt < %s -globalopt -disable-output
|
||||
|
||||
target datalayout = "e-p:32:32:32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-i64:32:32-f32:32:32-f64:32:32-v64:64:64-v128:128:128-a0:0:32"
|
||||
target triple = "thumb-apple-darwin8"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -globalopt -disable-output
|
||||
; RUN: opt < %s -globalopt -disable-output
|
||||
|
||||
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"
|
||||
target triple = "i686-apple-darwin8"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -globalopt -disable-output
|
||||
; RUN: opt < %s -globalopt -disable-output
|
||||
; PR1491
|
||||
|
||||
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"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -globalopt -disable-output
|
||||
; RUN: opt < %s -globalopt -disable-output
|
||||
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-f128:64:128"
|
||||
target triple = "powerpc-apple-darwin8"
|
||||
%struct.empty0 = type { }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -globalopt | llvm-dis
|
||||
; RUN: opt < %s -globalopt | llvm-dis
|
||||
; PR1896
|
||||
|
||||
@indirect1 = internal global void (i32)* null ; <void (i32)**> [#uses=2]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -globalopt -S | grep {16 x .31 x double.. zeroinitializer}
|
||||
; RUN: opt < %s -globalopt -S | grep {16 x .31 x double.. zeroinitializer}
|
||||
|
||||
; The 'X' indices could be larger than 31. Do not SROA the outer indices of this array.
|
||||
@mm = internal global [16 x [31 x double]] zeroinitializer, align 32
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -globalopt -S | grep {volatile load}
|
||||
; RUN: opt < %s -globalopt -S | grep {volatile load}
|
||||
@t0.1441 = internal global double 0x3FD5555555555555, align 8 ; <double*> [#uses=1]
|
||||
|
||||
define double @foo() nounwind {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -globalopt -S | grep { nest } | count 1
|
||||
; RUN: opt < %s -globalopt -S | grep { nest } | count 1
|
||||
%struct.FRAME.nest = type { i32, i32 (i32)* }
|
||||
%struct.__builtin_trampoline = type { [10 x i8] }
|
||||
@.str = internal constant [7 x i8] c"%d %d\0A\00" ; <[7 x i8]*> [#uses=1]
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
; alignments. Elements 0 and 2 must be 16-byte aligned, and element
|
||||
; 1 must be at least 8 byte aligned (but could be more).
|
||||
|
||||
; RUN: opt %s -globalopt -S | grep {@G.0 = internal global .*align 16}
|
||||
; RUN: opt %s -globalopt -S | grep {@G.1 = internal global .*align 8}
|
||||
; RUN: opt %s -globalopt -S | grep {@G.2 = internal global .*align 16}
|
||||
; RUN: opt < %s -globalopt -S | grep {@G.0 = internal global .*align 16}
|
||||
; RUN: opt < %s -globalopt -S | grep {@G.1 = internal global .*align 8}
|
||||
; RUN: opt < %s -globalopt -S | grep {@G.2 = internal global .*align 16}
|
||||
; rdar://5891920
|
||||
|
||||
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:32:32-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
; values. This used to crash, because globalopt forgot to put the new var in the
|
||||
; same address space as the old one.
|
||||
|
||||
; RUN: opt %s -globalopt -S > %t
|
||||
; RUN: opt < %s -globalopt -S > %t
|
||||
; Check that the new global values still have their address space
|
||||
; RUN: cat %t | grep global.*addrspace
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -globalopt | llvm-dis
|
||||
; RUN: opt < %s -globalopt | llvm-dis
|
||||
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-darwin7"
|
||||
%struct.foo = type { i32, i32 }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -globalopt | llvm-dis
|
||||
; RUN: opt < %s -globalopt | llvm-dis
|
||||
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-darwin7"
|
||||
%struct.foo = type { i32, i32 }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -globalopt -S | grep {phi.*@head}
|
||||
; RUN: opt < %s -globalopt -S | grep {phi.*@head}
|
||||
; PR3321
|
||||
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"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -globalopt
|
||||
; RUN: opt < %s -globalopt
|
||||
|
||||
@g = external global i32
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -globalopt -S | grep {define void @a}
|
||||
; RUN: opt < %s -globalopt -S | grep {define void @a}
|
||||
|
||||
define internal void @f() {
|
||||
ret void
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -globalopt -S | not grep global_variable42
|
||||
; RUN: opt < %s -globalopt -S | not grep global_variable42
|
||||
; XFAIL: *
|
||||
|
||||
%llvm.dbg.anchor.type = type { i32, i32 }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -globalopt -stats -disable-output |& grep "1 globalopt - Number of global vars shrunk to booleans"
|
||||
; RUN: opt < %s -globalopt -stats -disable-output |& grep "1 globalopt - Number of global vars shrunk to booleans"
|
||||
; XFAIL: *
|
||||
|
||||
type { } ; type %0
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -globalopt -S | grep internal | count 2
|
||||
; RUN: opt < %s -globalopt -S | grep internal | count 2
|
||||
|
||||
global i32 0
|
||||
define i32* @1() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -globalopt -S | grep {@X = internal global i32}
|
||||
; RUN: opt < %s -globalopt -S | grep {@X = internal global i32}
|
||||
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-darwin7"
|
||||
@X = internal global i32* null ; <i32**> [#uses=2]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -globalopt
|
||||
; RUN: opt < %s -globalopt
|
||||
|
||||
%struct.s_annealing_sched = type { i32, float, float, float, float }
|
||||
%struct.s_bb = type { i32, i32, i32, i32 }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -globalopt -S > %t
|
||||
; RUN: opt < %s -globalopt -S > %t
|
||||
; RUN: cat %t | grep foo1 | count 1
|
||||
; RUN: cat %t | grep foo2 | count 4
|
||||
; RUN: cat %t | grep bar1 | count 1
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -globalopt -S | not grep global
|
||||
; RUN: opt < %s -globalopt -S | not grep global
|
||||
|
||||
@X = internal global i32 4 ; <i32*> [#uses=1]
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -instcombine -globalopt -S | \
|
||||
; RUN: opt < %s -instcombine -globalopt -S | \
|
||||
; RUN: grep {internal fastcc float @foo}
|
||||
|
||||
define internal float @foo() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -globalopt -S | not grep CTOR
|
||||
; RUN: opt < %s -globalopt -S | not grep CTOR
|
||||
@llvm.global_ctors = appending global [10 x { i32, void ()* }] [ { i32, void ()* } { i32 65535, void ()* @CTOR1 }, { i32, void ()* } { i32 65535, void ()* @CTOR1 }, { i32, void ()* } { i32 65535, void ()* @CTOR2 }, { i32, void ()* } { i32 65535, void ()* @CTOR3 }, { i32, void ()* } { i32 65535, void ()* @CTOR4 }, { i32, void ()* } { i32 65535, void ()* @CTOR5 }, { i32, void ()* } { i32 65535, void ()* @CTOR6 }, { i32, void ()* } { i32 65535, void ()* @CTOR7 }, { i32, void ()* } { i32 65535, void ()* @CTOR8 }, { i32, void ()* } { i32 2147483647, void ()* null } ] ; <[10 x { i32, void ()* }]*> [#uses=0]
|
||||
@G = global i32 0 ; <i32*> [#uses=1]
|
||||
@G2 = global i32 0 ; <i32*> [#uses=1]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -globalopt -S | FileCheck %s
|
||||
; RUN: opt < %s -globalopt -S | FileCheck %s
|
||||
|
||||
; Don't get fooled by the inbounds keyword; it doesn't change
|
||||
; the computed address.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -globalopt -S | not grep CTOR
|
||||
; RUN: opt < %s -globalopt -S | not grep CTOR
|
||||
@llvm.global_ctors = appending global [10 x { i32, void ()* }] [ { i32, void ()* } { i32 65535, void ()* @CTOR1 }, { i32, void ()* } { i32 65535, void ()* @CTOR1 }, { i32, void ()* } { i32 65535, void ()* @CTOR2 }, { i32, void ()* } { i32 65535, void ()* @CTOR3 }, { i32, void ()* } { i32 65535, void ()* @CTOR4 }, { i32, void ()* } { i32 65535, void ()* @CTOR5 }, { i32, void ()* } { i32 65535, void ()* @CTOR6 }, { i32, void ()* } { i32 65535, void ()* @CTOR7 }, { i32, void ()* } { i32 65535, void ()* @CTOR8 }, { i32, void ()* } { i32 2147483647, void ()* null } ] ; <[10 x { i32, void ()* }]*> [#uses=0]
|
||||
@G = global i32 0 ; <i32*> [#uses=1]
|
||||
@G2 = global i32 0 ; <i32*> [#uses=1]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -globalopt -S | not grep internal
|
||||
; RUN: opt < %s -globalopt -S | not grep internal
|
||||
|
||||
; This is a harder case to delete as the GEP has a variable index.
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -globalopt -S | not grep internal
|
||||
; RUN: opt < %s -globalopt -S | not grep internal
|
||||
|
||||
@G = internal global i32 123 ; <i32*> [#uses=1]
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
; In this case, the global can only be broken up by one level.
|
||||
|
||||
; RUN: opt %s -globalopt -S | not grep 12345
|
||||
; RUN: opt < %s -globalopt -S | not grep 12345
|
||||
|
||||
@G = internal global { i32, [4 x float] } zeroinitializer ; <{ i32, [4 x float] }*> [#uses=3]
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -globalopt -S > %t
|
||||
; RUN: opt < %s -globalopt -S > %t
|
||||
; RUN: grep {@Y = internal global \\\[3 x \[%\]struct.X\\\] zeroinitializer} %t
|
||||
; RUN: grep load %t | count 6
|
||||
; RUN: grep {add i32 \[%\]a, \[%\]b} %t | count 3
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
; RUN: opt %s -globalopt -S | grep {@X.f0}
|
||||
; RUN: opt %s -globalopt -S | grep {@X.f1}
|
||||
; RUN: opt < %s -globalopt -S | grep {@X.f0}
|
||||
; RUN: opt < %s -globalopt -S | grep {@X.f1}
|
||||
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-darwin7"
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
; RUN: opt %s -globalopt -S | grep {@X.f0}
|
||||
; RUN: opt %s -globalopt -S | grep {@X.f1}
|
||||
; RUN: opt < %s -globalopt -S | grep {@X.f0}
|
||||
; RUN: opt < %s -globalopt -S | grep {@X.f1}
|
||||
|
||||
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-darwin7"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
; RUN: opt %s -globalopt -S | grep {tmp.f1 = phi i32. }
|
||||
; RUN: opt %s -globalopt -S | grep {tmp.f0 = phi i32. }
|
||||
; RUN: opt < %s -globalopt -S | grep {tmp.f1 = phi i32. }
|
||||
; RUN: opt < %s -globalopt -S | grep {tmp.f0 = phi i32. }
|
||||
|
||||
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-darwin7"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -globalopt -instcombine | \
|
||||
; RUN: opt < %s -globalopt -instcombine | \
|
||||
; RUN: llvm-dis | grep {ret i1 true}
|
||||
|
||||
;; check that global opt turns integers that only hold 0 or 1 into bools.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -globalopt -S | not grep %G
|
||||
; RUN: opt < %s -globalopt -S | not grep %G
|
||||
|
||||
@G = internal global i32 0 ; <i32*> [#uses=1]
|
||||
@H = internal global { i32* } { i32* @G } ; <{ i32* }*> [#uses=1]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -globalopt -S | not grep global
|
||||
; RUN: opt < %s -globalopt -S | not grep global
|
||||
|
||||
@G = internal global i32* null ; <i32**> [#uses=3]
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -globalopt -S | \
|
||||
; RUN: opt < %s -globalopt -S | \
|
||||
; RUN: grep {G1 = internal constant}
|
||||
|
||||
@G1 = internal global [58 x i8] c"asdlfkajsdlfkajsd;lfkajds;lfkjasd;flkajsd;lkfja;sdlkfjasd\00" ; <[58 x i8]*> [#uses=1]
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
; both globals are write only, delete them.
|
||||
|
||||
; RUN: opt %s -globalopt -S | \
|
||||
; RUN: opt < %s -globalopt -S | \
|
||||
; RUN: not grep internal
|
||||
|
||||
@G0 = internal global [58 x i8] c"asdlfkajsdlfkajsd;lfkajds;lfkjasd;flkajsd;lkfja;sdlkfjasd\00" ; <[58 x i8]*> [#uses=1]
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
; Test that PHI nodes and select instructions do not necessarily make stuff
|
||||
; non-constant.
|
||||
|
||||
; RUN: opt %s -globalopt -S | not grep global
|
||||
; RUN: opt < %s -globalopt -S | not grep global
|
||||
|
||||
@X = internal global i32 4 ; <i32*> [#uses=2]
|
||||
@Y = internal global i32 5 ; <i32*> [#uses=2]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -globalopt -S | \
|
||||
; RUN: opt < %s -globalopt -S | \
|
||||
; RUN: grep {call void @Actual}
|
||||
|
||||
; Check that a comparison does not prevent an indirect call from being made
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -globalopt -S | not grep global
|
||||
; RUN: opt < %s -globalopt -S | not grep global
|
||||
|
||||
@G = internal global void ()* null ; <void ()**> [#uses=2]
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -globalopt -S | not grep store
|
||||
; RUN: opt < %s -globalopt -S | not grep store
|
||||
|
||||
@llvm.global_ctors = appending global [1 x { i32, void ()* }] [ { i32, void ()* } { i32 65535, void ()* @_GLOBAL__I__Z3foov } ] ; <[1 x { i32, void ()* }]*> [#uses=0]
|
||||
@X.0 = internal global i32 undef ; <i32*> [#uses=2]
|
||||
|
||||
Reference in New Issue
Block a user