Re: [Mesa-dev] [PATCH 1/6] nv50/ir: add preliminary support for SHLADD

2016-09-19 Thread Samuel Pitoiset
On 09/20/2016 12:16 AM, Ilia Mirkin wrote: On Mon, Sep 19, 2016 at 6:11 PM, Samuel Pitoiset wrote: This instruction is available since SM20 (Fermi) and allow to do (a << b) + c in one shot. In some situations, IMAD should be replaced by SHLADD when b is a power of

Re: [Mesa-dev] [PATCH 1/6] nv50/ir: add preliminary support for SHLADD

2016-09-19 Thread Ilia Mirkin
On Mon, Sep 19, 2016 at 6:11 PM, Samuel Pitoiset wrote: > This instruction is available since SM20 (Fermi) and allow to do > (a << b) + c in one shot. In some situations, IMAD should be > replaced by SHLADD when b is a power of 2, and ADD+SHL should be > replaced by