mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-21 02:24:22 +00:00
[Sparc] Replace (unsigned)-1 with ~OU as suggested by Reid Kleckner.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199031 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -104,14 +104,14 @@ static const unsigned DFPRegDecoderTable[] = {
|
|||||||
SP::D14, SP::D30, SP::D15, SP::D31 };
|
SP::D14, SP::D30, SP::D15, SP::D31 };
|
||||||
|
|
||||||
static const unsigned QFPRegDecoderTable[] = {
|
static const unsigned QFPRegDecoderTable[] = {
|
||||||
SP::Q0, SP::Q8, (unsigned)-1, (unsigned)-1,
|
SP::Q0, SP::Q8, ~0U, ~0U,
|
||||||
SP::Q1, SP::Q9, (unsigned)-1, (unsigned)-1,
|
SP::Q1, SP::Q9, ~0U, ~0U,
|
||||||
SP::Q2, SP::Q10, (unsigned)-1, (unsigned)-1,
|
SP::Q2, SP::Q10, ~0U, ~0U,
|
||||||
SP::Q3, SP::Q11, (unsigned)-1, (unsigned)-1,
|
SP::Q3, SP::Q11, ~0U, ~0U,
|
||||||
SP::Q4, SP::Q12, (unsigned)-1, (unsigned)-1,
|
SP::Q4, SP::Q12, ~0U, ~0U,
|
||||||
SP::Q5, SP::Q13, (unsigned)-1, (unsigned)-1,
|
SP::Q5, SP::Q13, ~0U, ~0U,
|
||||||
SP::Q6, SP::Q14, (unsigned)-1, (unsigned)-1,
|
SP::Q6, SP::Q14, ~0U, ~0U,
|
||||||
SP::Q7, SP::Q15, (unsigned)-1, (unsigned)-1 } ;
|
SP::Q7, SP::Q15, ~0U, ~0U } ;
|
||||||
|
|
||||||
static DecodeStatus DecodeIntRegsRegisterClass(MCInst &Inst,
|
static DecodeStatus DecodeIntRegsRegisterClass(MCInst &Inst,
|
||||||
unsigned RegNo,
|
unsigned RegNo,
|
||||||
@ -168,7 +168,7 @@ static DecodeStatus DecodeQFPRegsRegisterClass(MCInst &Inst,
|
|||||||
return MCDisassembler::Fail;
|
return MCDisassembler::Fail;
|
||||||
|
|
||||||
unsigned Reg = QFPRegDecoderTable[RegNo];
|
unsigned Reg = QFPRegDecoderTable[RegNo];
|
||||||
if (Reg == (unsigned)-1)
|
if (Reg == ~0U)
|
||||||
return MCDisassembler::Fail;
|
return MCDisassembler::Fail;
|
||||||
Inst.addOperand(MCOperand::CreateReg(Reg));
|
Inst.addOperand(MCOperand::CreateReg(Reg));
|
||||||
return MCDisassembler::Success;
|
return MCDisassembler::Success;
|
||||||
|
Reference in New Issue
Block a user