Fix encoding and add parsing support for the arm/thumb CPS instruction:
- Add custom operand matching for imod and iflags. - Rename SplitMnemonicAndCC to SplitMnemonic since it splits more than CC from mnemonic. - While adding ".w" as an operand, don't change "Head" to avoid passing the wrong mnemonic to ParseOperand. - Add asm parser tests. - Add disassembler tests just to make sure it can catch all cps versions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125489 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- lib/Target/ARM/ARMBaseInfo.h 30 additions, 0 deletionslib/Target/ARM/ARMBaseInfo.h
- lib/Target/ARM/ARMInstrFormats.td 16 additions, 0 deletionslib/Target/ARM/ARMInstrFormats.td
- lib/Target/ARM/ARMInstrInfo.td 29 additions, 13 deletionslib/Target/ARM/ARMInstrInfo.td
- lib/Target/ARM/ARMInstrThumb.td 9 additions, 13 deletionslib/Target/ARM/ARMInstrThumb.td
- lib/Target/ARM/ARMInstrThumb2.td 30 additions, 31 deletionslib/Target/ARM/ARMInstrThumb2.td
- lib/Target/ARM/AsmParser/ARMAsmParser.cpp 104 additions, 7 deletionslib/Target/ARM/AsmParser/ARMAsmParser.cpp
- lib/Target/ARM/Disassembler/ARMDisassemblerCore.cpp 19 additions, 9 deletionslib/Target/ARM/Disassembler/ARMDisassemblerCore.cpp
- lib/Target/ARM/Disassembler/ThumbDisassemblerCore.h 25 additions, 16 deletionslib/Target/ARM/Disassembler/ThumbDisassemblerCore.h
- lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp 12 additions, 20 deletionslib/Target/ARM/InstPrinter/ARMInstPrinter.cpp
- lib/Target/ARM/InstPrinter/ARMInstPrinter.h 2 additions, 0 deletionslib/Target/ARM/InstPrinter/ARMInstPrinter.h
- test/MC/ARM/arm_instructions.s 9 additions, 0 deletionstest/MC/ARM/arm_instructions.s
- test/MC/ARM/thumb.s 3 additions, 0 deletionstest/MC/ARM/thumb.s
- test/MC/ARM/thumb2.s 7 additions, 0 deletionstest/MC/ARM/thumb2.s
- test/MC/Disassembler/ARM/arm-tests.txt 9 additions, 0 deletionstest/MC/Disassembler/ARM/arm-tests.txt
- test/MC/Disassembler/ARM/thumb-tests.txt 12 additions, 0 deletionstest/MC/Disassembler/ARM/thumb-tests.txt
- utils/TableGen/EDEmitter.cpp 2 additions, 0 deletionsutils/TableGen/EDEmitter.cpp
Loading
Please register or sign in to comment