mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 23:17:16 +00:00
The powers that be have decided that LLVM IR should now support 16-bit
"half precision" floating-point with a first-class type. This patch adds basic IR support (but not codegen support). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146786 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -2848,7 +2848,9 @@ Instruction *InstCombiner::visitFCmpInst(FCmpInst &I) {
|
||||
|
||||
const fltSemantics *Sem;
|
||||
// FIXME: This shouldn't be here.
|
||||
if (LHSExt->getSrcTy()->isFloatTy())
|
||||
if (LHSExt->getSrcTy()->isHalfTy())
|
||||
Sem = &APFloat::IEEEhalf;
|
||||
else if (LHSExt->getSrcTy()->isFloatTy())
|
||||
Sem = &APFloat::IEEEsingle;
|
||||
else if (LHSExt->getSrcTy()->isDoubleTy())
|
||||
Sem = &APFloat::IEEEdouble;
|
||||
|
||||
Reference in New Issue
Block a user