mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-24 13:18:17 +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,6 +1,6 @@
|
||||
; Make sure that the constant propogator doesn't divide by zero!
|
||||
;
|
||||
; RUN: opt %s -constprop
|
||||
; RUN: opt < %s -constprop
|
||||
;
|
||||
|
||||
define i32 @test() {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
; Fix #2: The unary not instruction now no longer exists. Change to xor.
|
||||
|
||||
; RUN: opt %s -constprop -S | \
|
||||
; RUN: opt < %s -constprop -S | \
|
||||
; RUN: not grep {i32 0}
|
||||
|
||||
define i32 @test1() {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
; SetCC on boolean values was not implemented!
|
||||
|
||||
; RUN: opt %s -constprop -die -S | \
|
||||
; RUN: opt < %s -constprop -die -S | \
|
||||
; RUN: not grep set
|
||||
|
||||
define i1 @test1() {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
; Make sure that the constant propagator doesn't cause a sigfpe
|
||||
;
|
||||
; RUN: opt %s -constprop
|
||||
; RUN: opt < %s -constprop
|
||||
;
|
||||
|
||||
define i32 @test() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -constprop -S | \
|
||||
; RUN: opt < %s -constprop -S | \
|
||||
; RUN: not grep {ret i1 false}
|
||||
|
||||
@b = external global [2 x { }] ; <[2 x { }]*> [#uses=2]
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
; RUN: opt %s -constprop -S | \
|
||||
; RUN: opt < %s -constprop -S | \
|
||||
; RUN: grep {i32 -1}
|
||||
; RUN: opt %s -constprop -S | \
|
||||
; RUN: opt < %s -constprop -S | \
|
||||
; RUN: not grep zeroinitializer
|
||||
|
||||
define <4 x i32> @test() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -instcombine -S | \
|
||||
; RUN: opt < %s -instcombine -S | \
|
||||
; RUN: grep {ret i1 false}
|
||||
define i1 @test() {
|
||||
%X = trunc i32 320 to i1 ; <i1> [#uses=1]
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
; RUN: opt %s -constprop -S | \
|
||||
; RUN: opt < %s -constprop -S | \
|
||||
; RUN: grep {ret i32 -1}
|
||||
; RUN: opt %s -constprop -S | \
|
||||
; RUN: opt < %s -constprop -S | \
|
||||
; RUN: grep {ret i32 1}
|
||||
|
||||
define i32 @test1() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -constprop -S | grep 1065353216
|
||||
; RUN: opt < %s -constprop -S | grep 1065353216
|
||||
|
||||
define i32 @test() {
|
||||
%A = bitcast float 1.000000e+00 to i32 ; <i32> [#uses=1]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -constprop -S | grep {ret i13 13}
|
||||
; RUN: opt < %s -constprop -S | grep {ret i13 13}
|
||||
; PR1816
|
||||
declare i13 @llvm.cttz.i13(i13)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -constprop -disable-output
|
||||
; RUN: opt < %s -constprop -disable-output
|
||||
; PR2529
|
||||
define <4 x i1> @test1(i32 %argc, i8** %argv) {
|
||||
entry:
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -constprop | llvm-dis
|
||||
; RUN: opt < %s -constprop | llvm-dis
|
||||
; PR4848
|
||||
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,7 +1,7 @@
|
||||
; This is a basic sanity check for constant propogation. The add instruction
|
||||
; should be eliminated.
|
||||
|
||||
; RUN: opt %s -constprop -die -S | not grep add
|
||||
; RUN: opt < %s -constprop -die -S | not grep add
|
||||
|
||||
define i32 @test(i1 %B) {
|
||||
br i1 %B, label %BB1, label %BB2
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
; bswap should be constant folded when it is passed a constant argument
|
||||
|
||||
; RUN: opt %s -constprop -S | not grep call
|
||||
; RUN: opt < %s -constprop -S | not grep call
|
||||
|
||||
declare i16 @llvm.bswap.i16(i16)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -instcombine -S | grep {ret i32 0}
|
||||
; RUN: opt < %s -instcombine -S | grep {ret i32 0}
|
||||
; PR4424
|
||||
declare void @ext()
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -constprop -S | \
|
||||
; RUN: opt < %s -constprop -S | \
|
||||
; RUN: grep -F {ret i32* null} | count 2
|
||||
|
||||
define i32* @test1() {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
; Ensure constant propogation of 'not' instructions is working correctly.
|
||||
|
||||
; RUN: opt %s -constprop -die -S | not grep xor
|
||||
; RUN: opt < %s -constprop -die -S | not grep xor
|
||||
|
||||
define i32 @test1() {
|
||||
%R = xor i32 4, -1 ; <i32> [#uses=1]
|
||||
|
||||
Reference in New Issue
Block a user