1; RUN: llc -mcpu=pwr7 < %s | FileCheck %s 2target datalayout = "E-m:e-i64:64-n32:64" 3target triple = "powerpc64-unknown-linux-gnu" 4 5; Function Attrs: nounwind 6define void @foo(i32 signext %a, i32 signext %b) #0 { 7entry: 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 19if.then: ; preds = %entry 20 tail call void bitcast (void (...)* @bar to void ()*)() #0 21 br label %if.end 22 23if.else: ; preds = %entry 24 tail call void bitcast (void (...)* @car to void ()*)() #0 25 br label %if.end 26 27if.end: ; preds = %if.else, %if.then 28 ret void 29} 30 31declare void @bar(...) 32 33declare void @car(...) 34 35attributes #0 = { nounwind } 36 37