diff options
author | Richard Osborne <richard@xmos.com> | 2013-01-20 17:22:43 +0000 |
---|---|---|
committer | Richard Osborne <richard@xmos.com> | 2013-01-20 17:22:43 +0000 |
commit | a68c64fbb2f1bee7f9313f3ee19c35677563f974 (patch) | |
tree | 69ebec49ff5874d9c22c4a54f8cc7cbd4770a5c4 /lib/Target/XCore/XCoreInstrFormats.td | |
parent | 62b8786d12ceacafd665d4a1fbb6e90af0ec368c (diff) | |
download | external_llvm-a68c64fbb2f1bee7f9313f3ee19c35677563f974.zip external_llvm-a68c64fbb2f1bee7f9313f3ee19c35677563f974.tar.gz external_llvm-a68c64fbb2f1bee7f9313f3ee19c35677563f974.tar.bz2 |
Add instruction encodings / disassembler support for 2rus instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172985 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/XCore/XCoreInstrFormats.td')
-rw-r--r-- | lib/Target/XCore/XCoreInstrFormats.td | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/Target/XCore/XCoreInstrFormats.td b/lib/Target/XCore/XCoreInstrFormats.td index b3c2093..e65d477 100644 --- a/lib/Target/XCore/XCoreInstrFormats.td +++ b/lib/Target/XCore/XCoreInstrFormats.td @@ -43,8 +43,17 @@ class _FL3R<dag outs, dag ins, string asmstr, list<dag> pattern> : InstXCore<4, outs, ins, asmstr, pattern> { } -class _F2RUS<dag outs, dag ins, string asmstr, list<dag> pattern> +class _F2RUS<bits<5> opc, dag outs, dag ins, string asmstr, list<dag> pattern> : InstXCore<2, outs, ins, asmstr, pattern> { + let Inst{15-11} = opc; + let DecoderMethod = "Decode2RUSInstruction"; +} + +// 2RUS with bitp operand +class _F2RUSBitp<bits<5> opc, dag outs, dag ins, string asmstr, + list<dag> pattern> + : _F2RUS<opc, outs, ins, asmstr, pattern> { + let DecoderMethod = "Decode2RUSBitpInstruction"; } class _FL2RUS<dag outs, dag ins, string asmstr, list<dag> pattern> |