mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
FileCheck-ize this test.
llvm-svn: 152554
This commit is contained in:
parent
280a43349c
commit
98464723a5
@ -1,14 +1,14 @@
|
||||
; RUN: opt < %s -inline -S | not grep callee
|
||||
; RUN: opt < %s -inline -S | not grep div
|
||||
; RUN: opt < %s -inline -S | FileCheck %s
|
||||
|
||||
|
||||
define internal i32 @callee(i32 %A, i32 %B) {
|
||||
%C = sdiv i32 %A, %B ; <i32> [#uses=1]
|
||||
ret i32 %C
|
||||
define internal i32 @callee1(i32 %A, i32 %B) {
|
||||
%C = sdiv i32 %A, %B
|
||||
ret i32 %C
|
||||
}
|
||||
|
||||
define i32 @test() {
|
||||
%X = call i32 @callee( i32 10, i32 3 ) ; <i32> [#uses=1]
|
||||
ret i32 %X
|
||||
}
|
||||
define i32 @caller1() {
|
||||
; CHECK: define i32 @caller1
|
||||
; CHECK-NEXT: ret i32 3
|
||||
|
||||
%X = call i32 @callee1( i32 10, i32 3 )
|
||||
ret i32 %X
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user