This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [nvptx, PATCH, 2/3 ] Add v2si support
- From: Jeff Law <law at redhat dot com>
- To: Tom de Vries <Tom_deVries at mentor dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 23 Jun 2017 11:45:35 -0600
- Subject: Re: [nvptx, PATCH, 2/3 ] Add v2si support
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx10.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx10.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=law at redhat dot com
- Dkim-filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 40AD961D05
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 40AD961D05
- References: <a998315c-fdfc-0ea9-dc26-4a782b99f6a6@mentor.com>
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 <tom@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