From 9d45047d7e7bc8678cd3ea30e1e883249f1fa344 Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Wed, 14 Feb 2024 20:32:43 -0800 Subject: [PATCH] test/bigint/mul_remap: fill in some svremap instructions --- src/openpower/test/bigint/mul_remap.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/openpower/test/bigint/mul_remap.py b/src/openpower/test/bigint/mul_remap.py index 2f59f25a..4baaba8f 100644 --- a/src/openpower/test/bigint/mul_remap.py +++ b/src/openpower/test/bigint/mul_remap.py @@ -77,10 +77,13 @@ def mul_remap_256_x_256_to_512_asm(): ] retval += [ "loop:", - # FIXME: use SVSHAPE0 for RA, SVSHAPE1 for RB, + # use SVSHAPE0 for RA, SVSHAPE1 for RB, # SVSHAPE2 for RC/RT, SVSHAPE3 for RS - "sv.maddedu *4, *32, *36, *4", # RS is scalar by using constant remap - # FIXME: use SVSHAPE2 for RT/RA + "svremap 0o37, 0, 1, 2, 2, 3, 0", + # RS is scalar by using constant remap + "sv.maddedu *4, *32, *36, *4", # FIXME: need to set EXTRA2_MODE to 0 + # use SVSHAPE2 for RT/RA, all others are not remapped + "svremap 0o11, 2, 0, 0, 2, 0, 0", "sv.adde *5, *5, 20", # FIXME: maddedu's RS is in r20, right? "svstep 0, 0, 1", "bc 16, 0, loop # bdnz loop", -- 2.30.2