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