//=- MicroMips64r6InstrFormats.td - 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 microMIPS64r6 instruction formats. // //===----------------------------------------------------------------------===// class DAUI_FM_MMR6 { bits<5> rt; bits<5> rs; bits<16> imm; bits<32> Inst; let Inst{31-26} = 0b111100; let Inst{25-21} = rt; let Inst{20-16} = rs; let Inst{15-0} = imm; } class POOL32I_ADD_IMM_FM_MMR6<bits<5> funct> { bits<5> rs; bits<16> imm; bits<32> Inst; let Inst{31-26} = 0b010000; let Inst{25-21} = funct; let Inst{20-16} = rs; let Inst{15-0} = imm; } class POOL32S_EXTBITS_FM_MMR6<bits<6> funct> { bits<5> rt; bits<5> rs; bits<5> size; bits<5> pos; bits<32> Inst; let Inst{31-26} = 0b010110; let Inst{25-21} = rt; let Inst{20-16} = rs; let Inst{15-11} = size; let Inst{10-6} = pos; let Inst{5-0} = funct; } class POOL32S_DALIGN_FM_MMR6 { bits<5> rs; bits<5> rt; bits<5> rd; bits<3> bp; bits<32> Inst; let Inst{31-26} = 0b010110; let Inst{25-21} = rs; let Inst{20-16} = rt; let Inst{15-11} = rd; let Inst{10-8} = bp; let Inst{7-6} = 0b00; let Inst{5-0} = 0b011100; } class POOL32A_DIVMOD_FM_MMR6<string instr_asm, bits<9> funct> : MMR6Arch<instr_asm> { bits<5> rd; bits<5> rs; bits<5> rt; bits<32> Inst; let Inst{31-26} = 0b010110; let Inst{25-21} = rd; let Inst{20-16} = rs; let Inst{15-11} = rt; let Inst{10-9} = 0b00; let Inst{8-0} = funct; }