2014-05-12 17:12:45 +02:00
|
|
|
//=- Mips32r6InstrFormats.td - Mips32r6 Instruction Formats -*- tablegen -*-==//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file describes Mips32r6 instruction formats.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
class MipsR6Inst : MipsInst<(outs), (ins), "", [], NoItinerary, FrmOther>,
|
|
|
|
PredicateControl {
|
|
|
|
let DecoderNamespace = "Mips32r6_64r6";
|
|
|
|
let EncodingPredicates = [HasStdEnc];
|
|
|
|
}
|
|
|
|
|
|
|
|
class SPECIAL_3R_FM<bits<5> mulop, bits<6> funct> : MipsR6Inst {
|
|
|
|
bits<5> rd;
|
|
|
|
bits<5> rs;
|
|
|
|
bits<5> rt;
|
|
|
|
|
|
|
|
bits<32> Inst;
|
|
|
|
|
2014-05-12 17:43:41 +02:00
|
|
|
let Inst{31-26} = 0b00000;
|
2014-05-12 17:12:45 +02:00
|
|
|
let Inst{25-21} = rs;
|
|
|
|
let Inst{20-16} = rt;
|
|
|
|
let Inst{15-11} = rd;
|
|
|
|
let Inst{10-6} = mulop;
|
|
|
|
let Inst{5-0} = funct;
|
|
|
|
}
|
2014-05-12 17:43:41 +02:00
|
|
|
|