summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/int_big_div.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/basics/int_big_div.py')
-rw-r--r--tests/basics/int_big_div.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/basics/int_big_div.py b/tests/basics/int_big_div.py
index 8dacf495db..642f051d41 100644
--- a/tests/basics/int_big_div.py
+++ b/tests/basics/int_big_div.py
@@ -1,3 +1,10 @@
for lhs in (1000000000000000000000000, 10000000000100000000000000, 10012003400000000000000007, 12349083434598210349871029923874109871234789):
for rhs in range(1, 555):
print(lhs // rhs)
+
+# these check an edge case on 64-bit machines where two mpz limbs
+# are used and the most significant one has the MSB set
+x = 0x8000000000000000
+print((x + 1) // x)
+x = 0x86c60128feff5330
+print((x + 1) // x)