From: Luke Kenneth Casson Leighton Date: Wed, 27 Dec 2023 10:44:40 +0000 (+0000) Subject: whoops missed _x_r rename X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=745c7d226322a5c2127a528bc4f48e0616535707;p=openpower-isa.git whoops missed _x_r rename --- diff --git a/src/openpower/decoder/isa/remapyield.py b/src/openpower/decoder/isa/remapyield.py index 856b2b89..a498908e 100644 --- a/src/openpower/decoder/isa/remapyield.py +++ b/src/openpower/decoder/isa/remapyield.py @@ -18,8 +18,8 @@ def iterate_indices(SVSHAPE, VL=None): _y_r = list(range(yd)) z_r = list(range(zd)) # invert the indices if needed - if SVSHAPE.invxyz[0]: x_r.reverse() - if SVSHAPE.invxyz[1]: y_r.reverse() + if SVSHAPE.invxyz[0]: _x_r.reverse() + if SVSHAPE.invxyz[1]: _y_r.reverse() if SVSHAPE.invxyz[2]: z_r.reverse() # start an infinite (wrapping) loop step = 0 # track src/dst step @@ -174,11 +174,11 @@ def demo(): VL = 12 # modulo # matrix modulo - xdim, ydim, zdim = 4, 4, 1 # set the dimension sizes here + xdim, ydim, zdim = 4, 3, 1 # set the dimension sizes here print("\nmatrix modulo(%d)" % VL, xdim, ydim, zdim) SVSHAPE0 = SVSHAPE() SVSHAPE0.lims = [xdim, ydim, zdim] - SVSHAPE0.order = [0,1,2] # experiment with different permutations, here + SVSHAPE0.order = [1,0,2] # experiment with different permutations, here SVSHAPE0.mode = 0b11 SVSHAPE0.submode = 0b00 # SVSHAPE0.skip = 0b00