Home | History | Annotate | Download | only in PowerPC
      1 ; RUN: llc < %s | FileCheck %s
      2 target datalayout = "E-m:e-i64:64-n32:64"
      3 target triple = "powerpc64-bgq-linux"
      4 
      5 declare zeroext i1 @ri1()
      6 declare void @se1()
      7 declare void @se2()
      8 
      9 define void @test() #0 {
     10 entry:
     11   %b = call zeroext i1 @ri1()
     12   br label %next
     13 
     14 ; CHECK-LABEL: @test
     15 ; CHECK: bl ri1
     16 ; CHECK-NEXT: nop
     17 ; CHECK: andi. 3, 3, 1
     18 
     19 next:
     20   br i1 %b, label %case1, label %case2
     21 
     22 case1:
     23   call void @se1()
     24   br label %end
     25 
     26 case2:
     27   call void @se2()
     28   br label %end
     29 
     30 end:
     31   ret void
     32 
     33 ; CHECK: blr
     34 }
     35 
     36 attributes #0 = { noinline optnone }
     37 
     38