view gcc/testsuite/gcc.target/arm/bfloat16_scalar_4.c @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 1830386684a0
children
line wrap: on
line source

/* { dg-do assemble { target { arm*-*-* } } } */
/* { dg-require-effective-target arm_v8_2a_bf16_neon_ok } */
/* { dg-add-options arm_v8_2a_bf16_neon }  */
/* { dg-additional-options "-std=c99 -pedantic-errors -O3 --save-temps" } */

#include <arm_bf16.h>

_Complex bfloat16_t stacktest1 (_Complex bfloat16_t __a)
{
  volatile _Complex bfloat16_t b = __a;
  return b;
}

/* { dg-error {ISO C does not support plain 'complex' meaning 'double complex'} "" { target *-*-* } 8 } */
/* { dg-error {expected '=', ',', ';', 'asm' or '__attribute__' before 'stacktest1'} "" { target *-*-* } 8 } */