gcc/testsuite/gcc.target/arm/fp16-compile-alt-2.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-require-effective-target arm_fp16_alternative_ok } */ |
| 3 | /* { dg-add-options arm_fp16_alternative } */ |
| 4 | |
| 5 | /* Encoding taken from: http://en.wikipedia.org/wiki/Half_precision */ |
| 6 | /* 0x3c00 = 15360 */ |
| 7 | __fp16 xx = 1.0; |
| 8 | |
| 9 | /* { dg-final { scan-assembler "\t.size\txx, 2" } } */ |
| 10 | /* { dg-final { scan-assembler "\t.short\t15360" } } */ |