From 5a0bf733e1aa0192a536acd0cf856705e14bc2a3 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 15 Jun 2021 00:53:54 +0100 Subject: [PATCH] sigh bug in setvl, temporarily setting to 7 not 8 --- media/audio/mp3/mp3_0_apply_window_float_basicsv.s | 2 +- src/openpower/decoder/helpers.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/media/audio/mp3/mp3_0_apply_window_float_basicsv.s b/media/audio/mp3/mp3_0_apply_window_float_basicsv.s index 7f496555..0a0c5d0f 100644 --- a/media/audio/mp3/mp3_0_apply_window_float_basicsv.s +++ b/media/audio/mp3/mp3_0_apply_window_float_basicsv.s @@ -50,7 +50,7 @@ ff_mpadsp_apply_window_float_sv: mulli 0, incr, 31 add out2, out, 0 - setvl 0, 0, 8, 1, 1 # setvli MVL=8, VL=8 + setvl 0, 0, 7, 1, 1 # setvli MVL=8, VL=8 # sv.addi win2, win, 124 lfiwax sum, 0, 9 # zero it diff --git a/src/openpower/decoder/helpers.py b/src/openpower/decoder/helpers.py index 38fee6d1..e9406070 100644 --- a/src/openpower/decoder/helpers.py +++ b/src/openpower/decoder/helpers.py @@ -280,9 +280,10 @@ def FPMUL32(FRA, FRB): #FRA = DOUBLE(SINGLE(FRA)) #FRB = DOUBLE(SINGLE(FRB)) result = float(FRA) * float(FRB) + log ("FPMUL32", FRA, FRB, float(FRA), float(FRB), result) cvt = fp64toselectable(result) cvt = DOUBLE2SINGLE(cvt) - log ("FPMUL32", FRA, FRB, result, cvt) + log (" cvt", cvt) return cvt -- 2.30.2