mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-01 12:24:24 +00:00
Replace some bit operations with simpler ones. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182226 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1224,7 +1224,7 @@ static DecodeStatus DecodeRegListOperand(MCInst &Inst, unsigned Val,
|
||||
}
|
||||
|
||||
// Empty register lists are not allowed.
|
||||
if (CountPopulation_32(Val) == 0) return MCDisassembler::Fail;
|
||||
if (Val == 0) return MCDisassembler::Fail;
|
||||
for (unsigned i = 0; i < 16; ++i) {
|
||||
if (Val & (1 << i)) {
|
||||
if (!Check(S, DecodeGPRRegisterClass(Inst, i, Address, Decoder)))
|
||||
|
Reference in New Issue
Block a user