2012-03-12 19:19:28 +08:00
|
|
|
; RUN: opt < %s -inline -S | FileCheck %s
|
2006-05-27 09:16:22 +08:00
|
|
|
|
2012-03-12 19:19:28 +08:00
|
|
|
define internal i32 @callee1(i32 %A, i32 %B) {
|
|
|
|
%C = sdiv i32 %A, %B
|
|
|
|
ret i32 %C
|
2006-05-27 09:16:22 +08:00
|
|
|
}
|
|
|
|
|
2012-03-12 19:19:28 +08:00
|
|
|
define i32 @caller1() {
|
|
|
|
; CHECK: define i32 @caller1
|
|
|
|
; CHECK-NEXT: ret i32 3
|
2008-03-01 17:15:35 +08:00
|
|
|
|
2012-03-12 19:19:28 +08:00
|
|
|
%X = call i32 @callee1( i32 10, i32 3 )
|
|
|
|
ret i32 %X
|
|
|
|
}
|