From: Aaron Ballman Date: Mon, 17 Aug 2015 14:25:57 +0000 (+0000) Subject: Correcting a -Woverflow warning where 0xFFFF was overflowing an implicit constant... X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=df09c6b4bf8fc234b7b6b35878dda969c0e0f1d5;p=oota-llvm.git Correcting a -Woverflow warning where 0xFFFF was overflowing an implicit constant conversion. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245220 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/Mips/AsmParser/MipsAsmParser.cpp b/lib/Target/Mips/AsmParser/MipsAsmParser.cpp index 26ce745a8e2..393c9e79cfb 100644 --- a/lib/Target/Mips/AsmParser/MipsAsmParser.cpp +++ b/lib/Target/Mips/AsmParser/MipsAsmParser.cpp @@ -1934,7 +1934,7 @@ bool MipsAsmParser::loadImmediate(int64_t ImmValue, unsigned DstReg, // Traditional behaviour seems to special case this particular value. It's // not clear why other masks are handled differently. if (ImmValue == 0xffffffff) { - emitRI(Mips::LUi, TmpReg, 0xffff, IDLoc, Instructions); + emitRI(Mips::LUi, TmpReg, -1, IDLoc, Instructions); emitRRI(Mips::DSRL32, TmpReg, TmpReg, 0, IDLoc, Instructions); if (UseSrcReg) emitRRR(AdduOp, DstReg, TmpReg, SrcReg, IDLoc, Instructions);