blob: 12dbac1389a0e8de0e3072db7e403738900c4d48 [file] [log] [blame]
; RUN: llc < %s -mtriple=i386-apple-darwin9 | FileCheck %s -check-prefix=32
; RUN: llc < %s -mtriple=x86_64-apple-darwin | FileCheck %s -check-prefix=64
%struct.p = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
define i32 @f(ptr byval(%struct.p) align 4 %q) nounwind ssp {
entry:
; 32: _f:
; 32: jmp _g
; 64: _f:
; 64: jmp _g
%call = tail call i32 @g(ptr byval(%struct.p) align 4 %q) nounwind
ret i32 %call
}
declare i32 @g(ptr byval(%struct.p) align 4)
define i32 @h(ptr byval(%struct.p) align 4 %q, i32 %r) nounwind ssp {
entry:
; 32: _h:
; 32: jmp _i
; 64: _h:
; 64: jmp _i
%call = tail call i32 @i(ptr byval(%struct.p) align 4 %q, i32 %r) nounwind
ret i32 %call
}
declare i32 @i(ptr byval(%struct.p) align 4, i32)