Skip to content

Commit

Permalink
Merge pull request #1501 from greenozon/master
Browse files Browse the repository at this point in the history
Fixes #1500
  • Loading branch information
serpilliere authored Aug 19, 2024
2 parents bece47a + 1cd118a commit c8aafe1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/jitter/jitcore.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
jitter.cpu.RAX = 16565615892967251934
assert jitter.cpu.RAX == 16565615892967251934

jitter.cpu.RAX = -1
jitter.cpu.RAX = -1 & 0xffffffffffffffff
assert jitter.cpu.RAX == 0xffffffffffffffff

jitter.cpu.RAX = -2
jitter.cpu.RAX = -2 & 0xffffffffffffffff
assert jitter.cpu.RAX == 0xfffffffffffffffe

jitter.cpu.EAX = -2
jitter.cpu.EAX = -2 & 0xffffffff
assert jitter.cpu.EAX == 0xfffffffe

jitter.cpu.RAX = -0xffffffffffffffff
jitter.cpu.RAX = -0xffffffffffffffff & 0xffffffffffffffff
assert jitter.cpu.RAX == 1

try:
Expand All @@ -35,10 +35,10 @@
else:
raise Exception("Should see that 0x10000000000000000 is too big for RAX")

jitter.cpu.EAX = -0xefffffff
jitter.cpu.EAX = -0xefffffff & 0xffffffff
assert jitter.cpu.EAX == 0x10000001

jitter.cpu.EAX = -0xFFFFFFFF
jitter.cpu.EAX = -0xFFFFFFFF & 0xffffffff
assert jitter.cpu.EAX == 1

try:
Expand Down

0 comments on commit c8aafe1

Please sign in to comment.