diff options
author | JF Bastien <jfb@google.com> | 2016-04-05 00:20:27 +0000 |
---|---|---|
committer | JF Bastien <jfb@google.com> | 2016-04-05 00:20:27 +0000 |
commit | 1c3c223b652c4c78faa90565bc421efb98fc72da (patch) | |
tree | f11dcefd0b758243ab73bf81989ea10cc244ae5c | |
parent | f4cf1c3eb4937b10ae36de561ab9f730b9da9f05 (diff) | |
download | bcm5719-llvm-1c3c223b652c4c78faa90565bc421efb98fc72da.tar.gz bcm5719-llvm-1c3c223b652c4c78faa90565bc421efb98fc72da.zip |
Lanai: fix -Wsign-compare warning
llvm-svn: 265368
-rw-r--r-- | llvm/lib/Target/Lanai/LanaiInstrInfo.td | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/Lanai/LanaiInstrInfo.td b/llvm/lib/Target/Lanai/LanaiInstrInfo.td index 7565920f1f2..70da0d35370 100644 --- a/llvm/lib/Target/Lanai/LanaiInstrInfo.td +++ b/llvm/lib/Target/Lanai/LanaiInstrInfo.td @@ -133,7 +133,7 @@ def i32neg16 : Operand<i32>, PatLeaf<(i32 imm), [{ def i32lo16s : Operand<i32>, PatLeaf<(i32 imm), [{ // i32lo16 predicate - true if the 32-bit immediate has only rightmost 16 // bits set. - return ((N->getSExtValue() & 0xFFFFUL) == N->getSExtValue());}], LO16> { + return ((int64_t)(N->getSExtValue() & 0xFFFFUL) == N->getSExtValue());}], LO16> { let ParserMatchClass = LoImm16AsmOperand; } |