diff options
Diffstat (limited to 'gcc/testsuite/gcc.apple/apple-altivec-builtin-nanf.c')
-rw-r--r-- | gcc/testsuite/gcc.apple/apple-altivec-builtin-nanf.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.apple/apple-altivec-builtin-nanf.c b/gcc/testsuite/gcc.apple/apple-altivec-builtin-nanf.c new file mode 100644 index 00000000000..fb9253929f2 --- /dev/null +++ b/gcc/testsuite/gcc.apple/apple-altivec-builtin-nanf.c @@ -0,0 +1,8 @@ +/* APPLE LOCAL file AltiVec */ +/* { dg-do compile { target powerpc*-*-* } } */ +/* { dg-options "-faltivec" } */ + +void _sqrt() +{ + __vector float vNAN = (__vector float)(__builtin_nanf("0x7fc00000")); +} |