From 01600a57590f173ff216e1ae6d140ae07fb5ebda Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 17 Sep 2022 21:47:02 +0100 Subject: [PATCH] whoops. mode-bits need to be put in MSB0 order. sigh --- src/openpower/sv/trans/svp64.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/openpower/sv/trans/svp64.py b/src/openpower/sv/trans/svp64.py index c617375a..b6944855 100644 --- a/src/openpower/sv/trans/svp64.py +++ b/src/openpower/sv/trans/svp64.py @@ -1349,8 +1349,11 @@ class SVP64Asm: mode |= (predresult << SVP64MODE.BO_LSB) # set BO # whewww.... modes all done :) - # now put into svp64_rm - mode |= sv_mode + # now put into svp64_rm, but respect MSB0 order + if sv_mode&1: + mode |= (0b1<