gcc/testsuite/gcc.target/arm/fp16-aapcs.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-require-effective-target arm_fp16_alternative_ok } */ |
| 3 | /* { dg-options "-O2" } */ |
| 4 | /* { dg-add-options arm_fp16_alternative } */ |
| 5 | /* { dg-final { check-function-bodies "**" "" "" } } */ |
| 6 | |
| 7 | /* Test __fp16 arguments and return value in registers. */ |
| 8 | |
| 9 | __fp16 f(); |
| 10 | void g(__fp16); |
| 11 | void h(); |
| 12 | |
| 13 | /* |
| 14 | ** test: |
| 15 | ** ... |
| 16 | ** bl f |
| 17 | ** bl g |
| 18 | ** ... |
| 19 | */ |
| 20 | int test() |
| 21 | { |
| 22 | g(f()); |
| 23 | h(); |
| 24 | } |