Skip to content

Commit

Permalink
Update wordings for programming note on uninitialized variables based…
Browse files Browse the repository at this point in the history
… on Roger's suggestion

Signed-off-by: eop Chen <[email protected]>
  • Loading branch information
eopXD committed Nov 11, 2023
1 parent 6b977ce commit c33f99f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/rvv-intrinsic-spec.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -626,9 +626,9 @@ unsigned __riscv_vlenb();

=== Uninitialized variables with RVV types and `vundefined`

Object created in the declaration of an RVV type represents a scalable-sized object that corresponds to a memory address. The default values inside such uninitialized values, and also to variables being assigned to the `vundefined` intrinsics represent non-deterministic values. Users should be aware to not rely on the result of these values.
Variables created in the declaration of an RVV type represents a scalable-sized object that corresponds to a memory address. The default values inside such uninitialized variables, and also to variables being assigned to the `vundefined` intrinsics, represent non-deterministic values. Users should be aware to not rely on the result of these values.

For example, a `vxor` operation to two either uninitialized or `vundefined` call will not yield a zero.
For example, a `vxor` operation whose operands are either two uninitialized variables or two function calls to `vundefined` may not yield a zero.

=== Copying vector register group contents

Expand Down

0 comments on commit c33f99f

Please sign in to comment.