Commit 4008b00
committed
[RISCV] Use RVInst16CB for C_SRLI64_HINT and C_SRAI64_HINT.
c.srli(64) and c.srai(64) are encoded differently than c.slli(64).
The former have a 3-bit register, while the latter has a 5-bit register.
The "let Inst{11-10} =" prevented this from causing any functional
issues by dropping the upper 2 bits of the reigster. The ins/outs list
uses GPRC so the register class is constrained.1 parent 3c4f009 commit 4008b00
1 file changed
+10
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
705 | 705 | | |
706 | 706 | | |
707 | 707 | | |
708 | | - | |
709 | | - | |
710 | | - | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
711 | 711 | | |
712 | | - | |
| 712 | + | |
713 | 713 | | |
714 | | - | |
| 714 | + | |
715 | 715 | | |
716 | 716 | | |
717 | 717 | | |
718 | | - | |
719 | | - | |
720 | | - | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
721 | 721 | | |
722 | | - | |
| 722 | + | |
723 | 723 | | |
724 | | - | |
| 724 | + | |
725 | 725 | | |
726 | 726 | | |
727 | 727 | | |
| |||
0 commit comments