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

/* Encoding taken from:  http://en.wikipedia.org/wiki/Half_precision */
/* 0xc000 = 49152 */
__fp16 xx = -2.0;

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