[llvm] r181266 - R600/SI: Add pattern for uint_to_fp

Rafael Espíndola rafael.espindola at gmail.com
Tue May 7 08:52:07 PDT 2013


testcase?

On 6 May 2013 19:02, Tom Stellard <thomas.stellard at amd.com> wrote:
> Author: tstellar
> Date: Mon May  6 18:02:07 2013
> New Revision: 181266
>
> URL: http://llvm.org/viewvc/llvm-project?rev=181266&view=rev
> Log:
> R600/SI: Add pattern for uint_to_fp
>
> Patch by: Michel Dänzer
>
> Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
> Reviewed-by: Tom Stellard <thomas.stellard at amd.com>
>
> Modified:
>     llvm/trunk/lib/Target/R600/SIInstructions.td
>
> Modified: llvm/trunk/lib/Target/R600/SIInstructions.td
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/R600/SIInstructions.td?rev=181266&r1=181265&r2=181266&view=diff
> ==============================================================================
> --- llvm/trunk/lib/Target/R600/SIInstructions.td (original)
> +++ llvm/trunk/lib/Target/R600/SIInstructions.td Mon May  6 18:02:07 2013
> @@ -602,7 +602,9 @@ defm V_READFIRSTLANE_B32 : VOP1_32 <0x00
>  defm V_CVT_F32_I32 : VOP1_32 <0x00000005, "V_CVT_F32_I32",
>    [(set f32:$dst, (sint_to_fp i32:$src0))]
>  >;
> -defm V_CVT_F32_U32 : VOP1_32 <0x00000006, "V_CVT_F32_U32", []>;
> +defm V_CVT_F32_U32 : VOP1_32 <0x00000006, "V_CVT_F32_U32",
> +  [(set f32:$dst, (uint_to_fp i32:$src0))]
> +>;
>  defm V_CVT_U32_F32 : VOP1_32 <0x00000007, "V_CVT_U32_F32", []>;
>  defm V_CVT_I32_F32 : VOP1_32 <0x00000008, "V_CVT_I32_F32",
>    [(set i32:$dst, (fp_to_sint f32:$src0))]
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits




More information about the llvm-commits mailing list