Assembly builtins: signed and unsigned decimal printing. #393
AndreasKrall
started this conversation in
General
Replies: 1 comment
-
|
In the meeting we agreed to use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently we only support a signed assembly printing function called
decimal. We must support both the printing of signed and unsigned values. Currently the only way to support unsigned printing is to cast the printed value to an unsigned which is at least one bit bigger than the current value. I propose to support two different versions ofdecimalfor signed and unsigned printing. We need to find suitable names. Suggestions are (please add further suggestions):My preference is
sdec/udec.hexandbinwill always interpreted as unsigned values.Currently there are known errors in the RISC-V and AArch64 spec which have to be fixed after the new builtin versions are implemented.
Beta Was this translation helpful? Give feedback.
All reactions