mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-02 17:09:05 +00:00
SIGN_EXTEND from the same type as the dest is valid.
llvm-svn: 98548
This commit is contained in:
parent
89c2d22d3d
commit
a8e4282df3
@ -2332,7 +2332,7 @@ SDValue SelectionDAG::getNode(unsigned Opcode, DebugLoc DL,
|
|||||||
switch (Opcode) {
|
switch (Opcode) {
|
||||||
default: break;
|
default: break;
|
||||||
case ISD::SIGN_EXTEND:
|
case ISD::SIGN_EXTEND:
|
||||||
return getConstant(APInt(Val).sext(VT.getSizeInBits()), VT);
|
return getConstant(APInt(Val).sextOrTrunc(VT.getSizeInBits()), VT);
|
||||||
case ISD::ANY_EXTEND:
|
case ISD::ANY_EXTEND:
|
||||||
case ISD::ZERO_EXTEND:
|
case ISD::ZERO_EXTEND:
|
||||||
case ISD::TRUNCATE:
|
case ISD::TRUNCATE:
|
||||||
|
Loading…
Reference in New Issue
Block a user