Hi! On Wed, Oct 10, 2018 at 10:14:42AM -0500, Will Schmidt wrote: > --- /dev/null > +++ b/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-char.p7.c > @@ -0,0 +1,60 @@ > +/* Verify that overloaded built-ins for vec_extract() with char > + inputs produce the right code with a power7 (BE) target. */ > + > +/* { dg-do compile { target { powerpc*-*-linux* && lp64 } } } */ > +/* { dg-require-effective-target powerpc_altivec_ok } */
powerpc_altivec_ok is true on all systems nowadays. > +/* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { > "-mcpu=power7" } } */ > +/* { dg-options "-maltivec -mcpu=power7 -O2" } */ And -mcpu=power7 implies -maltivec, too. > +/* { dg-final { scan-assembler-times "lhz|lha|lhzx|lhax" 6 } } */ "lhz" matches "lhzx" as well, etc. But this will all work afaics so okay for trunk with or without fixing it up a little. Thanks! Segher