From a68c64fbb2f1bee7f9313f3ee19c35677563f974 Mon Sep 17 00:00:00 2001 From: Richard Osborne Date: Sun, 20 Jan 2013 17:22:43 +0000 Subject: 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 --- lib/Target/XCore/XCoreInstrFormats.td | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'lib/Target/XCore/XCoreInstrFormats.td') diff --git a/lib/Target/XCore/XCoreInstrFormats.td b/lib/Target/XCore/XCoreInstrFormats.td index b3c209328f..e65d477b7c 100644 --- a/lib/Target/XCore/XCoreInstrFormats.td +++ b/lib/Target/XCore/XCoreInstrFormats.td @@ -43,8 +43,17 @@ class _FL3R pattern> : InstXCore<4, outs, ins, asmstr, pattern> { } -class _F2RUS pattern> +class _F2RUS opc, dag outs, dag ins, string asmstr, list pattern> : InstXCore<2, outs, ins, asmstr, pattern> { + let Inst{15-11} = opc; + let DecoderMethod = "Decode2RUSInstruction"; +} + +// 2RUS with bitp operand +class _F2RUSBitp opc, dag outs, dag ins, string asmstr, + list pattern> + : _F2RUS { + let DecoderMethod = "Decode2RUSBitpInstruction"; } class _FL2RUS pattern> -- cgit v1.2.3