mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 23:17:16 +00:00
InstCombine: APFloat can't perform arithmetic on PPC double doubles, don't even try.
Thanks Eli! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128676 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -2769,6 +2769,10 @@ Instruction *InstCombiner::visitFCmpInst(FCmpInst &I) {
|
||||
if (!RHSF)
|
||||
break;
|
||||
|
||||
// We can't convert a PPC double double.
|
||||
if (RHSF->getType()->isPPC_FP128Ty())
|
||||
break;
|
||||
|
||||
const fltSemantics *Sem;
|
||||
// FIXME: This shouldn't be here.
|
||||
if (LHSExt->getSrcTy()->isFloatTy())
|
||||
@@ -2779,8 +2783,6 @@ Instruction *InstCombiner::visitFCmpInst(FCmpInst &I) {
|
||||
Sem = &APFloat::IEEEquad;
|
||||
else if (LHSExt->getSrcTy()->isX86_FP80Ty())
|
||||
Sem = &APFloat::x87DoubleExtended;
|
||||
else if (LHSExt->getSrcTy()->isPPC_FP128Ty())
|
||||
Sem = &APFloat::PPCDoubleDouble;
|
||||
else
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user