summaryrefslogtreecommitdiff
path: root/lib/Target/XCore/XCoreInstrFormats.td
diff options
context:
space:
mode:
authorRichard Osborne <richard@xmos.com>2013-01-21 20:44:17 +0000
committerRichard Osborne <richard@xmos.com>2013-01-21 20:44:17 +0000
commit8da543434664986ac19f4753a691fb613ba80778 (patch)
treed74a16cfe94962ea0a06c53791e2e5f11dced5b1 /lib/Target/XCore/XCoreInstrFormats.td
parent9b709f8b3f3fa6e9bfb5007b70e096f6192f3ef8 (diff)
downloadllvm-8da543434664986ac19f4753a691fb613ba80778.tar.gz
llvm-8da543434664986ac19f4753a691fb613ba80778.tar.bz2
llvm-8da543434664986ac19f4753a691fb613ba80778.tar.xz
Add instruction encodings / disassembly support for u6 / lu6 instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173086 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/XCore/XCoreInstrFormats.td')
-rw-r--r--lib/Target/XCore/XCoreInstrFormats.td14
1 files changed, 12 insertions, 2 deletions
diff --git a/lib/Target/XCore/XCoreInstrFormats.td b/lib/Target/XCore/XCoreInstrFormats.td
index fa5c0a22bd..0e0aab9e78 100644
--- a/lib/Target/XCore/XCoreInstrFormats.td
+++ b/lib/Target/XCore/XCoreInstrFormats.td
@@ -107,12 +107,22 @@ class _FLRU6<bits<6> opc, dag outs, dag ins, string asmstr, list<dag> pattern>
let Inst{9-0} = b{15-6};
}
-class _FU6<dag outs, dag ins, string asmstr, list<dag> pattern>
+class _FU6<bits<10> opc, dag outs, dag ins, string asmstr, list<dag> pattern>
: InstXCore<2, outs, ins, asmstr, pattern> {
+ bits<6> a;
+
+ let Inst{15-6} = opc;
+ let Inst{5-0} = a;
}
-class _FLU6<dag outs, dag ins, string asmstr, list<dag> pattern>
+class _FLU6<bits<10> opc, dag outs, dag ins, string asmstr, list<dag> pattern>
: InstXCore<4, outs, ins, asmstr, pattern> {
+ bits<16> a;
+
+ let Inst{31-22} = opc;
+ let Inst{21-16} = a{5-0};
+ let Inst{15-10} = 0b111100;
+ let Inst{9-0} = a{15-6};
}
class _FU10<dag outs, dag ins, string asmstr, list<dag> pattern>