mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-29 13:24:25 +00:00
Q registers are encoded in fields of the same length as D registers. As Q registers are half as many, the ARM reference manual mandates the least significant bit to be zeroed out. Failure to do so should result in an undefined instruction. With this change test/MC/Disassembler/ARM/invalid-VQADD-arm.txt is passing (removed XFAIL).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182279 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1048,7 +1048,7 @@ static const uint16_t QPRDecoderTable[] = {
|
||||
|
||||
static DecodeStatus DecodeQPRRegisterClass(MCInst &Inst, unsigned RegNo,
|
||||
uint64_t Address, const void *Decoder) {
|
||||
if (RegNo > 31)
|
||||
if (RegNo > 31 || (RegNo & 1) != 0)
|
||||
return MCDisassembler::Fail;
|
||||
RegNo >>= 1;
|
||||
|
||||
|
Reference in New Issue
Block a user