From 6773921b3cd4d493277c9275277bc8dd0948aebe Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 8 Sep 2022 12:53:53 +0100 Subject: [PATCH] add extra non-predicated example to parallel-reduce test_preduce.py --- openpower/sv/test_preduce.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 + -- 2.30.2