Closed jordancarlin closed 6 months ago
712 tests ±0 712 :white_check_mark: ±0 0s :stopwatch: ±0s 6 suites ±0 0 :zzz: ±0 1 files ±0 0 :x: ±0
Results for commit 7aace27d. ± Comparison against base commit 2259041c.
I presume the original intent was so that you could assemble e.g. add a0, x10, 5
, but I went back to the 5 year old commit that added them and they've always been the same so I don't see any reason to keep them.
Also I feel like to_str()
needs to be fixed anyway. Its overloads include both directions of all the mappings so depending on the order in which you compile files to_str(0b00000)
can be zero
or f0
which is a bit weird. We should probably change the to_str()
overloads to use reg_name_backwards
, etc. instead of reg_name
.
Anyway this looks fine.
Exactly. And the to_str()
overload for registers is not currently used in the assembly clauses, reg_name()
is being used directly instead.
@billmcspadden-riscv I'll merge this if you have no objections?
There seem to be duplicate functions right now for reg and freg names, (f)reg_name_abi and (f)reg_name. These mappings are the same and only (f)reg_name is used, so remove the unused ones.