mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-21 21:29:41 +00:00
More APInt-ification.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47864 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7194aaf738
commit
050f550aeb
@ -5760,9 +5760,10 @@ void SelectionDAGLegalize::ExpandOp(SDOperand Op, SDOperand &Lo, SDOperand &Hi){
|
||||
Hi = DAG.getNode(ISD::UNDEF, NVT);
|
||||
break;
|
||||
case ISD::Constant: {
|
||||
uint64_t Cst = cast<ConstantSDNode>(Node)->getValue();
|
||||
Lo = DAG.getConstant(Cst, NVT);
|
||||
Hi = DAG.getConstant(Cst >> MVT::getSizeInBits(NVT), NVT);
|
||||
unsigned NVTBits = MVT::getSizeInBits(NVT);
|
||||
const APInt &Cst = cast<ConstantSDNode>(Node)->getAPIntValue();
|
||||
Lo = DAG.getConstant(APInt(Cst).trunc(NVTBits), NVT);
|
||||
Hi = DAG.getConstant(Cst.lshr(NVTBits).trunc(NVTBits), NVT);
|
||||
break;
|
||||
}
|
||||
case ISD::ConstantFP: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user