Home | History | Annotate | Download | only in X86
      1 ; RUN: llc -march=x86-64 -mcpu=core2 -enable-misched -misched=shuffle -misched-bottomup < %s
      2 ; REQUIRES: asserts
      3 ;
      4 ; Interesting MachineScheduler cases.
      5 ;
      6 ; FIXME: There should be an assert in the coalescer that we're not rematting
      7 ; "not-quite-dead" copies, but that breaks a lot of tests <rdar://problem/11148682>.
      8 
      9 declare void @llvm.memcpy.p0i8.p0i8.i64(i8* nocapture, i8* nocapture, i64, i32, i1) nounwind
     10 
     11 ; From oggenc.
     12 ; After coalescing, we have a dead superreg (RAX) definition.
     13 ;
     14 ; CHECK: xorl %esi, %esi
     15 ; CHECK: movl $32, %ecx
     16 ; CHECK: rep;movsl
     17 define fastcc void @_preextrapolate_helper() nounwind uwtable ssp {
     18 entry:
     19   br i1 undef, label %for.cond.preheader, label %if.end
     20 
     21 for.cond.preheader:                               ; preds = %entry
     22   call void @llvm.memcpy.p0i8.p0i8.i64(i8* undef, i8* null, i64 128, i32 4, i1 false) nounwind
     23   unreachable
     24 
     25 if.end:                                           ; preds = %entry
     26   ret void
     27 }
     28