about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTsukasa OI <floss_rust@irq.a4lg.com>2025-09-11 06:26:51 +0000
committerTsukasa OI <floss_rust@irq.a4lg.com>2025-09-11 06:42:10 +0000
commite54cc43867efe10c73a6063ef36fcc5aa8570ffb (patch)
treee8ec80ac2ebd2dce31b4c529d21983d21ffc1fba
parentdcddb4413681a416c5bf7c8c5ad35808f0c86cec (diff)
downloadrust-e54cc43867efe10c73a6063ef36fcc5aa8570ffb.tar.gz
rust-e54cc43867efe10c73a6063ef36fcc5aa8570ffb.zip
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).
-rw-r--r--library/stdarch/crates/core_arch/src/riscv64/zk.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/stdarch/crates/core_arch/src/riscv64/zk.rs b/library/stdarch/crates/core_arch/src/riscv64/zk.rs
index c6af750bbc5..a30653cbe08 100644
--- a/library/stdarch/crates/core_arch/src/riscv64/zk.rs
+++ b/library/stdarch/crates/core_arch/src/riscv64/zk.rs
@@ -176,7 +176,7 @@ pub fn aes64ks2(rs1: u64, rs2: u64) -> u64 {
 /// Version: v1.0.1
 ///
 /// Section: 3.9
-#[target_feature(enable = "zkne", enable = "zknd")]
+#[target_feature(enable = "zknd")]
 #[cfg_attr(test, assert_instr(aes64im))]
 #[inline]
 #[unstable(feature = "riscv_ext_intrinsics", issue = "114544")]