Skip to content

Commit

Permalink
Clarify note that compilers may need to change vtype for vmv<nr>r.v
Browse files Browse the repository at this point in the history
In a similar vein to 856fe5b, this note states that compilers don't
need to "know or change vtype" for whole vector register moves.

There's some truth to this in that compilers can largely ignore SEW
and LMUL, but ultimately they do depend on vtype and the current
wording might be misleading. A compiler may in fact need to change
vtype to clear vill, see:
llvm/llvm-project#114518
  • Loading branch information
lukel97 committed Nov 4, 2024
1 parent d0d5c67 commit 5829a3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/v-st-ext.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4807,7 +4807,7 @@ copy. The instructions operate as if EEW=SEW, EMUL = NREG, effective
length `evl`= EMUL * VLEN/SEW.

NOTE: These instructions are intended to aid compilers to shuffle
vector registers without needing to know or change `vl` or `vtype`.
vector registers without needing to know or change `vl`.

NOTE: The usual property that no elements are written if `vstart` {ge} `vl`
does not apply to these instructions.
Expand Down

0 comments on commit 5829a3b

Please sign in to comment.