Home | History | Annotate | Download | only in PowerPC
      1 ; RUN: llc -mcpu=pwr8 < %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* nocapture %r1, i32* nocapture %r2, i32* nocapture %r3, i32* nocapture %r4, i32 signext %a, i32 signext %b, i32 signext %c, i32 signext %d) #0 {
      7 entry:
      8   %tobool = icmp ne i32 %a, 0
      9   %cond = select i1 %tobool, i32 %b, i32 %c
     10   store i32 %cond, i32* %r1, align 4
     11   %cond5 = select i1 %tobool, i32 %b, i32 %d
     12   store i32 %cond5, i32* %r2, align 4
     13   %add = add nsw i32 %b, 1
     14   %sub = add nsw i32 %d, -2
     15   %cond10 = select i1 %tobool, i32 %add, i32 %sub
     16   store i32 %cond10, i32* %r3, align 4
     17   %add13 = add nsw i32 %b, 3
     18   %sub15 = add nsw i32 %d, -5
     19   %cond17 = select i1 %tobool, i32 %add13, i32 %sub15
     20   store i32 %cond17, i32* %r4, align 4
     21   ret void
     22 }
     23 
     24 ; Make sure that we don't schedule all of the isels together, they should be
     25 ; intermixed with the adds because each isel starts a new dispatch group.
     26 ; CHECK-LABEL: @foo
     27 ; CHECK: isel
     28 ; CHECK: addi
     29 ; CHECK: isel
     30 ; CHECK: blr
     31 
     32 attributes #0 = { nounwind }
     33 
     34