gcc/testsuite/gcc.target/arm/fp16-param-1.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-mfp16-format=ieee" } */ |
| 3 | |
| 4 | /* Test that the ACLE macro is defined. */ |
| 5 | #if __ARM_FP16_ARGS != 1 |
| 6 | #error Unexpected value for __ARM_FP16_ARGS |
| 7 | #endif |
| 8 | |
| 9 | /* Test that __fp16 is supported as a parameter type. */ |
| 10 | extern void f (__fp16); |
| 11 | extern void (*pf) (__fp16); |
| 12 | |
| 13 | extern void g (__fp16 *); |
| 14 | extern void (*pg) (__fp16 *); |