return true;
StringRef V = S.substr(2);
APInt A(V.size()*4, V, 16);
- Result = APInt(A.getActiveBits(),
- ArrayRef<uint64_t>(A.getRawData(), A.getNumWords()));
+ Result = A.zextOrTrunc(A.getActiveBits());
return false;
}
// and the low 64 bits here.
if (DAG.getDataLayout().isBigEndian() &&
CN->getValueType(0).getSimpleVT() == llvm::MVT::ppcf128) {
- uint64_t words[2] = { CN->getValueAPF().bitcastToAPInt().getRawData()[1],
- CN->getValueAPF().bitcastToAPInt().getRawData()[0] };
- APInt Val(128, words);
+ APInt Val = CN->getValueAPF().bitcastToAPInt().rotl(64);
return DAG.getConstant(Val, SDLoc(CN),
TLI.getTypeToTransformTo(*DAG.getContext(),
CN->getValueType(0)));
APInt C = cast<ConstantFPSDNode>(N)->getValueAPF().bitcastToAPInt();
SDLoc dl(N);
Lo = DAG.getConstantFP(APFloat(DAG.EVTToAPFloatSemantics(NVT),
- APInt(64, C.getRawData()[1])),
+ C.extractBits(64, 64)),
dl, NVT);
Hi = DAG.getConstantFP(APFloat(DAG.EVTToAPFloatSemantics(NVT),
- APInt(64, C.getRawData()[0])),
+ C.extractBits(64, 0)),
dl, NVT);
}
// FP immediates are used only when setting GPRs, so they may be dealt
// with like regular immediates from this point on.
auto Expr = HexagonMCExpr::create(
- MCConstantExpr::create(*Val.bitcastToAPInt().getRawData(),
+ MCConstantExpr::create(Val.bitcastToAPInt().getZExtValue(),
AP.OutContext),
AP.OutContext);
HexagonMCInstrInfo::setMustExtend(*Expr, MustExtend);