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:
ebe90fd
)
speed up divmod shift-sub tests by removing most test cases
author
Jacob Lifshay
<programmerjake@gmail.com>
Mon, 9 Oct 2023 04:43:00 +0000
(21:43 -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 425e860ab27ae4dbc2971f963bea30ac432fd739..89826eae14be15c4f787c4e2178d38e296411992 100644
(file)
--- a/
src/openpower/test/bigint/powmod.py
+++ b/
src/openpower/test/bigint/powmod.py
@@
-529,7
+529,9
@@
class PowModCases(TestAccumulatorBase):
yield (n, d)
def case_divmod_shift_sub_512x256_to_256x256(self):
- for n, d in self.divmod_512x256_to_256x256_test_inputs():
+ cases = list(self.divmod_512x256_to_256x256_test_inputs())
+ del cases[2:-1] # speed up tests by removing most test cases
+ for n, d in cases:
q, r = divmod(n, d)
with self.subTest(n=f"{n:#_x}", d=f"{d:#_x}",
q=f"{q:#_x}", r=f"{r:#_x}"):