Add _FloatN, _FloatNx tests for __builtin_fpclassify.
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr57425-3.c
blob8e0c7fe2dec05d0fc72b32de08c1a5dc3055edbe
1 /* { dg-do run } */
3 extern void abort (void) __attribute__((noreturn));
5 int
6 main ()
8 int sum = 0;
10 long a[20];
11 long *c;
12 c = a;
13 asm ("": "=r" (c):"0" (c));
14 *c = 0;
15 asm ("": "=r" (c):"0" (c));
16 sum += *c;
19 long long b[10];
20 long long *c;
21 c = b;
22 asm ("": "=r" (c):"0" (c));
23 *c = 1;
24 asm ("": "=r" (c):"0" (c));
25 sum += *c;
28 if (sum != 1)
29 abort();
30 return 0;