summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arm/fp16-compile-ieee-11.c
blob: afab518b9c7b48994a7db203c48e14589d2a016c (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-do compile } */
/* { dg-options "-mfp16-format=ieee -std=gnu99" } */

#include <math.h>

/* 0x7c00 = 31744 */
__fp16 xx = INFINITY;

/* { dg-final { scan-assembler "\t.size\txx, 2" } } */
/* { dg-final { scan-assembler "\t.short\t31744" } } */