mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 21:18:19 +00:00
Eliminated the classification of control registers into %ecr_
and %rcr_, leaving just %cr_ which is what people expect. Updated the disassembler to support this unified register set. Added a testcase to verify that the registers continue to be decoded correctly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103196 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -835,8 +835,7 @@ OperandType RecognizableInstr::typeFromString(const std::string &s,
|
||||
TYPE("opaque512mem", TYPE_M512)
|
||||
TYPE("SEGMENT_REG", TYPE_SEGMENTREG)
|
||||
TYPE("DEBUG_REG", TYPE_DEBUGREG)
|
||||
TYPE("CONTROL_REG_32", TYPE_CR32)
|
||||
TYPE("CONTROL_REG_64", TYPE_CR64)
|
||||
TYPE("CONTROL_REG", TYPE_CONTROLREG)
|
||||
TYPE("offset8", TYPE_MOFFS8)
|
||||
TYPE("offset16", TYPE_MOFFS16)
|
||||
TYPE("offset32", TYPE_MOFFS32)
|
||||
@@ -895,8 +894,7 @@ OperandEncoding RecognizableInstr::roRegisterEncodingFromString
|
||||
ENCODING("VR64", ENCODING_REG)
|
||||
ENCODING("SEGMENT_REG", ENCODING_REG)
|
||||
ENCODING("DEBUG_REG", ENCODING_REG)
|
||||
ENCODING("CONTROL_REG_32", ENCODING_REG)
|
||||
ENCODING("CONTROL_REG_64", ENCODING_REG)
|
||||
ENCODING("CONTROL_REG", ENCODING_REG)
|
||||
errs() << "Unhandled reg/opcode register encoding " << s << "\n";
|
||||
llvm_unreachable("Unhandled reg/opcode register encoding");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user