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. */
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" } } */