1; RUN: llc -mcpu=pwr7 -mattr=+vsx < %s -verify-machineinstrs | FileCheck %s
2; RUN: llc -mcpu=pwr7 -mattr=+vsx -fast-isel -O0 < %s -verify-machineinstrs | FileCheck %s
3target datalayout = "E-m:e-i64:64-n32:64"
4target triple = "powerpc64-unknown-linux-gnu"
5
6define double @takFP(double %x, double %y, double %z) #0 {
7entry:
8  br i1 undef, label %if.then, label %return
9
10if.then:                                          ; preds = %if.then, %entry
11  %x.tr16 = phi double [ %call, %if.then ], [ %x, %entry ]
12  %call = tail call double @takFP(double undef, double undef, double undef)
13  %call4 = tail call double @takFP(double undef, double %x.tr16, double undef)
14  %cmp = fcmp olt double undef, %call
15  br i1 %cmp, label %if.then, label %return
16
17return:                                           ; preds = %if.then, %entry
18  %z.tr.lcssa = phi double [ %z, %entry ], [ %call4, %if.then ]
19  ret double %z.tr.lcssa
20
21; CHECK: @takFP
22; CHECK-NOT: xxlor 0, 0, 0
23; CHECK: blr
24}
25
26attributes #0 = { nounwind readnone }
27attributes #1 = { nounwind }
28
29