CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
98 lines
2.4 KiB
TableGen
98 lines
2.4 KiB
TableGen
//===-- MipsMTInstrFormats.td - Mips Instruction Formats ---*- tablegen -*-===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
// Describe the MIPS MT instructions format
|
|
//
|
|
// opcode - operation code.
|
|
// rt - destination register
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
class MipsMTInst : MipsInst<(outs), (ins), "", [], FrmOther> {
|
|
let DecoderNamespace = "Mips";
|
|
let EncodingPredicates = [HasStdEnc];
|
|
}
|
|
|
|
class OPCODE1<bits<1> Val> {
|
|
bits<1> Value = Val;
|
|
}
|
|
|
|
def OPCODE_SC_D : OPCODE1<0b0>;
|
|
def OPCODE_SC_E : OPCODE1<0b1>;
|
|
|
|
class FIELD5<bits<5> Val> {
|
|
bits<5> Value = Val;
|
|
}
|
|
|
|
def FIELD5_1_DMT_EMT : FIELD5<0b00001>;
|
|
def FIELD5_2_DMT_EMT : FIELD5<0b01111>;
|
|
def FIELD5_1_2_DVPE_EVPE : FIELD5<0b00000>;
|
|
def FIELD5_MFTR : FIELD5<0b01000>;
|
|
def FIELD5_MTTR : FIELD5<0b01100>;
|
|
|
|
class COP0_MFMC0_MT<FIELD5 Op1, FIELD5 Op2, OPCODE1 sc> : MipsMTInst {
|
|
bits<32> Inst;
|
|
|
|
bits<5> rt;
|
|
let Inst{31-26} = 0b010000; // COP0
|
|
let Inst{25-21} = 0b01011; // MFMC0
|
|
let Inst{20-16} = rt;
|
|
let Inst{15-11} = Op1.Value;
|
|
let Inst{10-6} = Op2.Value;
|
|
let Inst{5} = sc.Value;
|
|
let Inst{4-3} = 0b00;
|
|
let Inst{2-0} = 0b001;
|
|
}
|
|
|
|
class COP0_MFTTR_MT<FIELD5 Op> : MipsMTInst {
|
|
bits<32> Inst;
|
|
|
|
bits<5> rt;
|
|
bits<5> rd;
|
|
bits<1> u;
|
|
bits<1> h;
|
|
bits<3> sel;
|
|
let Inst{31-26} = 0b010000; // COP0
|
|
let Inst{25-21} = Op.Value; // MFMC0
|
|
let Inst{20-16} = rt;
|
|
let Inst{15-11} = rd;
|
|
let Inst{10-6} = 0b00000; // rx - currently unsupported.
|
|
let Inst{5} = u;
|
|
let Inst{4} = h;
|
|
let Inst{3} = 0b0;
|
|
let Inst{2-0} = sel;
|
|
}
|
|
|
|
class SPECIAL3_MT_FORK : MipsMTInst {
|
|
bits<32> Inst;
|
|
|
|
bits<5> rs;
|
|
bits<5> rt;
|
|
bits<5> rd;
|
|
let Inst{31-26} = 0b011111; // SPECIAL3
|
|
let Inst{25-21} = rs;
|
|
let Inst{20-16} = rt;
|
|
let Inst{15-11} = rd;
|
|
let Inst{10-6} = 0b00000;
|
|
let Inst{5-0} = 0b001000; // FORK
|
|
}
|
|
|
|
class SPECIAL3_MT_YIELD : MipsMTInst {
|
|
bits<32> Inst;
|
|
|
|
bits<5> rs;
|
|
bits<5> rd;
|
|
let Inst{31-26} = 0b011111; // SPECIAL3
|
|
let Inst{25-21} = rs;
|
|
let Inst{20-16} = 0b00000;
|
|
let Inst{15-11} = rd;
|
|
let Inst{10-6} = 0b00000;
|
|
let Inst{5-0} = 0b001001; // FORK
|
|
}
|