Add _FloatN, _FloatNx tests for __builtin_fpclassify.
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr43879-3.c
blob5ee80d5188d81231019da90bcf317429cdc29b36
1 /* { dg-do run } */
2 /* { dg-options "-fipa-pta" } */
4 typedef unsigned long ulong;
6 int __attribute__((noinline, noclone))
7 f4 (int a, int b, int c, int d, int e)
9 return a + b + c + d + e;
12 void __attribute__((noinline, noclone))
13 f3 (int *p)
15 *p = f4(1, 2, 3, 4, 5);
18 void __attribute__((noinline, noclone))
19 f2 ()
21 int unused;
22 f3 (&unused);
25 void __attribute__((noinline, noclone))
26 f1 (ulong e, ulong f)
28 if (e > 5 || f > 5) __builtin_abort();
29 f2 ();
33 int main()
35 ulong e, f;
36 for (e = 5; e > 0; e--)
37 for (f = 5; f > 0; f--)
38 f1(e, f);
39 return 0;