mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-01 12:24:24 +00:00
ADR was added with the wrong encoding for inst{24-21}, and the ARM decoder was fooled.
Set the encoding bits to {0,?,?,0}, not 0. Plus delegate the disassembly of ADR to the more generic ADDri/SUBri instructions, and add a test case for that. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128234 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1584,6 +1584,10 @@ ARMDEBackend::populateInstruction(const CodeGenInstruction &CGI,
|
||||
Name == "MOVr_TC")
|
||||
return false;
|
||||
|
||||
// Delegate ADR disassembly to the more generic ADDri/SUBri instructions.
|
||||
if (Name == "ADR")
|
||||
return false;
|
||||
|
||||
//
|
||||
// The following special cases are for conflict resolutions.
|
||||
//
|
||||
|
Reference in New Issue
Block a user