Suggestions-and-Issues icon indicating copy to clipboard operation
Suggestions-and-Issues copied to clipboard

[Bug]: [ALPHA] Off-by-one error in spec.isa signed value testing.

Open altrag opened this issue 11 months ago • 0 comments

Discord Thread

https://discord.com/channels/828292123936948244/1328914901527302308

What happened?

It seems the signed value test is not accounting for the sign bit itself. For example, a 3-bit signed value allows all of -8..7, rather than -4..3. Unsigned works correctly.

The relevant ISA example is simply:

[fields]
s3 %a:S3(immediate)
aaaaaaaa

Version

0.1346 Beta

What OSes are you seeing the problem on?

Windows

Relevant debug.log output, search next to the exectuable

No response

altrag avatar Jan 15 '25 02:01 altrag