1Pull in r199031 from upstream llvm trunk (by Venkatraman Govindaraju): 2 3 [Sparc] Replace (unsigned)-1 with ~OU as suggested by Reid Kleckner. 4 5Introduced here: http://svnweb.freebsd.org/changeset/base/262261 6 7Index: lib/Target/Sparc/Disassembler/SparcDisassembler.cpp 8=================================================================== 9--- lib/Target/Sparc/Disassembler/SparcDisassembler.cpp 10+++ lib/Target/Sparc/Disassembler/SparcDisassembler.cpp 11@@ -104,14 +104,14 @@ static const unsigned DFPRegDecoderTable[] = { 12 SP::D14, SP::D30, SP::D15, SP::D31 }; 13 14 static const unsigned QFPRegDecoderTable[] = { 15- SP::Q0, SP::Q8, (unsigned)-1, (unsigned)-1, 16- SP::Q1, SP::Q9, (unsigned)-1, (unsigned)-1, 17- SP::Q2, SP::Q10, (unsigned)-1, (unsigned)-1, 18- SP::Q3, SP::Q11, (unsigned)-1, (unsigned)-1, 19- SP::Q4, SP::Q12, (unsigned)-1, (unsigned)-1, 20- SP::Q5, SP::Q13, (unsigned)-1, (unsigned)-1, 21- SP::Q6, SP::Q14, (unsigned)-1, (unsigned)-1, 22- SP::Q7, SP::Q15, (unsigned)-1, (unsigned)-1 } ; 23+ SP::Q0, SP::Q8, ~0U, ~0U, 24+ SP::Q1, SP::Q9, ~0U, ~0U, 25+ SP::Q2, SP::Q10, ~0U, ~0U, 26+ SP::Q3, SP::Q11, ~0U, ~0U, 27+ SP::Q4, SP::Q12, ~0U, ~0U, 28+ SP::Q5, SP::Q13, ~0U, ~0U, 29+ SP::Q6, SP::Q14, ~0U, ~0U, 30+ SP::Q7, SP::Q15, ~0U, ~0U } ; 31 32 static DecodeStatus DecodeIntRegsRegisterClass(MCInst &Inst, 33 unsigned RegNo, 34@@ -168,7 +168,7 @@ static DecodeStatus DecodeQFPRegsRegisterClass(MCI 35 return MCDisassembler::Fail; 36 37 unsigned Reg = QFPRegDecoderTable[RegNo]; 38- if (Reg == (unsigned)-1) 39+ if (Reg == ~0U) 40 return MCDisassembler::Fail; 41 Inst.addOperand(MCOperand::CreateReg(Reg)); 42 return MCDisassembler::Success; 43