From: Luke Kenneth Casson Leighton Date: Tue, 15 Jun 2021 17:58:50 +0000 (+0100) Subject: no need for tmpsu or tmpsum2, fmadds if replaced with fmsubs does the job X-Git-Tag: xlen-bcd~452 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ad667b5d15c16228df9ccdaa161064b997b49cb2;p=openpower-isa.git no need for tmpsu or tmpsum2, fmadds if replaced with fmsubs does the job --- 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 7842fc43..80f12c6c 100644 --- a/media/audio/mp3/mp3_0_apply_window_float_basicsv.s +++ b/media/audio/mp3/mp3_0_apply_window_float_basicsv.s @@ -27,8 +27,6 @@ # floats .set sum, 0 .set sum2, 1 -.set tmpsum, 2 -.set tmpsum2, 3 .machine power9 .abiversion 2 @@ -65,14 +63,12 @@ ff_mpadsp_apply_window_float_sv: # sv.lfs/els fv1.v, 256(p) # sv.fmadds/mr sum, fv0.v, fv1.v, sum - lfiwax tmpsum, 0, 9 # zero it addi p, buf, 192 addi win, win, 128 # SUM8(MLSS, sum, w + 32, p) # sv.lfs/els fv0.v, 256(win) # sv.lfs/els fv1.v, 256(p) - # sv.fmadds/mr tmpsum, fv0.v, fv1.v, tmpsum - fsubs sum, sum, tmpsum + # sv.fmsubs/mr sum, fv0.v, fv1.v, sum subi win, win, 128 stfs sum, 0(out) @@ -98,8 +94,6 @@ ff_mpadsp_apply_window_float_sv: addi p, buf, 192 subf p, i, p - lfiwax tmpsum, 0, 9 # zero it - lfiwax tmpsum2, 0, 9 # zero it addi win, win, 128 # sv.addi win2, win2, 128 @@ -107,10 +101,8 @@ ff_mpadsp_apply_window_float_sv: # sv.lfs/els fv0.v, 256(p) # sv.lfs/els fv1.v, 256(win) # sv.lfs/els fv2.v, 256(win2) - # sv.fmadds/mr tmpsum, fv0.v, fv1.v, tmpsum - # sv.fmadds/mr tmpsum2, fv0.v, fv2.v, tmpsum2 - fsubs sum, sum, tmpsum - fsubs sum2, sum2, tmpsum2 + # sv.fmsubs/mr sum, fv0.v, fv1.v, sum + # sv.fmsubs/mr sum2, fv0.v, fv2.v, sum2 subi win, win, 128 # sv.addi win2, win2, -128 @@ -131,7 +123,7 @@ ff_mpadsp_apply_window_float_sv: # SUM8(MLSS, sum, w + 32, p) # sv.lfs/els fv0.v, 256(win) # sv.lfs/els fv1.v, 256(p) - # sv.fmadds/mr sum, fv0.v, fv1.v, sum + # sv.fmsubs/mr sum, fv0.v, fv1.v, sum # XXX no? possible bug? fneg sum, sum stfs sum, 0(out)