Home | History | Annotate | Download | only in X86
      1 ; RUN: llc -asm-verbose=true < %s | FileCheck %s
      2 
      3 ; MachineLICM should check dominance before hoisting instructions.
      4 ; CHECK: ## in Loop:
      5 ; CHECK-NEXT:	xorl	%eax, %eax
      6 ; CHECK-NEXT:	testb	%al, %al
      7 
      8 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"
      9 target triple = "x86_64-apple-macosx10.7.2"
     10 
     11 define void @CMSColorWorldCreateParametricData() nounwind uwtable optsize ssp {
     12 entry:
     13   br label %for.body.i
     14 
     15 for.body.i:                                       
     16   br i1 undef, label %for.inc.i, label %if.then26.i
     17 
     18 if.then26.i:                                      
     19   br i1 undef, label %if.else.i.i, label %lor.lhs.false.i.i
     20 
     21 if.else.i.i:                                      
     22   br i1 undef, label %lor.lhs.false.i.i, label %if.then116.i.i
     23 
     24 lor.lhs.false.i.i:                                
     25   br i1 undef, label %for.inc.i, label %if.then116.i.i
     26 
     27 if.then116.i.i:                                   
     28   unreachable
     29 
     30 for.inc.i:                                        
     31   %cmp17.i = icmp ult i64 undef, undef
     32   br i1 %cmp17.i, label %for.body.i, label %if.end28.i
     33 
     34 if.end28.i:                                       
     35   ret void
     36 }
     37