mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-19 04:29:21 +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:
parent
ed7a9829c6
commit
b454cfd453
@ -177,7 +177,7 @@ static bool isIntImmediate(SDOperand N, unsigned& Imm) {
|
||||
// test for constant
|
||||
if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(N)) {
|
||||
// retrieve value
|
||||
Imm = (unsigned)CN->getSignExtended();
|
||||
Imm = (unsigned)CN->getValue();
|
||||
// passes muster
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user