From 1c3c223b652c4c78faa90565bc421efb98fc72da Mon Sep 17 00:00:00 2001 From: JF Bastien Date: Tue, 5 Apr 2016 00:20:27 +0000 Subject: [PATCH] Lanai: fix -Wsign-compare warning llvm-svn: 265368 --- llvm/lib/Target/Lanai/LanaiInstrInfo.td | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Target/Lanai/LanaiInstrInfo.td b/llvm/lib/Target/Lanai/LanaiInstrInfo.td index 7565920..70da0d3 100644 --- a/llvm/lib/Target/Lanai/LanaiInstrInfo.td +++ b/llvm/lib/Target/Lanai/LanaiInstrInfo.td @@ -133,7 +133,7 @@ def i32neg16 : Operand, PatLeaf<(i32 imm), [{ def i32lo16s : Operand, 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; } -- 2.7.4