1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 03:53:04 +02:00

Fix up immediate handling

llvm-svn: 25039
This commit is contained in:
Andrew Lenharth 2005-12-29 00:50:08 +00:00
parent 474f75e205
commit b87ac716bc

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