mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-22 10:29:35 +00:00
Convert tests to FileCheck
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185124 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ae19c89e1d
commit
1300638d50
@ -1,5 +1,7 @@
|
|||||||
; Ignore stderr, we expect warnings there
|
; Ignore stderr, we expect warnings there
|
||||||
; RUN: opt < %s -instcombine 2> /dev/null -S | not grep bitcast
|
; RUN: opt < %s -instcombine 2> /dev/null -S | FileCheck %s
|
||||||
|
|
||||||
|
; CHECK-NOT: bitcast
|
||||||
|
|
||||||
define void @a() {
|
define void @a() {
|
||||||
ret void
|
ret void
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
; RUN: opt < %s -instcombine -S | not grep bitcast
|
; RUN: opt < %s -instcombine -S | FileCheck %s
|
||||||
|
|
||||||
define void @f(i16 %y) {
|
define void @f(i16 %y) {
|
||||||
ret void
|
ret void
|
||||||
}
|
}
|
||||||
|
; CHECK-NOT: bitcast
|
||||||
define i32 @g(i32 %y) {
|
define i32 @g(i32 %y) {
|
||||||
%x = call i32 bitcast (void (i16)* @f to i32 (i32)*)( i32 %y ) ; <i32> [#uses=1]
|
%x = call i32 bitcast (void (i16)* @f to i32 (i32)*)( i32 %y ) ; <i32> [#uses=1]
|
||||||
ret i32 %x
|
ret i32 %x
|
||||||
|
@ -1,9 +1,11 @@
|
|||||||
; RUN: opt < %s -instcombine -S | grep call | not grep bitcast
|
; RUN: opt < %s -instcombine -S | FileCheck %s
|
||||||
|
|
||||||
target datalayout = "e-p:32:32"
|
target datalayout = "e-p:32:32"
|
||||||
target triple = "i686-pc-linux-gnu"
|
target triple = "i686-pc-linux-gnu"
|
||||||
|
|
||||||
|
; CHECK-NOT: bitcast
|
||||||
|
; CHECK: call
|
||||||
|
; CHECK-NOT: bitcast
|
||||||
define i32 @main() {
|
define i32 @main() {
|
||||||
entry:
|
entry:
|
||||||
%tmp = call i32 bitcast (i7* (i999*)* @ctime to i32 (i99*)*)( i99* null )
|
%tmp = call i32 bitcast (i7* (i999*)* @ctime to i32 (i99*)*)( i99* null )
|
||||||
|
@ -1,9 +1,12 @@
|
|||||||
; RUN: opt < %s -instcombine -S | \
|
; RUN: opt < %s -instcombine -S | FileCheck %s
|
||||||
; RUN: grep call | not grep bitcast
|
|
||||||
|
|
||||||
target datalayout = "e-p:32:32"
|
target datalayout = "e-p:32:32"
|
||||||
target triple = "i686-pc-linux-gnu"
|
target triple = "i686-pc-linux-gnu"
|
||||||
|
|
||||||
|
; CHECK-NOT: bitcast
|
||||||
|
; CHECK: call
|
||||||
|
; CHECK-NOT: bitcast
|
||||||
|
|
||||||
define i32 @main() {
|
define i32 @main() {
|
||||||
entry:
|
entry:
|
||||||
%tmp = call i32 bitcast (i8* (i32*)* @ctime to i32 (i32*)*)( i32* null ) ; <i32> [#uses=1]
|
%tmp = call i32 bitcast (i8* (i32*)* @ctime to i32 (i32*)*)( i32* null ) ; <i32> [#uses=1]
|
||||||
|
Loading…
Reference in New Issue
Block a user