Commit e5688d0
committed
cmd/internal/obj/riscv: simplify validation and encoding of raw instructions
Use wantImmU/immU rather than handrolling the same code. This also corrects
the validation output - add tests to ensure this is the case.
Change-Id: Id48f459c7c0de09ddde7a10506f66a3a269f325f
Reviewed-on: https://go-review.googlesource.com/c/go/+/702396
LUCI-TryBot-Result: Go LUCI <[email protected]>
Reviewed-by: David Chase <[email protected]>
Reviewed-by: Cherry Mui <[email protected]>1 parent 77fc279 commit e5688d0
File tree
2 files changed
+5
-7
lines changed- src/cmd
- asm/internal/asm/testdata
- internal/obj/riscv
2 files changed
+5
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
15 | 18 | | |
16 | 19 | | |
17 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1419 | 1419 | | |
1420 | 1420 | | |
1421 | 1421 | | |
1422 | | - | |
1423 | | - | |
1424 | | - | |
| 1422 | + | |
1425 | 1423 | | |
1426 | 1424 | | |
1427 | 1425 | | |
| |||
1706 | 1704 | | |
1707 | 1705 | | |
1708 | 1706 | | |
1709 | | - | |
1710 | | - | |
1711 | | - | |
1712 | | - | |
| 1707 | + | |
1713 | 1708 | | |
1714 | 1709 | | |
1715 | 1710 | | |
| |||
0 commit comments