1 //=- Mips32r6InstrFormats.td - Mips32r6 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 // This file describes Mips32r6 instruction formats.
12 //===----------------------------------------------------------------------===//
14 class MipsR6Inst : MipsInst<(outs), (ins), "", [], NoItinerary, FrmOther>,
16 let DecoderNamespace = "Mips32r6_64r6";
17 let EncodingPredicates = [HasStdEnc];
20 //===----------------------------------------------------------------------===//
24 //===----------------------------------------------------------------------===//
26 def OPGROUP_COP1 { bits<6> Value = 0b010001; }
27 def OPGROUP_SPECIAL { bits<6> Value = 0b000000; }
29 class FIELD_FMT<bits<5> Val> {
32 def FIELD_FMT_S : FIELD_FMT<0b10000>;
33 def FIELD_FMT_D : FIELD_FMT<0b10001>;
35 //===----------------------------------------------------------------------===//
39 //===----------------------------------------------------------------------===//
41 class COP1_SEL_FM<FIELD_FMT Format> : MipsR6Inst {
48 let Inst{31-26} = OPGROUP_COP1.Value;
49 let Inst{25-21} = Format.Value;
53 let Inst{5-0} = 0b010000;
56 class SPECIAL_3R_FM<bits<5> mulop, bits<6> funct> : MipsR6Inst {
63 let Inst{31-26} = OPGROUP_SPECIAL.Value;
67 let Inst{10-6} = mulop;
68 let Inst{5-0} = funct;