Should the `p64` functions be gated under `aes`?

未关闭
#2,109 6 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@adamgemmell 已经在做这个了。

开始于 2026年5月8日。

  • #2110 来自 @adamgemmell —— 未关闭

评估

难度
4/5
预计耗时
3-5 天
新手友好度
52/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
冷清
技术栈
rust
领域
compilers

调研方向

首先将列出的 p64 函数与 ACLE 参考以及 GCC 的 target("fpu=crypto-neon-fp-armv8")进行比较,然后确定 Rust 的 aes feature 是否对应 LLVM 的 crypto feature。对于每个列出的函数组,都已确定 gating 规则,并且相关实现或测试反映了该规则,即视为完成。

由索引模型根据 Issue 内容生成。

描述

Currently we gate a lot of p64 functions under aes, but I couldn't spot any pattern on when we add aes. We have aes in the following functions

  • vld1{q}_p64{_x2,_x3,_x4}
  • vld{1,2,3,4}{q}{,_dup, _lane}_p64
  • vmull{_high}_p64
  • vs{r,l}i{q}_n_p64
  • vst1{q}_p64
  • vst1{q}_p64_{x2,x3,x4}
  • vst{2,3,4}{_lane, q_lane,}_p64
  • vcreate_p64
  • vreinterpret_*_p{64,128}
  • vreinterpret_p{64,128}_*
  • vset{q}_lane_p64

whereas, the following functions, even though they have a p64 argument, don't have aes

  • vceq{z}{q}_p64
  • vcopy{q}_lane{q}_p64
  • vdup{q}_lane{q}_p64
  • vextq_p64
  • vldap1{q}_lane_p64
  • vtrn{1,2}q_p64,
  • vtst{q}_p64
  • vuzp{1,2}q_p64
  • vzip{1,2}q_p64
  • vadd{q}_p64
  • vget_{high,low}_p64
  • vget{q}_lane_p64
  • vreinterpret{q}_{f32,f64,s64,u64}_p64

The only reference of this in ACLE I could find was the fact that GCC gates all p64 functions and types under target ("fpu=crypto-neon-fp-armv8"), but afaik this does not translate to the Rust feature aes. I believe the closest would be the LLVM codegen feature crypto.

@rustbot ping arm

主要语言
Rust
星标
696
派生
341
平均合并
9 天 12 小时
30 天内合并 PR
11

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

rust-lang/stdarch 的其他 Issue

查看 rust-lang/stdarch 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。