aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/shfli.h
AgeCommit message (Collapse)AuthorFilesLines
2023-06-18Remove Xbitmanip from instructions that belong to multiple extensionsAndrew Waterman1-2/+1
2022-02-17Split Xbitmanip into its proposed component extensions (#918)Rupert Swarbrick1-1/+1
Before this patch, spike just had an "Xbitmanip" extension which covered everything in the proposed bitmanip extension that hadn't been ratified. The problem is that if you want to model (or verify) a processor that targetted just some of the proposed bitmanip extension, you couldn't configure Spike to do that. For example, the lowRISC Ibex processor has several different configurations. The "balanced" configuration targetted Zba, Zbb, Zbs, Zbf and Zbt of the 0.92 spec. With the Zba, Zbb and Zbs ratified, we'll now be able to use an ISA string like rv32imc_Zba_Zbb_Zbs_XZbf_XZbt and Spike will correctly fail to decode instructions like 'bcompress', which would have been decoded with Xbitmanip. This patch adds a new custom extension name for each part of the extension that wasn't fully ratified. These have an 'X' prefix so, for example, the bit permutation instructions that were proposed as Zbp can be found under XZbp. Specifying "Xbitmanip" gets all of these extensions, so its behaviour should be unchanged. Note that the slo(i) / sro(i) instructions have been moved from the proposed Zbb to XZbp. This matches a comment in the Change History section of v0.93 of the bitmanip spec: it seems that the authors forgot to also move them in Table 2.1 (which gives the lists of instructions for each extension). This change won't break anything that currently exists, but it took quite a while to figure out what was going on so I thought I'd leave a breadcrumb trail for the next engineer! The bulk of the patch is just defining some more entries in the isa_extension_t enum and rewriting each of the instructions to depend on the relevant entry. This is mostly a straight textual replacement but it's slightly more complicated for things like the "pack" instruction that are defined by several different proposed extensions.
2021-10-14Split 'P' to EXT_ZPN and friends (#830)marcfedorow1-1/+1
* Added ZMMUL extension * Splitted P-ext to its zeds * Typo fix
2021-09-14Added insn overlapping (bitmanip / krypto) (#801)marcfedorow1-1/+3
2021-09-06Move bitmanip instructions outside Zba/Zbb/Zbc/Zbs into XbitmanipAndrew Waterman1-1/+1
2020-10-22[riscv-bitmanip] Bugfixes in RV32B impl of CRC, SRO, [UN]SHFLClifford Wolf1-1/+1
Signed-off-by: Clifford Wolf <clifford@clifford.at>
2020-10-22[riscv-bitmanip] Add bitmanip instructionsClifford Wolf1-0/+10
Signed-off-by: Clifford Wolf <clifford@clifford.at>