From: Jacob Lifshay Date: Tue, 11 Apr 2023 06:02:22 +0000 (-0700) Subject: mark integer min/max as high priority since vector reduce min/max is common. X-Git-Tag: opf_rfc_ls012_v1~11 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c17c44a5f18d573d7cd2f988c6fcb16a3f7df9af;p=libreriscv.git mark integer min/max as high priority since vector reduce min/max is common. --- diff --git a/openpower/sv/av_opcodes.mdwn b/openpower/sv/av_opcodes.mdwn index dadcf72d1..420118a3a 100644 --- a/openpower/sv/av_opcodes.mdwn +++ b/openpower/sv/av_opcodes.mdwn @@ -73,6 +73,8 @@ the source mask and every odd bit set in the destination mask: * abs-diff: result = (src1 > src2) ? (src1-src2) : (src2-src1) * signed min/max +\[un]signed min/max instructions are specifically needed for vector reduce min/max operations which are pretty common. + # Video * DCT added as [[sv/remap]] diff --git a/openpower/sv/bitmanip.mdwn b/openpower/sv/bitmanip.mdwn index dae0121a5..c83965590 100644 --- a/openpower/sv/bitmanip.mdwn +++ b/openpower/sv/bitmanip.mdwn @@ -186,6 +186,8 @@ this will only overwrite the dest where the src is greater (or less). signed/unsigned min/max gives more flexibility. +\[un]signed min/max instructions are specifically needed for vector reduce min/max operations which are pretty common. + X-Form * XO=0001001110, itype=0b00 min, unsigned diff --git a/openpower/sv/rfc/ls012/optable.csv b/openpower/sv/rfc/ls012/optable.csv index 833dd9e98..56503e7af 100644 --- a/openpower/sv/rfc/ls012/optable.csv +++ b/openpower/sv/rfc/ls012/optable.csv @@ -37,7 +37,7 @@ shadduw, ls003, med, 7, yes, TBD, no, sv/bitmanip, 2R1W1w # Audio-Video absdu, TBD, TBD, 10, yes, TBD, no, sv/av_opcodes, 2R1W1w avgadd, TBD, TBD, 10, yes, TBD, no, sv/av_opcodes, 2R1W1w -minmax, TBD, TBD, 10, yes, TBD, no, sv/av_opcodes, 2R1W1w +minmax, TBD, high, 10, yes, TBD, no, sv/av_opcodes, 2R1W1w absaccs, TBD, TBD, 10, yes, TBD, no, sv/av_opcodes, 3R1W1w absaccu, TBD, TBD, 10, yes, TBD, no, sv/av_opcodes, 3R1W1w # BMI group