[Mesa-dev] [PATCH 1/3] R600/SI: Add pattern for sign extension of i1 to i32.

Tom Stellard tom at stellard.net
Thu Feb 14 06:13:07 PST 2013


On Wed, Feb 13, 2013 at 06:54:45PM +0100, Michel Dänzer wrote:
> From: Michel Dänzer <michel.daenzer at amd.com>
> 
> 16 more little piglits with radeonsi.
> 
> NOTE: This is a candidate for the Mesa stable branch.
> 
> Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>

It would be great if you could add some lit tests for these.

For the series:

Reviewed-by: Tom Stellard <thomas.stellard at amd.com>

> ---
>  lib/Target/R600/SIInstructions.td | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/lib/Target/R600/SIInstructions.td b/lib/Target/R600/SIInstructions.td
> index d4f7b37..ad1eff7 100644
> --- a/lib/Target/R600/SIInstructions.td
> +++ b/lib/Target/R600/SIInstructions.td
> @@ -1404,6 +1404,11 @@ def : Pat <
>                    0, 0, 0, 0), sub3)
>  >;
>  
> +def : Pat <
> +  (i32 (sext (i1 SReg_64:$src0))),
> +  (V_CNDMASK_B32_e64 (i32 0), (i32 -1), SReg_64:$src0)
> +>;
> +
>  /********** ================== **********/
>  /**********   VOP3 Patterns    **********/
>  /********** ================== **********/
> -- 
> 1.8.1.3
> 
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list