Revert "DI: Fold constant arguments into a single MDString"
[oota-llvm.git] / test / CodeGen / PowerPC / vsx-self-copy.ll
1 ; RUN: llc -mcpu=pwr7 -mattr=+vsx < %s | FileCheck %s
2 target datalayout = "E-m:e-i64:64-n32:64"
3 target triple = "powerpc64-unknown-linux-gnu"
4
5 define double @takFP(double %x, double %y, double %z) #0 {
6 entry:
7   br i1 undef, label %if.then, label %return
8
9 if.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
16 return:                                           ; 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
25 attributes #0 = { nounwind readnone }
26 attributes #1 = { nounwind }
27