On Sat, Feb 22, 2014 at 10:25 PM, Bill Schmidt <wschm...@linux.vnet.ibm.com> wrote: > Hi, > > This patch adds -maltivec=be support for vec_lde and vec_ste, similarly > to what was done for vec_ld, vec_st, vec_ldl, and vec_stl. Much of the > same infrastructure is used. Because the insn pattern for vec_ste is > formed slightly differently than the ones for vec_st and vec_stl, we > can't reuse altivec_expand_stvx_be in this case (but > altivec_expand_lvx_be works fine for vec_lde). There are four new test > cases, covering correct behavior for all appropriate vector types for > BE, LE, and LE with -maltivec=be. > > Bootstrapped and tested on powerpc64{,le}-unknown-linux-gnu with no > regressions. Is this ok for trunk? > > Thanks, > Bill > > > gcc: > > 2014-02-22 Bill Schmidt <wschm...@linux.vnet.ibm.com> > > * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace > define_insn with define_expand and new define_insn > *altivec_lve<VI_char>x_internal. > (altivec_stve<VI_char>x): Replace define_insn with define_expand > and new define_insn *altivec_stve<VI_char>x_internal. > * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New > prototype. > * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by > lve*x built-ins. > (altivec_expand_stvex_be): New function. > > gcc/testsuite: > > 2014-02-22 Bill Schmidt <wschm...@linux.vnet.ibm.com> > > * testsuite/gcc.dg/vmx/lde.c: New test. > * testsuite/gcc.dg/vmx/lde-be-order.c: New test. > * testsuite/gcc.dg/vmx/ste.c: New test. > * testsuite/gcc.dg/vmx/ste-be-order.c: New test.
Okay. Thanks, David