Re: Add AVG and UAVG rtx codes

2011-06-16 Thread Jakub Jelinek
On Thu, Jun 16, 2011 at 06:08:17PM +0200, Bernd Schmidt wrote: > 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, ot

Add AVG and UAVG rtx codes

2011-06-16 Thread Bernd Schmidt
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 t