mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-30 20:24:32 +00:00
ARM: fix VMOVvnf32 decoding when ambiguous with VCVT
Enforce Table A7-15 (op=1, cmode=0b111) -> UNDEF git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183612 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -4470,11 +4470,13 @@ static DecodeStatus DecodeVCVTD(MCInst &Inst, unsigned Insn,
|
||||
Vm |= (fieldFromInstruction(Insn, 5, 1) << 4);
|
||||
unsigned imm = fieldFromInstruction(Insn, 16, 6);
|
||||
unsigned cmode = fieldFromInstruction(Insn, 8, 4);
|
||||
unsigned op = fieldFromInstruction(Insn, 5, 1);
|
||||
|
||||
DecodeStatus S = MCDisassembler::Success;
|
||||
|
||||
// VMOVv2f32 is ambiguous with these decodings.
|
||||
if (!(imm & 0x38) && cmode == 0xF) {
|
||||
if (op == 1) return MCDisassembler::Fail;
|
||||
Inst.setOpcode(ARM::VMOVv2f32);
|
||||
return DecodeNEONModImmInstruction(Inst, Insn, Address, Decoder);
|
||||
}
|
||||
@ -4498,11 +4500,13 @@ static DecodeStatus DecodeVCVTQ(MCInst &Inst, unsigned Insn,
|
||||
Vm |= (fieldFromInstruction(Insn, 5, 1) << 4);
|
||||
unsigned imm = fieldFromInstruction(Insn, 16, 6);
|
||||
unsigned cmode = fieldFromInstruction(Insn, 8, 4);
|
||||
unsigned op = fieldFromInstruction(Insn, 5, 1);
|
||||
|
||||
DecodeStatus S = MCDisassembler::Success;
|
||||
|
||||
// VMOVv4f32 is ambiguous with these decodings.
|
||||
if (!(imm & 0x38) && cmode == 0xF) {
|
||||
if (op == 1) return MCDisassembler::Fail;
|
||||
Inst.setOpcode(ARM::VMOVv4f32);
|
||||
return DecodeNEONModImmInstruction(Inst, Insn, Address, Decoder);
|
||||
}
|
||||
|
Reference in New Issue
Block a user