Re: [Mesa-dev] [PATCH] i965/fs: Fix lowering of integer multiplication with cmod.

2015-05-27 Thread Kenneth Graunke
On Wednesday, May 27, 2015 10:58:01 AM Matt Turner wrote: > If the multiplication's result is unused, except by a conditional_mod, > the destination will be null. Since the final instruction in the lowered > sequence is a partial-write, we can't put the conditional mod on it and > we have to store

[Mesa-dev] [PATCH] i965/fs: Fix lowering of integer multiplication with cmod.

2015-05-27 Thread Matt Turner
If the multiplication's result is unused, except by a conditional_mod, the destination will be null. Since the final instruction in the lowered sequence is a partial-write, we can't put the conditional mod on it and we have to store the full result to a register and do a MOV with a conditional mod.