mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-19 06:31:18 +00:00
Fix up immediate handling
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25039 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4e4fe664d8
commit
aa6ed8c7cc
@ -54,7 +54,7 @@ def immUExt8inv : PatLeaf<(imm), [{
|
||||
def immSExt16 : PatLeaf<(imm), [{
|
||||
// immSExt16 predicate - True if the immediate fits in a 16-bit sign extended
|
||||
// field. Used by instructions like 'lda'.
|
||||
return (int)N->getValue() == (short)N->getValue();
|
||||
return (int64_t)N->getValue() == (int16_t)N->getValue();
|
||||
}]>;
|
||||
|
||||
def iZAPX : SDNodeXForm<imm, [{
|
||||
|
Loading…
x
Reference in New Issue
Block a user