Home | History | Annotate | Download | only in X86
      1 ; RUN: llc < %s -mtriple=x86_64-apple-darwin -no-integrated-as | FileCheck %s
      2 ; PR 4752
      3 
      4 @n = global i32 0                                 ; <i32*> [#uses=2]
      5 
      6 define void @f(i32*) nounwind ssp {
      7   ret void
      8 }
      9 
     10 define void @g() nounwind ssp {
     11 entry:
     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 
     18 return:                                           ; preds = %entry
     19   ret void
     20 }
     21 
     22