Skip to content

Commit a9a299d

Browse files
committed
RISC-V: Change target_feature on (Zkne or Zknd) instrinsics
**DRAFT: THIS COMMIT SHALL BE SQUASHED INTO THE NEXT COMMIT.** Because changes to rustc are not performed yet, we cannot switch `#[target_feature]` attribute to enable desired features. Instead, this commit just comments out `#[target_feature]`.
1 parent f48e68d commit a9a299d

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

crates/core_arch/src/riscv64/zk.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ pub fn aes64dsm(rs1: u64, rs2: u64) -> u64 {
133133
/// # Note
134134
///
135135
/// The `RNUM` parameter is expected to be a constant value inside the range of `0..=10`.
136-
#[target_feature(enable = "zkne", enable = "zknd")]
136+
//#[target_feature(enable = "zkne", enable = "zknd")] // TODO: zkne_or_zknd
137137
#[rustc_legacy_const_generics(1)]
138138
#[cfg_attr(test, assert_instr(aes64ks1i, RNUM = 0))]
139139
#[inline]
@@ -155,7 +155,7 @@ pub fn aes64ks1i<const RNUM: u8>(rs1: u64) -> u64 {
155155
/// Version: v1.0.1
156156
///
157157
/// Section: 3.11
158-
#[target_feature(enable = "zkne", enable = "zknd")]
158+
//#[target_feature(enable = "zkne", enable = "zknd")] // TODO: zkne_or_zknd
159159
#[cfg_attr(test, assert_instr(aes64ks2))]
160160
#[inline]
161161
#[unstable(feature = "riscv_ext_intrinsics", issue = "114544")]

0 commit comments

Comments
 (0)