mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-03-06 11:29:27 +00:00
implement legalization of truncates whose results and sources need to be
truncated, e.g. (truncate:i8 something:i16) on a 32 or 64-bit RISC. llvm-svn: 19879
This commit is contained in:
parent
89cac82479
commit
da7b5277c1
@ -1035,10 +1035,13 @@ SDOperand SelectionDAGLegalize::PromoteOp(SDOperand Op) {
|
||||
if (Result.getValueType() > NVT) // Truncate to NVT instead of VT
|
||||
Result = DAG.getNode(ISD::TRUNCATE, NVT, Result);
|
||||
break;
|
||||
case Promote:
|
||||
// The truncation is not required, because we don't guarantee anything
|
||||
// about high bits anyway.
|
||||
Result = PromoteOp(Node->getOperand(0));
|
||||
break;
|
||||
case Expand:
|
||||
assert(0 && "Cannot handle expand yet");
|
||||
case Promote:
|
||||
assert(0 && "Cannot handle promote-promote yet");
|
||||
}
|
||||
break;
|
||||
case ISD::SIGN_EXTEND:
|
||||
|
Loading…
x
Reference in New Issue
Block a user