projects
/
openpower-isa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db634a1
)
fix generating invalid divmod tests
author
Jacob Lifshay
<programmerjake@gmail.com>
Mon, 9 Oct 2023 04:46:14 +0000
(21:46 -0700)
committer
Jacob Lifshay
<programmerjake@gmail.com>
Thu, 30 Nov 2023 07:55:28 +0000
(23:55 -0800)
src/openpower/test/bigint/powmod.py
patch
|
blob
|
history
diff --git
a/src/openpower/test/bigint/powmod.py
b/src/openpower/test/bigint/powmod.py
index 89826eae14be15c4f787c4e2178d38e296411992..a4d9bc50623e0e5167ef4fa99f57dfd0742d114c 100644
(file)
--- a/
src/openpower/test/bigint/powmod.py
+++ b/
src/openpower/test/bigint/powmod.py
@@
-524,8
+524,7
@@
class PowModCases(TestAccumulatorBase):
d = 2 ** 256 - 1
if d == 0:
d = 1
- if n >= d << 256:
- n -= d << 256
+ n %= d << 256
yield (n, d)
def case_divmod_shift_sub_512x256_to_256x256(self):