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=a0ffcca84e8e7a3ba9b13e5749b7791b4a2f4b7d;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)