riscv-bitmanip icon indicating copy to clipboard operation
riscv-bitmanip copied to clipboard

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

Open RogierBrussee opened this issue 3 years ago • 0 comments

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

RogierBrussee avatar Sep 04 '21 13:09 RogierBrussee