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