2009-09-09 08:09:15 +08:00
|
|
|
; RUN: llc < %s
|
2004-11-07 05:40:51 +08:00
|
|
|
|
2008-02-19 09:41:04 +08:00
|
|
|
define i32 @bar(i32 %x) {
|
|
|
|
ret i32 0
|
2004-08-11 22:16:34 +08:00
|
|
|
}
|
|
|
|
|
2008-02-19 09:41:04 +08:00
|
|
|
define i32 @foo(i32 %x) {
|
|
|
|
%q = call i32 @bar( i32 1 ) ; <i32> [#uses=1]
|
|
|
|
ret i32 %q
|
2004-08-11 22:16:34 +08:00
|
|
|
}
|
|
|
|
|
2008-02-19 09:41:04 +08:00
|
|
|
define i32 @main() {
|
|
|
|
%r = call i32 @foo( i32 2 ) ; <i32> [#uses=1]
|
|
|
|
ret i32 %r
|
2004-08-11 22:16:34 +08:00
|
|
|
}
|
2008-02-19 09:41:04 +08:00
|
|
|
|