Home | History | Annotate | Download | only in X86
      1 ; RUN: llc < %s -mtriple=i386-apple-darwin   | FileCheck %s -check-prefix=32
      2 ; RUN: llc < %s -mtriple=x86_64-apple-darwin | FileCheck %s -check-prefix=64
      3 
      4 %struct.p = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
      5 
      6 define i32 @f(%struct.p* byval align 4 %q) nounwind ssp {
      7 entry:
      8 ; 32: _f:
      9 ; 32: jmp L_g$stub
     10 
     11 ; 64: _f:
     12 ; 64: jmp _g
     13   %call = tail call i32 @g(%struct.p* byval align 4 %q) nounwind
     14   ret i32 %call
     15 }
     16 
     17 declare i32 @g(%struct.p* byval align 4)
     18 
     19 define i32 @h(%struct.p* byval align 4 %q, i32 %r) nounwind ssp {
     20 entry:
     21 ; 32: _h:
     22 ; 32: jmp L_i$stub
     23 
     24 ; 64: _h:
     25 ; 64: jmp _i
     26 
     27   %call = tail call i32 @i(%struct.p* byval align 4 %q, i32 %r) nounwind
     28   ret i32 %call
     29 }
     30 
     31 declare i32 @i(%struct.p* byval align 4, i32)
     32