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: [patch] MIPS V2SF RTL patterns


"Chao-ying Fu" <fu@mips.com> writes:
>         * config/mips/mips-ps-3d.md (vcondv2sf, sminv2sf3, smaxv2sf3,
>         vec_extract_evenv2sf, vec_extract_oddv2sf,
>         vec_interleave_highv2sf, vec_interleave_lowv2sf): New.
>         * config/mips/mips-protos.h: Declare mips_expand_fp_vcond and
>         mips_expand_fp_vector_minmax.
>         * config/mips/mips.c (mips_expand_fp_vcond,
>         mips_expand_fp_vector_minmax): New functions.

FWIW, I'd like to make some changes to this, but I won't have time in
the next few days.  The final patch will still go in for 4.2 of course,
because it was posted before stage 3 starts.

The things I want to do are:

  (a) use a single pattern for smin/smax.
  (b) make mips_expand_fp_vector_minmax take the code rather than a boolean
  (c) (the most important IMO) change things so that the fp_vcond stuff
      uses the same style of fcond/swapped_fcond patterns as the normal
      scc support.  As it stands, mips_expand_fp_vcond is basically
      duplicating the logic in fcond/swapped_fcond and mips_emit_compare
      (although it presents the results in a different way).

Richard


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