Re: [PATCH, rs6000] GIMPLE folding for vector compares

2017-10-13 Thread Will Schmidt
On Fri, 2017-10-13 at 11:36 +0200, Richard Biener wrote: > On Thu, Oct 12, 2017 at 10:03 PM, Will Schmidt > wrote: > > Hi, > > > > Add support for gimple folding of vec_cmp_{eq,ge,gt,le,ne} for > > the integer data types. > > > > This adds a handful of entries to the

Re: [PATCH, rs6000] GIMPLE folding for vector compares

2017-10-13 Thread Will Schmidt
On Thu, 2017-10-12 at 22:05 -0500, Segher Boessenkool wrote: > > diff --git a/gcc/config/rs6000/vsx.md b/gcc/config/rs6000/vsx.md > > > +;; Vector Compare Not Equal Byte (specified/not+eq:) > > +(define_insn "vcmpneb_spec" > > + [(set (match_operand:V16QI 0 "altivec_register_operand" "=v") > > +

Re: [PATCH, rs6000] GIMPLE folding for vector compares

2017-10-13 Thread Richard Biener
On Thu, Oct 12, 2017 at 10:03 PM, Will Schmidt wrote: > Hi, > > Add support for gimple folding of vec_cmp_{eq,ge,gt,le,ne} for > the integer data types. > > This adds a handful of entries to the switch statement in > builtin_function_type > for those builtins having

Re: [PATCH, rs6000] GIMPLE folding for vector compares

2017-10-12 Thread Segher Boessenkool
Hi Will, On Thu, Oct 12, 2017 at 03:03:12PM -0500, Will Schmidt wrote: > * config/rs6000/rs6000.c: (rs6000_gimple_fold_builtin) Add support for > folding of vector compares. (builtin_function_type) Add compare > builtins to the list of functions having unsigned arguments. >

[PATCH, rs6000] GIMPLE folding for vector compares

2017-10-12 Thread Will Schmidt
Hi, Add support for gimple folding of vec_cmp_{eq,ge,gt,le,ne} for the integer data types. This adds a handful of entries to the switch statement in builtin_function_type for those builtins having unsigned arguments. Three entries are added to vsx.md to enable vcmpne[bhw]