mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-17 18:24:34 +00:00
Better version of isIntImmediate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22848 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -177,7 +177,7 @@ static bool isIntImmediate(SDOperand N, unsigned& Imm) {
|
|||||||
// test for constant
|
// test for constant
|
||||||
if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(N)) {
|
if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(N)) {
|
||||||
// retrieve value
|
// retrieve value
|
||||||
Imm = (unsigned)CN->getSignExtended();
|
Imm = (unsigned)CN->getValue();
|
||||||
// passes muster
|
// passes muster
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user