From: Luke Kenneth Casson Leighton Date: Thu, 8 Sep 2022 11:53:53 +0000 (+0100) Subject: add extra non-predicated example to parallel-reduce test_preduce.py X-Git-Tag: opf_rfc_ls005_v1~637 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6773921b3cd4d493277c9275277bc8dd0948aebe;p=libreriscv.git add extra non-predicated example to parallel-reduce test_preduce.py --- diff --git a/openpower/sv/test_preduce.py b/openpower/sv/test_preduce.py index 60770f6b5..f1df70a18 100644 --- 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 +