mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-27 14:34:58 +00:00
SIGN_EXTEND from the same type as the dest is valid.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98548 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7fb5c2dbec
commit
ed7d10e100
@ -2332,7 +2332,7 @@ SDValue SelectionDAG::getNode(unsigned Opcode, DebugLoc DL,
|
||||
switch (Opcode) {
|
||||
default: break;
|
||||
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::ZERO_EXTEND:
|
||||
case ISD::TRUNCATE:
|
||||
|
Loading…
x
Reference in New Issue
Block a user