Are you thinking of the SEL function (part of the PCFL, Process Control Function Library) that is available in Quantum and 984-685/785 processors?
This function can compare up to 4 values (16 bit word, double precison word, or floating point) and output the highest, lowest or average.