[ARM] Fix test armv8_2-fp16-move-1.c
[official-gcc.git] / gcc / testsuite / gcc.target / arm / fp16-inf.c
blobce5c197c12183e2b4e272adebac0d32caba5a3ba
1 /* { dg-do run } */
2 /* { dg-options "-O -mfp16-format=ieee" } */
4 /* Conversion of infinity to __fp16 and back again should preserve the
5 value. */
6 volatile float f = __builtin_inf ();
8 int main ()
10 __fp16 h = f;
11 if (h != __builtin_inf ())
12 __builtin_abort ();
13 return 0;