mark integer min/max as high priority since vector reduce min/max is common.
authorJacob Lifshay <programmerjake@gmail.com>
Tue, 11 Apr 2023 06:02:22 +0000 (23:02 -0700)
committerJacob Lifshay <programmerjake@gmail.com>
Tue, 11 Apr 2023 06:02:22 +0000 (23:02 -0700)
openpower/sv/av_opcodes.mdwn
openpower/sv/bitmanip.mdwn
openpower/sv/rfc/ls012/optable.csv

index dadcf72d19b05b2ee2e0b5e760541dc2f574b838..420118a3a89480b8245b95b9f69a4b0f833367ab 100644 (file)
@@ -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]] <https://users.cs.cf.ac.uk/Dave.Marshall/Multimedia/node231.html>
index dae0121a550398fa6ed4021a3fb809d31aa7b278..c839655904175a58073174978f25efe97957ee93 100644 (file)
@@ -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
index 833dd9e9869d735a8b47c8e5fc7198a45777af63..56503e7af4703990e54d6071c69b6827bc4c0037 100644 (file)
@@ -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