blob: 9526b8d4cdc781066dcf573865cae64a38d2f2c7 [file] [log] [blame]
Dale Johannesene2b448c2010-07-06 23:27:00 +00001; RUN: llc < %s -mtriple=x86_64-apple-darwin | FileCheck %s
Dale Johannesen24bb7bd2010-07-13 18:14:47 +00002; PR 4752
Dale Johannesene2b448c2010-07-06 23:27:00 +00003
4@n = global i32 0 ; <i32*> [#uses=2]
5
6define void @f(i32*) nounwind ssp {
7 ret void
8}
9
10define void @g() nounwind ssp {
11entry:
12; CHECK: _g:
13; CHECK: push $_f$_f
14; CHECK: call _f(%rip)
15 call void asm sideeffect "push\09$1$1\0A\09call\09${1:a}\0A\09pop\09%edx", "imr,i,~{dirflag},~{fpsr},~{flags},~{memory},~{cc},~{edi},~{esi},~{edx},~{ecx},~{ebx},~{eax}"(i32* @n, void (i32*)* @f) nounwind
16 br label %return
17
18return: ; preds = %entry
19 ret void
20}
21