projects
/
libreriscv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90fec65
)
add extra non-predicated example to parallel-reduce test_preduce.py
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Thu, 8 Sep 2022 11:53:53 +0000
(12:53 +0100)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Thu, 8 Sep 2022 11:53:57 +0000
(12:53 +0100)
openpower/sv/test_preduce.py
patch
|
blob
|
history
diff --git
a/openpower/sv/test_preduce.py
b/openpower/sv/test_preduce.py
index 60770f6b558548db8ba44c6e893ecd94c5627c33..f1df70a1870a4cb025cfdeac95b3f6a84bc036fe 100644
(file)
--- a/
openpower/sv/test_preduce.py
+++ b/
openpower/sv/test_preduce.py
@@
-107,3
+107,16
@@
if __name__ == '__main__':
print ()
assert vec == res2
+ vec = [1, 2, 3, 4, 9, 5, 6]
+ prd = [1, 1, 1, 1, 1, 1, 1]
+ print (vec)
+ res = preduce(len(vec), vec, prd)
+ print (res)
+ res2 = preducei(len(vec), vec, prd)
+ print (res2)
+ print ()
+ preduce_y(len(vec), vec, prd)
+ print (vec)
+ print ()
+ assert vec == res2
+