gcc/testsuite/gcc.target/powerpc/darn-0.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-mdejagnu-cpu=power9 -mvsx" } */ |
| 3 | /* { dg-require-effective-target powerpc_vsx } */ |
| 4 | /* { dg-skip-if "" { powerpc*-*-aix* } } */ |
| 5 | |
| 6 | /* This test should succeed on both 32- and 64-bit configurations. */ |
| 7 | #include <altivec.h> |
| 8 | |
| 9 | int get_random () |
| 10 | { |
| 11 | return __builtin_darn_32 (); |
| 12 | } |
| 13 | |
| 14 | /* { dg-final { scan-assembler "darn" } } */ |