mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-22 23:24:59 +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 -argpromotion -S | grep nounwind | count 2
|
||||
; RUN: opt < %s -argpromotion -S | grep nounwind | count 2
|
||||
|
||||
define internal i32 @deref(i32* %x) nounwind {
|
||||
entry:
|
||||
|
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -argpromotion -S > %t
|
||||
; RUN: opt < %s -argpromotion -S > %t
|
||||
; RUN: cat %t | grep {define.*@callee(.*i32\\*}
|
||||
; PR2498
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -inline -argpromotion -disable-output
|
||||
; RUN: opt < %s -inline -argpromotion -disable-output
|
||||
|
||||
define internal fastcc i32 @hash(i32* %ts, i32 %mod) nounwind {
|
||||
entry:
|
||||
|
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -argpromotion -disable-output
|
||||
; RUN: opt < %s -argpromotion -disable-output
|
||||
|
||||
define internal fastcc i32 @term_SharingList(i32* %Term, i32* %List) nounwind {
|
||||
entry:
|
||||
|
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -argpromotion -instcombine -S | not grep load
|
||||
; RUN: opt < %s -argpromotion -instcombine -S | not grep load
|
||||
|
||||
%QuadTy = type { i32, i32, i32, i32 }
|
||||
@G = constant %QuadTy {
|
||||
|
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -argpromotion -S | grep zeroext
|
||||
; RUN: opt < %s -argpromotion -S | grep zeroext
|
||||
|
||||
%struct.ss = type { i32, i64 }
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -argpromotion -mem2reg -S | not grep alloca
|
||||
; RUN: opt < %s -argpromotion -mem2reg -S | not grep alloca
|
||||
define internal i32 @test(i32* %X, i32* %Y) {
|
||||
%A = load i32* %X ; <i32> [#uses=1]
|
||||
%B = load i32* %Y ; <i32> [#uses=1]
|
||||
|
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -argpromotion -S | grep -F {i32* byval} | count 2
|
||||
; RUN: opt < %s -argpromotion -S | grep -F {i32* byval} | count 2
|
||||
; Argpromote + scalarrepl should change this to passing the two integers by value.
|
||||
|
||||
%struct.ss = type { i32, i64 }
|
||||
|
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -argpromotion -scalarrepl -S | not grep load
|
||||
; RUN: opt < %s -argpromotion -scalarrepl -S | not grep load
|
||||
; Argpromote + scalarrepl should change this to passing the two integers by value.
|
||||
|
||||
%struct.ss = type { i32, i64 }
|
||||
|
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -argpromotion -simplifycfg -constmerge | llvm-dis
|
||||
; RUN: opt < %s -argpromotion -simplifycfg -constmerge | 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-darwin10.0"
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -argpromotion -instcombine -S | not grep load
|
||||
; RUN: opt < %s -argpromotion -instcombine -S | not grep load
|
||||
|
||||
@G1 = constant i32 0 ; <i32*> [#uses=1]
|
||||
@G2 = constant i32* @G1 ; <i32**> [#uses=1]
|
||||
|
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -argpromotion -S | \
|
||||
; RUN: opt < %s -argpromotion -S | \
|
||||
; RUN: not grep {load i32\* null}
|
||||
|
||||
define internal i32 @callee(i1 %C, i32* %P) {
|
||||
|
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -argpromotion -S | \
|
||||
; RUN: opt < %s -argpromotion -S | \
|
||||
; RUN: grep {load i32\\* %A}
|
||||
|
||||
define internal i32 @callee(i1 %C, i32* %P) {
|
||||
|
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -disable-output -loop-extract-single -loop-rotate -loop-reduce -argpromotion
|
||||
; RUN: opt < %s -disable-output -loop-extract-single -loop-rotate -loop-reduce -argpromotion
|
||||
; PR 3085
|
||||
|
||||
%struct.Lit = type { i8 }
|
||||
|
Reference in New Issue
Block a user