On 06/06/2017 07:05 AM, Tom de Vries wrote:
> Hi,
> 
> this patch adds v2si support to the nvptx target.
> 
> Tested in nvptx mainkernel mode and x86_64 accelerator mode.
> 
> OK for trunk?
> 
> Thanks,
> - Tom
> 
> 
> 0002-Add-v2si-support.patch
> 
> 
> Add v2si support
> 
> 2017-06-06  Tom de Vries  <t...@codesourcery.com>
> 
>       * config/nvptx/nvptx-modes.def: New file.  Add V2SImode.
>       * config/nvptx/nvptx.c (nvptx_ptx_type_from_mode): Handle V2SImode.
>       (nvptx_vector_mode_supported): New function.  Allow V2SImode.
>       (TARGET_VECTOR_MODE_SUPPORTED_P): Redefine to 
> nvptx_vector_mode_supported.
>       * config/nvptx/nvptx.md (VECIM): New mode iterator. Add V2SI.
>       (mov<VECIM>_insn): New define_insn.
>       (define_expand "mov<VECIM>): New define_expand.
> 
>       * gcc.target/nvptx/slp-run.c: New test.
>       * gcc.target/nvptx/slp.c: New test.
>       * gcc.target/nvptx/v2si-cvt.c: New test.
>       * gcc.target/nvptx/v2si-run.c: New test.
>       * gcc.target/nvptx/v2si.c: New test.
>       * gcc.target/nvptx/vec.inc: New test.
OK.
jeff

Reply via email to