From: Shriya Sharma Date: Fri, 17 Nov 2023 12:02:01 +0000 (+0000) Subject: Test case (all zeroes) for maxloc X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=75542100fd050aee81092f5bdc0bd54f1d4033dd;p=openpower-isa.git Test case (all zeroes) for maxloc --- 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)