[Mesa-dev] [PATCH 2/2] radeon/llvm: replace int_AMDGPU_rcp by fdiv (1.0, x) in RECIP pattern

Tom Stellard tom at stellard.net
Fri Nov 30 08:33:24 PST 2012


On Thu, Nov 29, 2012 at 09:58:40PM +0100, Vincent Lejeune wrote:
> ---
>  lib/Target/AMDGPU/R600Instructions.td | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/lib/Target/AMDGPU/R600Instructions.td b/lib/Target/AMDGPU/R600Instructions.td
> index 9259680..d75c32e 100644
> --- a/lib/Target/AMDGPU/R600Instructions.td
> +++ b/lib/Target/AMDGPU/R600Instructions.td
> @@ -898,8 +898,8 @@ class RECIP_CLAMPED_Common <bits<11> inst> : R600_1OP <
>    inst, "RECIP_CLAMPED", []
>  >;
>  
> -class RECIP_IEEE_Common <bits<11> inst> : R600_1OP_Helper <
> -  inst, "RECIP_IEEE", int_AMDGPU_rcp
> +class RECIP_IEEE_Common <bits<11> inst> : R600_1OP <
> +  inst, "RECIP_IEEE", [(set R600_Reg32:$dst, (fdiv FP_ONE, R600_Reg32:$src0))]
>  >;

We should update the pattern in SIInstructions.td too.
>  
>  class RECIP_UINT_Common <bits<11> inst> : R600_1OP_Helper <
> -- 
> 1.8.0
> 
> _______________________________________________
> 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