blob: dc1dea7e113ee804f461e02397fd4ed84d91a7bb [file] [log] [blame]
Arnold Schwaighofer97794942007-11-10 10:48:01 +00001; RUN: llvm-as < %s | llc -march=x86 -tailcallopt | grep TAILCALL
2%struct.s = type { i32, i32, i32 }
3
4define fastcc i32 @tailcallee(%struct.s* byval %a) {
5entry:
6 %tmp2 = getelementptr %struct.s* %a, i32 0, i32 0
7 %tmp3 = load i32* %tmp2
8 ret i32 %tmp3
9}
10
11define fastcc i32 @tailcaller(%struct.s* byval %a) {
12entry:
13 %tmp4 = tail call fastcc i32 @tailcallee(%struct.s* %a byval)
14 ret i32 %tmp4
15}