diff options
author | Richard Osborne <richard@xmos.com> | 2013-01-22 22:55:04 +0000 |
---|---|---|
committer | Richard Osborne <richard@xmos.com> | 2013-01-22 22:55:04 +0000 |
commit | 0ec35ac4fcd5c83e2ec35d04fc20db9eb387d289 (patch) | |
tree | 1bbcb8be8f3ba1fe46640810b271f14cff74d286 /lib/Target/XCore/XCoreInstrFormats.td | |
parent | 7ad70bf46adf7a444c3318ba165e0cfd37fdd591 (diff) | |
download | llvm-0ec35ac4fcd5c83e2ec35d04fc20db9eb387d289.tar.gz llvm-0ec35ac4fcd5c83e2ec35d04fc20db9eb387d289.tar.bz2 llvm-0ec35ac4fcd5c83e2ec35d04fc20db9eb387d289.tar.xz |
Add instruction encodings / disassembly support for u10 / lu10 instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173204 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/XCore/XCoreInstrFormats.td')
-rw-r--r-- | lib/Target/XCore/XCoreInstrFormats.td | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/lib/Target/XCore/XCoreInstrFormats.td b/lib/Target/XCore/XCoreInstrFormats.td index 0e0aab9e78..29bc65853d 100644 --- a/lib/Target/XCore/XCoreInstrFormats.td +++ b/lib/Target/XCore/XCoreInstrFormats.td @@ -125,12 +125,22 @@ class _FLU6<bits<10> opc, dag outs, dag ins, string asmstr, list<dag> pattern> let Inst{9-0} = a{15-6}; } -class _FU10<dag outs, dag ins, string asmstr, list<dag> pattern> +class _FU10<bits<6> opc, dag outs, dag ins, string asmstr, list<dag> pattern> : InstXCore<2, outs, ins, asmstr, pattern> { + bits<10> a; + + let Inst{15-10} = opc; + let Inst{9-0} = a; } -class _FLU10<dag outs, dag ins, string asmstr, list<dag> pattern> +class _FLU10<bits<6> opc, dag outs, dag ins, string asmstr, list<dag> pattern> : InstXCore<4, outs, ins, asmstr, pattern> { + bits<20> a; + + let Inst{31-26} = opc; + let Inst{25-16} = a{9-0}; + let Inst{15-10} = 0b111100; + let Inst{9-0} = a{19-10}; } class _F2R<bits<6> opc, dag outs, dag ins, string asmstr, list<dag> pattern> |