diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp --- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp @@ -7913,7 +7913,8 @@ // We have xsmaxc[dq]p/xsminc[dq]p which are OK to emit even in the // presence of infinities. - if (Subtarget.hasP9Vector() && LHS == TV && RHS == FV) { + if (Subtarget.hasP9Vector() && LHS == TV && RHS == FV && + CmpVT != MVT::ppcf128) { switch (CC) { default: break;