mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-09 10:31:14 +00:00
Allow promoted FP_TO_UINT / FP_TO_SINT to expand operand.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32621 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1554c85456
commit
0b1b9dcf22
@ -3155,6 +3155,7 @@ SDOperand SelectionDAGLegalize::PromoteOp(SDOperand Op) {
|
|||||||
case ISD::FP_TO_UINT:
|
case ISD::FP_TO_UINT:
|
||||||
switch (getTypeAction(Node->getOperand(0).getValueType())) {
|
switch (getTypeAction(Node->getOperand(0).getValueType())) {
|
||||||
case Legal:
|
case Legal:
|
||||||
|
case Expand:
|
||||||
Tmp1 = Node->getOperand(0);
|
Tmp1 = Node->getOperand(0);
|
||||||
break;
|
break;
|
||||||
case Promote:
|
case Promote:
|
||||||
@ -3162,8 +3163,6 @@ SDOperand SelectionDAGLegalize::PromoteOp(SDOperand Op) {
|
|||||||
// special.
|
// special.
|
||||||
Tmp1 = PromoteOp(Node->getOperand(0));
|
Tmp1 = PromoteOp(Node->getOperand(0));
|
||||||
break;
|
break;
|
||||||
case Expand:
|
|
||||||
assert(0 && "not implemented");
|
|
||||||
}
|
}
|
||||||
// If we're promoting a UINT to a larger size, check to see if the new node
|
// If we're promoting a UINT to a larger size, check to see if the new node
|
||||||
// will be legal. If it isn't, check to see if FP_TO_SINT is legal, since
|
// will be legal. If it isn't, check to see if FP_TO_SINT is legal, since
|
||||||
|
Loading…
Reference in New Issue
Block a user