llvm/test/CodeGen/AArch64/tailcall_misched_graph.ll: s/REQUIRE/REQUIRES/
[oota-llvm.git] / test / CodeGen / PowerPC / vsx-self-copy.ll
1 ; RUN: llc -mcpu=pwr7 -mattr=+vsx < %s | FileCheck %s
2 ; RUN: llc -mcpu=pwr7 -mattr=+vsx -fast-isel -O0 < %s | FileCheck %s
3 target datalayout = "E-m:e-i64:64-n32:64"
4 target triple = "powerpc64-unknown-linux-gnu"
5
6 define double @takFP(double %x, double %y, double %z) #0 {
7 entry:
8   br i1 undef, label %if.then, label %return
9
10 if.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
17 return:                                           ; 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
26 attributes #0 = { nounwind readnone }
27 attributes #1 = { nounwind }
28