riscv64: Add bitmanip extension flags (#5847)

This commit is contained in:
Afonso Bordado
2023-02-21 22:12:44 +00:00
committed by GitHub
parent bd3dcd313d
commit 6e6a1034d7
6 changed files with 152 additions and 82 deletions

View File

@@ -279,16 +279,26 @@ impl generated_code::Context for IsleContext<'_, '_, MInst, Riscv64Backend> {
ValueRegs::two(shamt, len_sub_shamt)
}
fn has_b(&mut self) -> bool {
self.backend.isa_flags.has_b()
}
fn has_zbkb(&mut self) -> bool {
self.backend.isa_flags.has_zbkb()
}
fn has_zba(&mut self) -> bool {
self.backend.isa_flags.has_zba()
}
fn has_zbb(&mut self) -> bool {
self.backend.isa_flags.has_zbb()
}
fn has_zbc(&mut self) -> bool {
self.backend.isa_flags.has_zbc()
}
fn has_zbs(&mut self) -> bool {
self.backend.isa_flags.has_zbs()
}
fn inst_output_get(&mut self, x: InstOutput, index: u8) -> ValueRegs {
x[index as usize]
}