Re: [PATCH, rs6000] Add Power 9 support for vec_first builtins

2017-11-01 Thread Segher Boessenkool
Hi Carl, On Tue, Oct 31, 2017 at 08:46:09AM -0700, Carl Love wrote: > gcc/ChangeLog: See Jakub's comments (thanks!) > --- a/gcc/config/rs6000/rs6000.c > +++ b/gcc/config/rs6000/rs6000.c > @@ -14286,6 +14286,34 @@ swap_selector_for_mode (machine_mode mode) >return force_reg (V16QImode,

Re: [PATCH, rs6000] Add Power 9 support for vec_first builtins

2017-10-31 Thread Jakub Jelinek
On Tue, Oct 31, 2017 at 08:46:09AM -0700, Carl Love wrote: > 2017-10-31 Carl Love > > * config/rs6000/rs6000-c.c: Add support for builtins: > unsigned int vec_first_match_index (vector signed char, > vector signed char);

Re: [PATCH, rs6000] Add Power 9 support for vec_first builtins

2017-10-31 Thread Carl Love
GCC maintainers: The patch has been updated to fix the typo and retested. Unfortunately the names of the builtins are rather long and unwieldy to begin with. Please let me know if the following patch is acceptable. Thanks. Carl Love

Re: [PATCH, rs6000] Add Power 9 support for vec_first builtins

2017-10-23 Thread Segher Boessenkool
Hi Carl, On Thu, Oct 19, 2017 at 04:31:13PM -0700, Carl Love wrote: > * config/rs6000/rs6000-builtin.def (VFIRSTMATCHINDEX, > VFIRSTMATCHOREOSINDEX, VFIRSTMISMATCHINDEX, VFIRSTMISMATCHOREOSINDEX): > Add BU_P9V_AV_2 expansions for the builtins. Those names are a bit unwieldy ;-)

[PATCH, rs6000] Add Power 9 support for vec_first builtins

2017-10-19 Thread Carl Love
GCC maintainers: The following patch adds support for the vec_first_match_index, vec_first_match_or_eos_index, vec_first_mismatch_index, and vec_first_mismatch_or_eos_index builtins for ISA 3.0. The patch has been tested on: powerpc64le-unknown-linux-gnu (Power 8 LE)