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:
parent
474f75e205
commit
b87ac716bc
@ -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…
Reference in New Issue
Block a user