From c17c44a5f18d573d7cd2f988c6fcb16a3f7df9af Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Mon, 10 Apr 2023 23:02:22 -0700 Subject: [PATCH] mark integer min/max as high priority since vector reduce min/max is common. --- openpower/sv/av_opcodes.mdwn | 2 ++ openpower/sv/bitmanip.mdwn | 2 ++ openpower/sv/rfc/ls012/optable.csv | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) 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 -- 2.30.2