From dd78daa199f653b64b997fdee46db8964e5c50cc Mon Sep 17 00:00:00 2001 From: Richard Osborne Date: Mon, 17 Dec 2012 12:26:29 +0000 Subject: Add instruction encodings / disassembly support for 0r instructions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170322 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/XCore/XCoreInstrFormats.td | 5 ++++- 1 file changed, 4 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 f7fa673db8..c120240d6e 100644 --- a/lib/Target/XCore/XCoreInstrFormats.td +++ b/lib/Target/XCore/XCoreInstrFormats.td @@ -95,8 +95,11 @@ class _F1R opc, dag outs, dag ins, string asmstr, list pattern> let Inst{3-0} = a; } -class _F0R pattern> +class _F0R opc, dag outs, dag ins, string asmstr, list pattern> : InstXCore<2, outs, ins, asmstr, pattern> { + let Inst{15-11} = opc{9-5}; + let Inst{10-5} = 0b111111; + let Inst{4-0} = opc{4-0}; } class _L4R pattern> -- cgit v1.2.3