This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Add AVG and UAVG rtx codes


Another operation that exists on a number of processors is an "average"
operation, which computes "(ext (A) + ext (B) + 1) >> 1" from two input
operands. Some of our backends try to represnt this with complex RTL
expressions, others use unspec. This patch adds two new rtx codes.

Bootstrapped and tested on i686-linux (with the usual pass39-frag test
failures). Ok?


Bernd

Attachment: avg.diff
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]