cr88192

BGB Scaled-Index Address Extension (RISC-V)

Apr 11th, 2022
398
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. BGB Scaled-Index Address Extension (RISC-V):
  2. * Address something I feel is lacking in RISC-V.
  3. * Whether or not this conflicts with anything, dunno.
  4.  
  5. Load Forms
  6. * 00110ss-ttttt-mmmmm-000-nnnnn-01-01111 LB Rn, (Rm, Rt*Sc)
  7. * 00110ss-ttttt-mmmmm-001-nnnnn-01-01111 LH Rn, (Rm, Rt*Sc)
  8. * 00110ss-ttttt-mmmmm-010-nnnnn-01-01111 LW Rn, (Rm, Rt*Sc)
  9. * 00110ss-ttttt-mmmmm-011-nnnnn-01-01111 LD Rn, (Rm, Rt*Sc)
  10. * 00110ss-ttttt-mmmmm-100-nnnnn-01-01111 LBU Rn, (Rm, Rt*Sc)
  11. * 00110ss-ttttt-mmmmm-101-nnnnn-01-01111 LHU Rn, (Rm, Rt*Sc)
  12. * 00110ss-ttttt-mmmmm-110-nnnnn-01-01111 LWU Rn, (Rm, Rt*Sc)
  13. * 00110ss-ttttt-mmmmm-111-nnnnn-01-01111 LX Xn, (Rm, Rt*Sc)
  14.  
  15. Store Forms
  16. * 00111ss-ttttt-mmmmm-000-nnnnn-01-01111 SB (Rm, Rt*Sc), Rn
  17. * 00111ss-ttttt-mmmmm-001-nnnnn-01-01111 SH (Rm, Rt*Sc), Rn
  18. * 00111ss-ttttt-mmmmm-010-nnnnn-01-01111 SW (Rm, Rt*Sc), Rn
  19. * 00111ss-ttttt-mmmmm-011-nnnnn-01-01111 SD (Rm, Rt*Sc), Rn
  20. * 00111ss-ttttt-mmmmm-100-nnnnn-01-01111 -
  21. * 00111ss-ttttt-mmmmm-101-nnnnn-01-01111 -
  22. * 00111ss-ttttt-mmmmm-110-nnnnn-01-01111 -
  23. * 00111ss-ttttt-mmmmm-111-nnnnn-01-01111 SX (Rm, Rt*Sc), Xn
  24.  
  25. These would define Scaled-Index Load/Store within the context of the RISC-V ISA, reusing some of the remaining encoding space from the 'A' extension.
  26.  
  27. The 'ss' field would define the scale: 00=B, 01=H, 10=W, 11=D
  28.  
  29. LX/SX, Optional Load/Store Pair form.
  30. * Would require a 64-bit alignment.
  31.  
  32.  
  33. Will not define LEA forms, as are redundant with the BitManip/Zba extension.
  34. * SH1ADD/SH2ADD/SH3ADD
  35.  
Advertisement
Add Comment
Please, Sign In to add comment