Re: [PATCH][PING] Vectorize conversions directly

2011-12-22 Thread Richard Earnshaw
On 22/12/11 13:14, Dmitry Plotnikov wrote: > gcc/config/arm/ > * neon.md (float2): New. >(floatuns2): New. >(fix_trunc2): New. >(fix_truncuns2): New. > * iterators.md (V_CVTTOF): New iterator. >(V_CVTTOI): New iterator. > > > diff --git a/gcc/config/arm/

Re: [PATCH][PING] Vectorize conversions directly

2011-12-22 Thread Dmitry Plotnikov
Here is the patch with iterators for instructions and neon_type attributes. Also fast-math-pr35982.c is changed according to Ira's comment. I will look at integration with patterns for neon intrinsics later. 2011-12-22 Dmitry Plotnikov gcc/ * tree-cfg.c (verify_gimple_assign_unary): A

Re: [PATCH][PING] Vectorize conversions directly

2011-11-26 Thread Ira Rosen
gcc-patches-ow...@gcc.gnu.org wrote on 22/11/2011 03:31:22 PM: > From: Ramana Radhakrishnan > > gcc/testsuite/lib/ > >    * target-supports.exp (check_effective_target_vect_intfloat_cvt): True > >      for ARM NEON. > >      (check_effective_target_vect_uintfloat_cvt): Likewise. > >      (check

Re: [PATCH][PING] Vectorize conversions directly

2011-11-22 Thread Ramana Radhakrishnan
Sorry , it's taken me a while to get to this. On 28 October 2011 09:22, Dmitry Plotnikov wrote: > > gcc/config/arm/ >    * neon.md (floatv2siv2sf2): New. >      (floatunsv2siv2sf2): New. >      (fix_truncv2sfv2si2): New. >      (fix_truncunsv2sfv2si2): New. >      (floatv4siv4sf2): New. >      (f

Re: [PATCH][PING] Vectorize conversions directly

2011-10-28 Thread Richard Henderson
On 10/28/2011 01:22 AM, Dmitry Plotnikov wrote: > gcc/ > * tree-cfg.c (verify_gimple_assign_unary): Allow vector conversions. > * optabs.c (supportable_convert_operation): New function. > * optabs.h (supportable_convert_operation): New prototype. > * tree-vect-stmts.c (vectorizable_

Re: [PATCH][PING] Vectorize conversions directly

2011-10-28 Thread Dmitry Plotnikov
Here is the patch updated according to recent comments. 2011-10-28 Dmitry Plotnikov gcc/ * tree-cfg.c (verify_gimple_assign_unary): Allow vector conversions. * optabs.c (supportable_convert_operation): New function. * optabs.h (supportable_convert_operation): New prototype. * t

Re: [PATCH][PING] Vectorize conversions directly

2011-10-24 Thread Joseph S. Myers
On Mon, 24 Oct 2011, Ramana Radhakrishnan wrote: > That is correct - they round towards nearest if converting from > integer to floating point and round towards zero if converting in the > reverse direction. !flag_rounding_math should be the case at the very > least. I'm not yet convinced that you

Re: [PATCH][PING] Vectorize conversions directly

2011-10-24 Thread Ramana Radhakrishnan
On 24 October 2011 15:02, Joseph S. Myers wrote: > On Mon, 24 Oct 2011, Dmitry Plotnikov wrote: > >> * neon.md (floatv2siv2sf2): New. >> (floatunsv2siv2sf2): New. > >> (floatv4siv4sf2): New. >> (floatunsv4siv4sf2): New. > > My undertstanding is that the NEON conversions of in

Re: [PATCH][PING] Vectorize conversions directly

2011-10-24 Thread Joseph S. Myers
On Mon, 24 Oct 2011, Dmitry Plotnikov wrote: > * neon.md (floatv2siv2sf2): New. > (floatunsv2siv2sf2): New. > (floatv4siv4sf2): New. > (floatunsv4siv4sf2): New. My undertstanding is that the NEON conversions of integer vectors to floating point always round to nearest - so

Re: [PATCH][PING] Vectorize conversions directly

2011-10-21 Thread Ramana Radhakrishnan
> Otherwise the generic parts of the patch look good. > Please get separate approval for the arm portions of the patch. Is it just me or has no one else seen this patch on the archives at gcc-patches@. ? Ramana

Re: [PATCH][PING] Vectorize conversions directly

2011-10-20 Thread Richard Henderson
On 10/20/2011 09:24 AM, Dmitry Plotnikov wrote: > gcc/ > * tree-cfg.c (verify_gimple_assign_unary): Allow vector conversions. > * tree-vect-stmts.c (supportable_convert_operation): New function. > (vectorizable_conversion): Call it. Change condition and behavior > for NONE modi