Skip to content

Conversation

keyon1992
Copy link
Collaborator

It is the draft spec of Zvabd extension for integer vector absolute difference instructions.

[source,sail]
--
foreach (i from 0 to (num_elem - 1)) {
if mask[i] == bitone then {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this indicate that the instruction is always masked or am I misreading the SAIL code ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It follows the RVV sail code but omit the initialization code for mask/sew/lmul since these instructions are designed as standard vector arithmetic instruction and the full sail code is too long. If this has caused a misunderstanding, we need to find a way to resolve it.

src/zvabd.adoc Outdated
....

Reserved Encodings::
* `SEW` is 32 or 64.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would define this with the reciprocal: "SEW is not 8 nor 16" (we never know which new SEW values may appear in the future)

@keyon1992 keyon1992 changed the title Zvabd spec v0.1.0 Zvabd Draft Spec Sep 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants