This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [nvptx, PATCH, 2/3 ] Add v2si support


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]