Skip to content

Commit

Permalink
Add note that presence of pack[w] implies presence of zext.h
Browse files Browse the repository at this point in the history
  • Loading branch information
aswaterman committed Aug 6, 2024
1 parent 5ddbdd6 commit 07b9c32
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/b-st-ext.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2386,6 +2386,13 @@ Included in::
|Ratified
|===

NOTE: For RV32, the `pack` instruction with _rs2_=`x0` is the `zext.h`
instruction.
Hence, for RV32, any extension that contains the `pack` instruction also
contains the `zext.h` instruction (but not necessarily the `c.zext.h`
instruction, which is only guaranteed to exist if both the Zcb and Zbb
extensions are implemented).

<<<
[#insns-packh,reftext="Pack low bytes of registers"]
==== packh
Expand Down Expand Up @@ -2484,6 +2491,13 @@ Included in::
|Ratified
|===

NOTE: For RV64, the `packw` instruction with _rs2_=`x0` is the `zext.h`
instruction.
Hence, for RV64, any extension that contains the `packw` instruction also
contains the `zext.h` instruction (but not necessarily the `c.zext.h`
instruction, which is only guaranteed to exist if both the Zcb and Zbb
extensions are implemented).

<<<
[#insns-rev8,reftext="Byte-reverse register"]
==== rev8
Expand Down

0 comments on commit 07b9c32

Please sign in to comment.