Home | History | Annotate | Download | only in PowerPC
      1 ; RUN: llc -mcpu=pwr7 < %s | FileCheck %s
      2 target datalayout = "E-m:e-i64:64-n32:64"
      3 target triple = "powerpc64-unknown-linux-gnu"
      4 
      5 ; Function Attrs: nounwind
      6 define void @foo(i32 signext %a, i32 signext %b) #0 {
      7 entry:
      8   %cmp = icmp sgt i32 %a, 5
      9   %cmp1 = icmp slt i32 %b, 3
     10   %or.cond = or i1 %cmp, %cmp1
     11   br i1 %or.cond, label %if.then, label %if.else
     12 
     13 ; CHECK-LABEL: @foo
     14 ; CHECK: cmpwi
     15 ; CHECK: cmpwi
     16 ; CHECK: cror
     17 ; CHECK: blr
     18 
     19 if.then:                                          ; preds = %entry
     20   tail call void bitcast (void (...)* @bar to void ()*)() #0
     21   br label %if.end
     22 
     23 if.else:                                          ; preds = %entry
     24   tail call void bitcast (void (...)* @car to void ()*)() #0
     25   br label %if.end
     26 
     27 if.end:                                           ; preds = %if.else, %if.then
     28   ret void
     29 }
     30 
     31 declare void @bar(...)
     32 
     33 declare void @car(...)
     34 
     35 attributes #0 = { nounwind }
     36 
     37