x86/flacds: clear the high bits from pred_order in lpc_32 functions

Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer 2023-11-15 16:09:05 -03:00
parent c9fe9fb863
commit 78f55457c9
1 changed files with 1 additions and 0 deletions

View File

@ -43,6 +43,7 @@ INIT_XMM %1
cglobal flac_lpc_32, 5,6,5, decoded, coeffs, pred_order, qlevel, len, j cglobal flac_lpc_32, 5,6,5, decoded, coeffs, pred_order, qlevel, len, j
sub lend, pred_orderd sub lend, pred_orderd
jle .ret jle .ret
movsxdifnidn pred_orderq, pred_orderd
lea decodedq, [decodedq+pred_orderq*4-8] lea decodedq, [decodedq+pred_orderq*4-8]
lea coeffsq, [coeffsq+pred_orderq*4] lea coeffsq, [coeffsq+pred_orderq*4]
neg pred_orderq neg pred_orderq