2009-10-27 13:35:35 +08:00
|
|
|
; RUN: opt < %s -inline -S | FileCheck %s
|
2002-06-25 01:46:05 +08:00
|
|
|
|
2009-10-27 13:35:35 +08:00
|
|
|
define i32 @test1f(i32 %i) {
|
2008-03-01 17:15:35 +08:00
|
|
|
ret i32 %i
|
2002-06-25 01:46:05 +08:00
|
|
|
}
|
|
|
|
|
2009-10-27 13:35:35 +08:00
|
|
|
define i32 @test1(i32 %W) {
|
|
|
|
%X = call i32 @test1f(i32 7)
|
|
|
|
%Y = add i32 %X, %W
|
2008-03-01 17:15:35 +08:00
|
|
|
ret i32 %Y
|
2009-10-27 13:35:35 +08:00
|
|
|
; CHECK: @test1(
|
|
|
|
; CHECK-NEXT: %Y = add i32 7, %W
|
|
|
|
; CHECK-NEXT: ret i32 %Y
|
2002-06-25 01:46:05 +08:00
|
|
|
}
|
2008-03-01 17:15:35 +08:00
|
|
|
|