1 /* Verify that overloaded built-ins for vec_cmp with short 2 inputs produce the right code. */ 3 4 /* { dg-do compile } */ 5 /* { dg-require-effective-target powerpc_p8vector_ok } */ 6 /* { dg-options "-mpower8-vector -mcpu=power8 -O2" } */ 7 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power8" } } */ 8 9 #include "fold-vec-cmp-short.h" 10 11 /* { dg-final { scan-assembler-times "vcmpequh" 4 } } */ 12 /* { dg-final { scan-assembler-times "vcmpneh" 0 } } */ 13 /* { dg-final { scan-assembler-times "vcmpgtsh" 4 } } */ 14 /* { dg-final { scan-assembler-times "vcmpgtuh" 4 } } */ 15 /* { dg-final { scan-assembler-times "xxlnor" 6 } } */ 16 17