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