2009-09-12 02:01:28 +08:00
|
|
|
; RUN: opt < %s -inline -S | not grep callee
|
|
|
|
; RUN: opt < %s -inline -S | not grep div
|
2006-05-27 09:16:22 +08:00
|
|
|
|
|
|
|
|
2008-03-01 17:15:35 +08:00
|
|
|
define internal i32 @callee(i32 %A, i32 %B) {
|
|
|
|
%C = sdiv i32 %A, %B ; <i32> [#uses=1]
|
|
|
|
ret i32 %C
|
2006-05-27 09:16:22 +08:00
|
|
|
}
|
|
|
|
|
2008-03-01 17:15:35 +08:00
|
|
|
define i32 @test() {
|
|
|
|
%X = call i32 @callee( i32 10, i32 3 ) ; <i32> [#uses=1]
|
|
|
|
ret i32 %X
|
2006-05-27 09:16:22 +08:00
|
|
|
}
|
2008-03-01 17:15:35 +08:00
|
|
|
|