Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[vector crypto] Clarifying mandate for vector register index alignment to LMUL/EMUL #1653

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/vector-crypto.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,15 @@ Element Group Size (`EGS`).
LMUL constraints::
For element-group instructions, `LMUL`*`VLEN` must always be at least as large as `EGW`, otherwise an
_illegal instruction exception_ is raised, even if `vl`=0.
+
A *Vector Element Group* operand or destination has `EMUL = LMUL`.
+
A *Scalar Element Group* operand or destination has `EMUL = ceil(EGW / VLEN)`.
+
[NOTE]
====
These `EMUL` alignement constraints allow scalar element group operands to be allocated to any vector register (without need to be aligned to `LMUL`) for any implementation with `VLEN >= EGW`.
nibrunieAtSi5 marked this conversation as resolved.
Show resolved Hide resolved
====

[%autowidth]
[%header,cols="4,2,2"]
Expand Down