diff --git a/lib/Target/PowerPC/PPCTargetTransformInfo.cpp b/lib/Target/PowerPC/PPCTargetTransformInfo.cpp index bd0bc0eacee..a13050ec115 100644 --- a/lib/Target/PowerPC/PPCTargetTransformInfo.cpp +++ b/lib/Target/PowerPC/PPCTargetTransformInfo.cpp @@ -429,8 +429,9 @@ bool PPCTTIImpl::mightUseCTR(BasicBlock *BB, TargetLibraryInfo *LibInfo, return true; } else if (isa(J) && - J->getType()->getScalarType()->isPPC_FP128Ty()) { - // Most operations on ppc_f128 values become calls. + (J->getType()->getScalarType()->isFP128Ty() || + J->getType()->getScalarType()->isPPC_FP128Ty())) { + // Most operations on f128 or ppc_f128 values become calls. return true; } else if (isa(J) || isa(J) || isa(J) || isa(J)) { diff --git a/test/CodeGen/PowerPC/ctrloop-fp128.ll b/test/CodeGen/PowerPC/ctrloop-fp128.ll index 0a62cb18ca8..57095413cdb 100644 --- a/test/CodeGen/PowerPC/ctrloop-fp128.ll +++ b/test/CodeGen/PowerPC/ctrloop-fp128.ll @@ -25,8 +25,8 @@ for.end: ; preds = %for.body ret void ; CHECK-LABEL: fmul_ctrloop_fp128 -; CHECK: call void @llvm.set.loop.iterations.i64(i64 4) -; CHECK: call i1 @llvm.loop.decrement.i64(i64 1) +; CHECK-NOT: call void @llvm.set.loop.iterations.i64(i64 4) +; CHECK-NOT: call i1 @llvm.loop.decrement.i64(i64 1) } declare void @obfuscate(i8*, ...) local_unnamed_addr #2