mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-21 16:25:23 +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 -jump-threading -disable-output
|
||||
; RUN: opt < %s -jump-threading -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-f80:128:128"
|
||||
target triple = "i386-apple-darwin9"
|
||||
@Link = global [1 x i32] [ i32 -1 ] ; <[1 x i32]*> [#uses=2]
|
||||
|
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -jump-threading -disable-output
|
||||
; RUN: opt < %s -jump-threading -disable-output
|
||||
; PR2285
|
||||
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 -jump-threading | llvm-dis
|
||||
; RUN: opt < %s -jump-threading | 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-darwin9.5"
|
||||
|
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -jump-threading | llvm-dis
|
||||
; RUN: opt < %s -jump-threading | llvm-dis
|
||||
; PR3298
|
||||
|
||||
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"
|
||||
|
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -jump-threading | llvm-dis
|
||||
; RUN: opt < %s -jump-threading | llvm-dis
|
||||
; PR3353
|
||||
|
||||
define i32 @test(i8 %X) {
|
||||
|
@@ -1,6 +1,6 @@
|
||||
; RUN: opt %s -jump-threading -mem2reg -instcombine -simplifycfg -S | grep {ret i32 %v1}
|
||||
; RUN: opt < %s -jump-threading -mem2reg -instcombine -simplifycfg -S | grep {ret i32 %v1}
|
||||
; There should be no uncond branches left.
|
||||
; RUN: opt %s -jump-threading -mem2reg -instcombine -simplifycfg -S | not grep {br label}
|
||||
; RUN: opt < %s -jump-threading -mem2reg -instcombine -simplifycfg -S | not grep {br label}
|
||||
|
||||
declare i32 @f1()
|
||||
declare i32 @f2()
|
||||
|
@@ -1,6 +1,6 @@
|
||||
; RUN: opt %s -jump-threading -mem2reg -instcombine -simplifycfg -S | grep {ret i32 %v1}
|
||||
; RUN: opt < %s -jump-threading -mem2reg -instcombine -simplifycfg -S | grep {ret i32 %v1}
|
||||
; There should be no uncond branches left.
|
||||
; RUN: opt %s -jump-threading -mem2reg -instcombine -simplifycfg -S | not grep {br label}
|
||||
; RUN: opt < %s -jump-threading -mem2reg -instcombine -simplifycfg -S | not grep {br label}
|
||||
|
||||
declare i32 @f1()
|
||||
declare i32 @f2()
|
||||
|
@@ -1,6 +1,6 @@
|
||||
; RUN: opt %s -jump-threading -simplifycfg -mem2reg -S | grep {ret i32 %v1}
|
||||
; RUN: opt < %s -jump-threading -simplifycfg -mem2reg -S | grep {ret i32 %v1}
|
||||
; There should be no uncond branches left.
|
||||
; RUN: opt %s -jump-threading -simplifycfg -mem2reg -S | not grep {br label}
|
||||
; RUN: opt < %s -jump-threading -simplifycfg -mem2reg -S | not grep {br label}
|
||||
|
||||
declare i32 @f1()
|
||||
declare i32 @f2()
|
||||
|
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -jump-threading -S | not grep phi
|
||||
; RUN: opt < %s -jump-threading -S | not grep phi
|
||||
|
||||
declare i8 @mcguffin()
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
; There should be no phi nodes left.
|
||||
; RUN: opt %s -jump-threading -simplifycfg -mem2reg -S | not grep {phi i32}
|
||||
; RUN: opt < %s -jump-threading -simplifycfg -mem2reg -S | not grep {phi i32}
|
||||
|
||||
declare i32 @f1()
|
||||
declare i32 @f2()
|
||||
|
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -jump-threading -die -S | grep icmp | count 1
|
||||
; RUN: opt < %s -jump-threading -die -S | grep icmp | count 1
|
||||
|
||||
declare void @f1()
|
||||
declare void @f2()
|
||||
|
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -jump-threading -loop-rotate -instcombine -indvars -loop-unroll -simplifycfg -S > %t
|
||||
; RUN: opt < %s -jump-threading -loop-rotate -instcombine -indvars -loop-unroll -simplifycfg -S > %t
|
||||
; RUN: grep {volatile store} %t | count 3
|
||||
; RUN: not grep {br label} %t
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
; RUN: opt %s -jump-threading -mem2reg -simplifycfg -S | grep {ret i32 1}
|
||||
; RUN: opt < %s -jump-threading -mem2reg -simplifycfg -S | grep {ret i32 1}
|
||||
; rdar://6402033
|
||||
|
||||
; Test that we can thread through the block with the partially redundant load (%2).
|
||||
|
@@ -1,5 +1,5 @@
|
||||
; RUN: opt %s -jump-threading -S | not grep {br }
|
||||
; RUN: opt %s -jump-threading -S | grep {ret i32} | count 1
|
||||
; RUN: opt < %s -jump-threading -S | not grep {br }
|
||||
; RUN: opt < %s -jump-threading -S | grep {ret i32} | count 1
|
||||
|
||||
define i32 @test(i1 %cond) {
|
||||
br i1 undef, label %T1, label %F1
|
||||
|
Reference in New Issue
Block a user