summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arm/fp16-compile-alt-12.c
blob: 3c3bd2f02f6f90c15cac7cb60e0ffa859540e874 (plain)
1
2
3
4
5
6
7
8
9
/* { dg-do compile } */
/* { dg-require-effective-target arm_fp16_alternative_ok } */
/* { dg-options "-mfp16-format=alternative" } */

float xx __attribute__((mode(HF))) = 0.0;

/* { dg-final { scan-assembler "\t.eabi_attribute 38, 2" } } */
/* { dg-final { scan-assembler "\t.size\txx, 2" } } */
/* { dg-final { scan-assembler "\t.space\t2" } } */