blob: 451b8cbdfd9a8909646c8c2b2197db61efeda6f4 [file] [log] [blame]
Chris Lattner744f19a2009-10-27 05:35:35 +00001; RUN: opt < %s -inline -S | FileCheck %s
Chris Lattnerf4976402002-06-24 17:46:05 +00002
Chris Lattner744f19a2009-10-27 05:35:35 +00003define i32 @test1f(i32 %i) {
Tanya Lattnerec9a35a2008-03-01 09:15:35 +00004 ret i32 %i
Chris Lattnerf4976402002-06-24 17:46:05 +00005}
6
Chris Lattner744f19a2009-10-27 05:35:35 +00007define i32 @test1(i32 %W) {
8 %X = call i32 @test1f(i32 7)
9 %Y = add i32 %X, %W
Tanya Lattnerec9a35a2008-03-01 09:15:35 +000010 ret i32 %Y
Chris Lattner744f19a2009-10-27 05:35:35 +000011; CHECK: @test1(
12; CHECK-NEXT: %Y = add i32 7, %W
13; CHECK-NEXT: ret i32 %Y
Chris Lattnerf4976402002-06-24 17:46:05 +000014}
Tanya Lattnerec9a35a2008-03-01 09:15:35 +000015