Use conditional internal functions in if-conversion
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / fold-vec-cmp-int.p8.c
blob023ea7345d403fdc915e7be1e2ca04eecf22874c
1 /* Verify that overloaded built-ins for vec_cmp with int
2 inputs produce the right code. */
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" } } */
9 #include "fold-vec-cmp-int.h"
11 /* { dg-final { scan-assembler-times "vcmpequw" 4 } } */
12 /* { dg-final { scan-assembler-times "vcmpgtsw" 4 } } */
13 /* { dg-final { scan-assembler-times "vcmpgtuw" 4 } } */
14 /* { dg-final { scan-assembler-times "xxlnor" 6 } } */