diff options
author | Richard Osborne <richard@xmos.com> | 2012-12-17 16:28:02 +0000 |
---|---|---|
committer | Richard Osborne <richard@xmos.com> | 2012-12-17 16:28:02 +0000 |
commit | c47793c62c434bd27fee1d243c2081a34d4f3817 (patch) | |
tree | c67dbecb9a16e36c6d7e3df0495ff44fedfd3723 /lib/Target/XCore/XCoreInstrFormats.td | |
parent | 9f84c05705f91686d00d0c200601eaa9df4193f0 (diff) | |
download | external_llvm-c47793c62c434bd27fee1d243c2081a34d4f3817.zip external_llvm-c47793c62c434bd27fee1d243c2081a34d4f3817.tar.gz external_llvm-c47793c62c434bd27fee1d243c2081a34d4f3817.tar.bz2 |
Add instruction encodings / disassembly support for l2r instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170345 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/XCore/XCoreInstrFormats.td')
-rw-r--r-- | lib/Target/XCore/XCoreInstrFormats.td | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/lib/Target/XCore/XCoreInstrFormats.td b/lib/Target/XCore/XCoreInstrFormats.td index cccadae..44ac45c 100644 --- a/lib/Target/XCore/XCoreInstrFormats.td +++ b/lib/Target/XCore/XCoreInstrFormats.td @@ -114,8 +114,21 @@ class _FRUSSrcDstBitp<bits<6> opc, dag outs, dag ins, string asmstr, let DecoderMethod = "DecodeRUSSrcDstBitpInstruction"; } -class _FL2R<dag outs, dag ins, string asmstr, list<dag> pattern> +class _FL2R<bits<10> opc, dag outs, dag ins, string asmstr, list<dag> pattern> : InstXCore<4, outs, ins, asmstr, pattern> { + let Inst{31-27} = opc{9-5}; + let Inst{26-20} = 0b1111110; + let Inst{19-16} = opc{4-1}; + + let Inst{15-11} = 0b11111; + let Inst{4} = opc{0}; + let DecoderMethod = "DecodeL2RInstruction"; +} + +// Same as L2R with last two operands swapped +class _FLR2R<bits<10> opc, dag outs, dag ins, string asmstr, list<dag> pattern> + : _FL2R<opc, outs, ins, asmstr, pattern> { + let DecoderMethod = "DecodeLR2RInstruction"; } class _F1R<bits<6> opc, dag outs, dag ins, string asmstr, list<dag> pattern> |