From a0ffcca84e8e7a3ba9b13e5749b7791b4a2f4b7d Mon Sep 17 00:00:00 2001 From: Shriya Sharma Date: Fri, 17 Nov 2023 12:02:01 +0000 Subject: [PATCH] Test case (all zeroes) for maxloc --- src/openpower/decoder/isa/maxloc.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/openpower/decoder/isa/maxloc.py b/src/openpower/decoder/isa/maxloc.py index 668fdd6b..ca1b06ba 100644 --- a/src/openpower/decoder/isa/maxloc.py +++ b/src/openpower/decoder/isa/maxloc.py @@ -27,3 +27,8 @@ if __name__ == '__main__': print("search list", arr) result = m2(arr) print("Index of the maximum value in an array is: %d" % result) + + arr = [0,0,0,0,0,0,0,0] + print("search list", arr) + result = m2(arr) + print("Index of the maximum value in an array is: %d" % result) -- 2.30.2