--
You received this message because you are subscribed to the Google Groups "RISC-V ISA Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isa-dev+u...@groups.riscv.org.
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/isa-dev/m2pmwsotq6.fsf%40berkeley.edu.
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/isa-dev/24775.11149.340258.212293%40KAMacbookPro2016.local.
Thank you Anna. Any insight why it was chosen to use opcode space for a right and left rotate? What was the thought process there?
Jeff
Thank you Anna. Any insight why it was chosen to use opcode space for a right and left rotate? What was the thought process there?
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/isa-dev/PA4PR04MB750230FDC3FB3FE75DCC36798D309%40PA4PR04MB7502.eurprd04.prod.outlook.com.
Thanks for the response Andrew.
I think you are saying if only one direction of rotate is supported, the complier will have to generate more code for some algorithms than if both directions of rotate are supported. This is surprising to me. Which compiler did you see this in? PowerPC and Arm both support only one direction AFAIK.
Jeff
Thanks for the response Andrew.
I think you are saying if only one direction of rotate is supported, the complier will have to generate more code for some algorithms than if both directions of rotate are supported. This is surprising to me. Which compiler did you see this in?
PowerPC and Arm both support only one direction AFAIK.
Thanks! But your taking one “amt” and trying to rotate both ways with that amt. So, it’s not surprising you will end up with negation on one. I wonder if “amt” is tuned to the direction supported and all code uses that direction in PowerPC and Arm compilers?
I think you are saying if only one direction of rotate is supported, the complier will have to generate more code for some algorithms than if both directions of rotate are supported. This is surprising to me.
Thanks! But your taking one “amt” and trying to rotate both ways with that amt. So, it’s not surprising you will end up with negation on one. I wonder if “amt” is tuned to the direction supported and all code uses that direction in PowerPC and Arm compilers?
Thanks for all the feedback!
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/isa-dev/CA%2B%2B6G0BkC2r7kNiZ9mp-LHj24WY%3DAdS%3D_w_f_7hDXqqdEsh%3DEg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/isa-dev/CA%2B%2B6G0BkC2r7kNiZ9mp-LHj24WY%3DAdS%3D_w_f_7hDXqqdEsh%3DEg%40mail.gmail.com.
A couple more questions.
Thanks,
Jeff
A couple more questions.
- Is there plans for compressed variants of these instructions?
- Why no 0-extend byte?
On Wed, Jun 30, 2021 at 12:48 PM Jeff Scott <jeff....@nxp.com> wrote:A couple more questions.
- Is there plans for compressed variants of these instructions?
That's something we expect to study in the future.
- Why no 0-extend byte?
The andi instruction already provides this functionality.
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/isa-dev/CA%2B%2B6G0A%2BBrhqj9m%3DHo-%2BdSeKnfjMa0XJit7qJ%3D-6TigW2Kf2pQ%40mail.gmail.com.
Thanks Andrew. I figured another instruction must cover zext.b.
Looks like the RV32 encoding for the zext.h instruction clashes with that for the pack instruction (define in bitmanip-0.93) with rs2 being x0.
zext.h:

pack:
![]()
Should zext.h be an OP-IMM encoding?
Cheers,
PA
--
You received this message because you are subscribed to the Google Groups "RISC-V ISA Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isa-dev+u...@groups.riscv.org.
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/isa-dev/0d35c909-0aef-2f1c-23e7-510448d40ffc%40astc-design.com.
Thanks Andrew. Yes, I realized just before reading your reply that zext.h is just a special case of pack. Should have thought 10ns longer before posting my comment.
Cheers,
PA