brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · 6a6008d Raw
29 lines · plain
1; RUN: llc -mcpu=pwr7 -mattr=+vsx < %s -verify-machineinstrs | FileCheck %s2; RUN: llc -mcpu=pwr7 -mattr=+vsx -fast-isel -O0 < %s -verify-machineinstrs | FileCheck %s3target 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 %return9 10if.then:                                          ; preds = %if.then, %entry11  %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, %call15  br i1 %cmp, label %if.then, label %return16 17return:                                           ; preds = %if.then, %entry18  %z.tr.lcssa = phi double [ %z, %entry ], [ %call4, %if.then ]19  ret double %z.tr.lcssa20 21; CHECK: @takFP22; CHECK-NOT: xxlor 0, 0, 023; CHECK: blr24}25 26attributes #0 = { nounwind readnone }27attributes #1 = { nounwind }28 29