forked from OSchip/llvm-project
parent
a0b67bbed9
commit
9677b60288
|
@ -1970,8 +1970,7 @@ SDValue AMDGPUTargetLowering::LowerFP_TO_FP16(SDValue Op, SelectionDAG &DAG) con
|
||||||
|
|
||||||
SDLoc DL(Op);
|
SDLoc DL(Op);
|
||||||
SDValue N0 = Op.getOperand(0);
|
SDValue N0 = Op.getOperand(0);
|
||||||
MVT SVT = N0.getSimpleValueType();
|
assert (N0.getSimpleValueType() == MVT::f64);
|
||||||
assert(SVT == MVT::f64);
|
|
||||||
|
|
||||||
// f64 -> f16 conversion using round-to-nearest-even rounding mode.
|
// f64 -> f16 conversion using round-to-nearest-even rounding mode.
|
||||||
const unsigned ExpMask = 0x7ff;
|
const unsigned ExpMask = 0x7ff;
|
||||||
|
|
Loading…
Reference in New Issue