aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/ARM/ARMInstrFormats.td
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2008-11-03 18:38:31 +0000
committerJim Grosbach <grosbach@apple.com>2008-11-03 18:38:31 +0000
commit0a4b9dc9b127c3fae6069f85a7858db5a06ff3a8 (patch)
tree191349b977fea1fecd07eb9bae403a0580887291 /lib/Target/ARM/ARMInstrFormats.td
parent58d43d4a41b21085c063bdd21a2abb68056e2a6f (diff)
downloadexternal_llvm-0a4b9dc9b127c3fae6069f85a7858db5a06ff3a8.zip
external_llvm-0a4b9dc9b127c3fae6069f85a7858db5a06ff3a8.tar.gz
external_llvm-0a4b9dc9b127c3fae6069f85a7858db5a06ff3a8.tar.bz2
Add binary encoding support for multiply instructions. Some blanks left to fill in, but the basics are there.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58626 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMInstrFormats.td')
-rw-r--r--lib/Target/ARM/ARMInstrFormats.td22
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMInstrFormats.td b/lib/Target/ARM/ARMInstrFormats.td
index 80ffabe..5a76ffa 100644
--- a/lib/Target/ARM/ARMInstrFormats.td
+++ b/lib/Target/ARM/ARMInstrFormats.td
@@ -659,6 +659,28 @@ class AXI4st<bits<4> opcod, dag oops, dag iops, Format f, string asm,
let Inst{27-25} = 0b100;
}
+// addrmode6
+// Unsigned multiply, multiply-accumulate instructions.
+class AI6<bits<4> opcod, dag oops, dag iops, Format f, string opc,
+ string asm, list<dag> pattern>
+ : I<opcod, oops, iops, AddrMode6, Size4Bytes, IndexModeNone, f, opc,
+ asm,"",pattern>
+{
+ // FIXME: bits 7-4 should be a sub-mode (for SMLAxx, SMLAWy, ...)
+ let Inst{7-4} = 0b1001;
+ let Inst{27-24} = 0b0000;
+ let Inst{23-20} = opcod;
+}
+class AsI6<bits<4> opcod, dag oops, dag iops, Format f, string opc,
+ string asm, list<dag> pattern>
+ : sI<opcod, oops, iops, AddrMode6, Size4Bytes, IndexModeNone, f, opc,
+ asm,"",pattern>
+{
+ // FIXME: bits 7-4 should be a sub-mode (for SMLAxx, SMLAWy, ...)
+ let Inst{7-4} = 0b1001;
+ let Inst{27-24} = 0b0000;
+ let Inst{23-20} = opcod;
+}
//===----------------------------------------------------------------------===//