1 //===-- MicroMipsDSPInstrFormats.td - Instruction Formats --*- tablegen -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 class MMDSPInst<string opstr = "">
11 : MipsInst<(outs), (ins), "", [], NoItinerary, FrmOther>, PredicateControl {
12 let InsnPredicates = [HasDSP];
13 let AdditionalPredicates = [InMicroMips];
14 string BaseOpcode = opstr;
15 string Arch = "mmdsp";
16 let DecoderNamespace = "MicroMips";
19 class POOL32A_3R_FMT<string opstr, bits<11> op> : MMDSPInst<opstr> {
24 let Inst{31-26} = 0b000000;
31 class POOL32A_AC2R_FMT<string opstr, bits<8> funct> : MMDSPInst<opstr> {
40 let Inst{13-6} = funct;
41 let Inst{5-0} = 0b111100;
44 class POOL32A_2R_FMT<string opstr, bits<10> op> : MMDSPInst<opstr> {
48 let Inst{31-26} = 0b000000;
52 let Inst{5-0} = 0b111100;
55 class POOL32A_2RAC_FMT<string opstr, bits<8> op> : MMDSPInst<opstr> {
60 let Inst{31-26} = 0b000000;
65 let Inst{5-0} = 0b111100;
68 class POOL32A_3RB0_FMT<string opstr, bits<10> op> : MMDSPInst<opstr> {
73 let Inst{31-26} = 0b000000;