Commit f7b561f
committed
Simplify go's LUT
I am working on C support and it started being very ackward
to have to add things like funct4 and funct6 when the bits overlap
and the some of the fields are used differently or not used at all
by different encodings.
By passing the match the go assembler can do a simple bitwise or.
This was also changed to emit go fmt-ed code from the start as go fmt
now refuse to run due to the internal import.
Here is the matching CL on go's side https://go-review.googlesource.com/c/go/+/6379401 parent 34e1d81 commit f7b561f
1 file changed
Lines changed: 6 additions & 26 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
| 22 | + | |
| 23 | + | |
32 | 24 | | |
33 | 25 | | |
34 | 26 | | |
35 | | - | |
36 | | - | |
| 27 | + | |
| 28 | + | |
37 | 29 | | |
38 | 30 | | |
39 | 31 | | |
40 | 32 | | |
41 | 33 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
| 34 | + | |
| 35 | + | |
51 | 36 | | |
52 | 37 | | |
53 | 38 | | |
54 | 39 | | |
55 | 40 | | |
56 | 41 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
0 commit comments