Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #1500 #1501

Merged
merged 1 commit into from
Aug 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading