diff options
author | Richard Osborne <richard@xmos.com> | 2013-01-25 20:20:07 +0000 |
---|---|---|
committer | Richard Osborne <richard@xmos.com> | 2013-01-25 20:20:07 +0000 |
commit | 3b6a5eefe0ab2199bc69094b390b736ae332b905 (patch) | |
tree | 029fc2df61283b322728a1d3022a2f60c0a10264 /lib/Target/XCore/XCoreInstrFormats.td | |
parent | 0e3f4269486ff2b89211e562a55775129fc2646b (diff) | |
download | llvm-3b6a5eefe0ab2199bc69094b390b736ae332b905.tar.gz llvm-3b6a5eefe0ab2199bc69094b390b736ae332b905.tar.bz2 llvm-3b6a5eefe0ab2199bc69094b390b736ae332b905.tar.xz |
Add instruction encodings / disassembly support for l5r instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173479 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/XCore/XCoreInstrFormats.td')
-rw-r--r-- | lib/Target/XCore/XCoreInstrFormats.td | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/Target/XCore/XCoreInstrFormats.td b/lib/Target/XCore/XCoreInstrFormats.td index fa360a7775..624036205c 100644 --- a/lib/Target/XCore/XCoreInstrFormats.td +++ b/lib/Target/XCore/XCoreInstrFormats.td @@ -222,8 +222,13 @@ class _L4R<dag outs, dag ins, string asmstr, list<dag> pattern> : InstXCore<4, outs, ins, asmstr, pattern> { } -class _L5R<dag outs, dag ins, string asmstr, list<dag> pattern> +class _FL5R<bits<6> opc, dag outs, dag ins, string asmstr, list<dag> pattern> : InstXCore<4, outs, ins, asmstr, pattern> { + let Inst{31-27} = opc{5-1}; + let Inst{20} = opc{0}; + let Inst{15-11} = 0b11111; + + let DecoderMethod = "DecodeL5RInstruction"; } class _FL6R<bits<5> opc, dag outs, dag ins, string asmstr, list<dag> pattern> |