[Mesa-dev] [PATCH] R600/SI: Add pattern for zero-extending i1 to i32
Mike Lothian
mike at fireburn.co.uk
Wed Feb 5 09:41:40 CET 2014
I can confirm this fixes the opencl-example tests and bfgminer now runs
without crashing
Thanks
Mike
On 4 February 2014 03:56, Michel Dänzer <michel at daenzer.net> wrote:
> From: Michel Dänzer <michel.daenzer at amd.com>
>
> Fixes opencl-example if_* tests with radeonsi.
>
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=74469
> Signed-off-by: Michel Dänzer <michel.daenzer 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 7e37821..59fe2ae 100644
> --- a/lib/Target/R600/SIInstructions.td
> +++ b/lib/Target/R600/SIInstructions.td
> @@ -1827,6 +1827,11 @@ def : Pat <
> (V_CNDMASK_B32_e64 (i32 0), (i32 -1), $src0)
> >;
>
> +def : Pat <
> + (i32 (zext i1:$src0)),
> + (V_CNDMASK_B32_e64 (i32 0), (i32 1), $src0)
> +>;
> +
> // 1. Offset as 8bit DWORD immediate
> def : Pat <
> (SIload_constant i128:$sbase, IMM8bitDWORD:$offset),
> --
> 1.9.rc1
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20140205/4e7ee17a/attachment.html>
More information about the mesa-dev
mailing list