| 1 |
/* { dg-do assemble { target { arm*-*-* } } } */ |
| 2 |
/* { dg-require-effective-target arm_v8_2a_bf16_neon_ok } */ |
| 3 |
/* { dg-add-options arm_v8_2a_bf16_neon } */ |
| 4 |
/* { dg-additional-options "-std=c99 -pedantic-errors -O3 --save-temps" } */ |
| 5 |
|
| 6 |
#include <arm_bf16.h> |
| 7 |
|
| 8 |
_Complex bfloat16_t stacktest1 (_Complex bfloat16_t __a) |
| 9 |
{ |
| 10 |
volatile _Complex bfloat16_t b = __a; |
| 11 |
return b; |
| 12 |
} |
| 13 |
|
| 14 |
/* { dg-error {ISO C does not support plain 'complex' meaning 'double complex'} "" { target *-*-* } 8 } */ |
| 15 |
/* { dg-error {expected '=', ',', ';', 'asm' or '__attribute__' before 'stacktest1'} "" { target *-*-* } 8 } */ |
| 16 |
|