summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arm/fp16-compile-none-2.c
blob: eb7eef5eaf22168ae0f2fcdf4761bd7ecc32b34d (plain)
1
2
3
4
5
6
7
/* { dg-do compile } */
/* { dg-options "-mfp16-format=none" } */

/* mode(HF) attributes are not recognized unless you explicitly enable
   half-precision floating point by selecting -mfp16-format=ieee or
   -mfp16-format=alternative.  */
float xx __attribute__((mode(HF))) = 0.0;  /* { dg-error "HF" } */