1263320SdimPull in r199031 from upstream llvm trunk (by Venkatraman Govindaraju): 2263320Sdim 3263320Sdim [Sparc] Replace (unsigned)-1 with ~OU as suggested by Reid Kleckner. 4263320Sdim 5269012SemasteIntroduced here: http://svnweb.freebsd.org/changeset/base/262261 6263320Sdim 7263320SdimIndex: lib/Target/Sparc/Disassembler/SparcDisassembler.cpp 8263320Sdim=================================================================== 9263320Sdim--- lib/Target/Sparc/Disassembler/SparcDisassembler.cpp 10263320Sdim+++ lib/Target/Sparc/Disassembler/SparcDisassembler.cpp 11263320Sdim@@ -104,14 +104,14 @@ static const unsigned DFPRegDecoderTable[] = { 12263320Sdim SP::D14, SP::D30, SP::D15, SP::D31 }; 13263320Sdim 14263320Sdim static const unsigned QFPRegDecoderTable[] = { 15263320Sdim- SP::Q0, SP::Q8, (unsigned)-1, (unsigned)-1, 16263320Sdim- SP::Q1, SP::Q9, (unsigned)-1, (unsigned)-1, 17263320Sdim- SP::Q2, SP::Q10, (unsigned)-1, (unsigned)-1, 18263320Sdim- SP::Q3, SP::Q11, (unsigned)-1, (unsigned)-1, 19263320Sdim- SP::Q4, SP::Q12, (unsigned)-1, (unsigned)-1, 20263320Sdim- SP::Q5, SP::Q13, (unsigned)-1, (unsigned)-1, 21263320Sdim- SP::Q6, SP::Q14, (unsigned)-1, (unsigned)-1, 22263320Sdim- SP::Q7, SP::Q15, (unsigned)-1, (unsigned)-1 } ; 23263320Sdim+ SP::Q0, SP::Q8, ~0U, ~0U, 24263320Sdim+ SP::Q1, SP::Q9, ~0U, ~0U, 25263320Sdim+ SP::Q2, SP::Q10, ~0U, ~0U, 26263320Sdim+ SP::Q3, SP::Q11, ~0U, ~0U, 27263320Sdim+ SP::Q4, SP::Q12, ~0U, ~0U, 28263320Sdim+ SP::Q5, SP::Q13, ~0U, ~0U, 29263320Sdim+ SP::Q6, SP::Q14, ~0U, ~0U, 30263320Sdim+ SP::Q7, SP::Q15, ~0U, ~0U } ; 31263320Sdim 32263320Sdim static DecodeStatus DecodeIntRegsRegisterClass(MCInst &Inst, 33263320Sdim unsigned RegNo, 34263320Sdim@@ -168,7 +168,7 @@ static DecodeStatus DecodeQFPRegsRegisterClass(MCI 35263320Sdim return MCDisassembler::Fail; 36263320Sdim 37263320Sdim unsigned Reg = QFPRegDecoderTable[RegNo]; 38263320Sdim- if (Reg == (unsigned)-1) 39263320Sdim+ if (Reg == ~0U) 40263320Sdim return MCDisassembler::Fail; 41263320Sdim Inst.addOperand(MCOperand::CreateReg(Reg)); 42263320Sdim return MCDisassembler::Success; 43