[PATCH, rs6000] Add BE support for first_match_index, first_match_or_eos_index, first_mismatch_index, first_mismatch_or_eos_index
Carl Love
cel@us.ibm.com
Wed Jun 6 23:22:00 GMT 2018
Segher:
> > > > Â Â Â Â Â Â Â rtx tmp = gen_reg_rtx (SImode);
> > > > -Â Â Â Â Â Â emit_insn (gen_vctzlsbb_<mode> (tmp, result));
> > > > +Â Â Â Â Â Â if (!BYTES_BIG_ENDIAN)
> > > > +Â Â Â Â Â Â Â Â emit_insn (gen_vctzlsbb_<mode> (tmp, result));
> > > > +Â Â Â Â Â Â else
> > > > +Â Â Â Â Â Â Â Â emit_insn (gen_vclzlsbb_<mode> (tmp, result));
> > > > Â Â Â Â Â Â Â emit_insn (gen_ashrsi3 (operands[0], tmp, GEN_INT
> > > > (sh)));
> > > > Â Â Â Â Â }
> > >
> > > Can this work with lshrsi3 instead?  That is slightly cheaper.
> > >
> > > Looks great, please apply to trunk.  Thanks!
> >
> > Yes, the builtin works with lshrsi3 change.  I will commit with
> > this
> > change.
>
> It occurs in four places, please fix all then.
Yup, I already got all four of them. :-)
Carl Love
More information about the Gcc-patches
mailing list