* gcc.target/powerpc/builtins-1-be.c <vclzb>: Rename duplicate test
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / byte-in-range-0.c
blob93f670d15f34a94c998deeb7257c96f33b29a896
1 /* { dg-do compile { target { powerpc*-*-* } } } */
2 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power9" } } */
3 /* { dg-require-effective-target powerpc_p9vector_ok } */
4 /* { dg-skip-if "" { powerpc*-*-aix* } } */
5 /* { dg-options "-mcpu=power9" } */
7 /* This test should succeed on both 32- and 64-bit configurations. */
8 #include <altivec.h>
10 int
11 test_byte_in_range (unsigned char b,
12 unsigned char low_range, unsigned char high_range)
14 unsigned int range_encoding = (high_range << 8) | low_range;
15 return __builtin_byte_in_range (b, range_encoding);
18 /* { dg-final { scan-assembler "cmprb" } } */
19 /* { dg-final { scan-assembler "setb" } } */