Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / pr78056-1.c
blob0d37d2b08b84e5b78f539831ae1455119f7f2439
1 /* { dg-do compile { target { powerpc*-*-* } } } */
2 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power8" } } */
3 /* { dg-require-effective-target powerpc_p9vector_ok } */
4 /* { dg-skip-if "" { powerpc*-*-aix* } } */
5 /* { dg-options "-mcpu=power8" } */
7 /* This test should succeed on both 32- and 64-bit configurations. */
8 #include <altivec.h>
10 /* Though the command line specifies power8 target, this function is
11 to support power9. */
12 __attribute__((target("cpu=power9")))
13 int get_random ()
15 return __builtin_darn_32 ();
18 /* { dg-final { scan-assembler "darn" } } */