mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
Teach legalize how to promote sext_inreg to fix a problem Andrew pointed
out to me. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24644 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -2404,6 +2404,11 @@ SDOperand SelectionDAGLegalize::PromoteOp(SDOperand Op) {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case ISD::SIGN_EXTEND_INREG:
|
||||||
|
Result = PromoteOp(Node->getOperand(0));
|
||||||
|
Result = DAG.getNode(ISD::SIGN_EXTEND_INREG, NVT, Result,
|
||||||
|
Node->getOperand(1));
|
||||||
|
break;
|
||||||
case ISD::FP_TO_SINT:
|
case ISD::FP_TO_SINT:
|
||||||
case ISD::FP_TO_UINT:
|
case ISD::FP_TO_UINT:
|
||||||
switch (getTypeAction(Node->getOperand(0).getValueType())) {
|
switch (getTypeAction(Node->getOperand(0).getValueType())) {
|
||||||
|
Reference in New Issue
Block a user