Home | History | Annotate | Download | only in Hexagon
      1 ; RUN: llc -march=hexagon < %s | FileCheck %s
      2 
      3 ; Test that the assignment to r29 does not occur in the same packet as the call.
      4 
      5 ; CHECK: call
      6 ; CHECK: }
      7 ; CHECK: r29 = #0
      8 
      9 define protected void @f0(i8* %a0, i8* %a1, ...) local_unnamed_addr {
     10 b0:
     11   call void @llvm.va_start(i8* nonnull undef)
     12   call void @f1()
     13   call void @llvm.stackrestore(i8* null)
     14   ret void
     15 }
     16 
     17 ; Function Attrs: nounwind
     18 declare void @llvm.va_start(i8*) #0
     19 
     20 declare protected void @f1() local_unnamed_addr
     21 
     22 ; Function Attrs: nounwind
     23 declare void @llvm.stackrestore(i8*) #0
     24 
     25 attributes #0 = { nounwind }
     26