From 75542100fd050aee81092f5bdc0bd54f1d4033dd 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