Re: [Mesa-dev] [PATCH] i965: Fix constant propagation into 32-bit integer MUL.

2011-11-02 Thread Eric Anholt
On Tue, 1 Nov 2011 20:58:16 -0700, Paul Berry wrote: > i965's MUL instruction can't take an immediate value as its first > argument. So normally, if constant propagation wants to propagate a > constant into the first argument of a MUL instruction, it swaps the > order of the two arguments. > >

[Mesa-dev] [PATCH] i965: Fix constant propagation into 32-bit integer MUL.

2011-11-01 Thread Paul Berry
i965's MUL instruction can't take an immediate value as its first argument. So normally, if constant propagation wants to propagate a constant into the first argument of a MUL instruction, it swaps the order of the two arguments. This doesn't work for 32-bit integer (and unsigned integer) multipl