mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-10 04:33:40 +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:
parent
cbc09c8eaa
commit
5e3c5b4e13
@ -2404,6 +2404,11 @@ SDOperand SelectionDAGLegalize::PromoteOp(SDOperand Op) {
|
||||
}
|
||||
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_UINT:
|
||||
switch (getTypeAction(Node->getOperand(0).getValueType())) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user