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:
Andrew Lenharth 2005-12-29 00:50:08 +00:00
parent 4e4fe664d8
commit aa6ed8c7cc

View File

@ -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, [{