llvm-project/llvm/test/Transforms/Inline/basictest.ll

16 lines
284 B
LLVM
Raw Normal View History

2009-10-27 13:35:35 +08:00
; RUN: opt < %s -inline -S | FileCheck %s
2009-10-27 13:35:35 +08:00
define i32 @test1f(i32 %i) {
ret i32 %i
}
2009-10-27 13:35:35 +08:00
define i32 @test1(i32 %W) {
%X = call i32 @test1f(i32 7)
%Y = add i32 %X, %W
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
}