1  /* { dg-do compile { target powerpc64*-*-* } } */
       2  /* { dg-options "-O2 -mdejagnu-cpu=power7" } */
       3  /* { dg-final { scan-assembler-not "xxlor" } } */
       4  
       5  #include <altivec.h>
       6  
       7  typedef __vector unsigned char nvec_t;
       8  
       9  long testz_and(nvec_t a, nvec_t b)
      10  {
      11    nvec_t c = vec_andc(a, b);
      12    return vec_all_eq(a, c);
      13  }