Skip to content

Commit 7996cc1

Browse files
committed
RISC-V: "Lower" requirements of aes64im
This instruction is incorrectly categorized as the same one as `aes64ks1i` and `aes64ks2` (that should require `zkne || zknd` but currently require `zkne && zknd`) but `aes64im` only requires the Zknd extension. This commit fixes the category of this intrinsic (lowering the requirements from the Rust perspective but it does not actually lower it from the RISC-V perspective).
1 parent f48e68d commit 7996cc1

File tree

1 file changed

+1
-1
lines changed
  • crates/core_arch/src/riscv64

1 file changed

+1
-1
lines changed

crates/core_arch/src/riscv64/zk.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ pub fn aes64ks2(rs1: u64, rs2: u64) -> u64 {
176176
/// Version: v1.0.1
177177
///
178178
/// Section: 3.9
179-
#[target_feature(enable = "zkne", enable = "zknd")]
179+
#[target_feature(enable = "zknd")]
180180
#[cfg_attr(test, assert_instr(aes64im))]
181181
#[inline]
182182
#[unstable(feature = "riscv_ext_intrinsics", issue = "114544")]

0 commit comments

Comments
 (0)