riscv / riscv-bitmanip

Working draft of the proposed RISC-V Bitmanipulation extension
https://jira.riscv.org/browse/RVG-122
Creative Commons Attribution 4.0 International
204 stars 66 forks source link

Zero and sign extend of pack.h vs pack.w #160

Open RogierBrussee opened 3 years ago

RogierBrussee commented 3 years ago

The pack.h instruction zero extends while the pack.w instruction sign extends. Because the instructions are simple and otherwise very similar for ease of reference, maybe this should be mentioned in the synopsis (it is already mentioned in the description).

Arguably it would be less confusing if pack.h would be renamed pack.hu