1 /* Testcase derived from gcc.c-torture/execute cmpsf-1.c
2 which showed jump threading profile insanities. */
3 /* { dg-options "-Ofast -fdump-tree-dom2-all" } */
8 extern void exit (int);
14 feq (float x
, float y
)
23 fne (float x
, float y
)
32 flt (float x
, float y
)
41 fge (float x
, float y
)
50 fgt (float x
, float y
)
59 fle (float x
, float y
)
79 int correct_results
[] =
150 int i
, j
, *res
= correct_results
;
152 for (i
= 0; i
< 8; i
++)
154 float arg0
= args
[i
];
155 for (j
= 0; j
< 8; j
++)
157 float arg1
= args
[j
];
159 if (feq (arg0
, arg1
) != *res
++)
161 if (fne (arg0
, arg1
) != *res
++)
163 if (flt (arg0
, arg1
) != *res
++)
165 if (fge (arg0
, arg1
) != *res
++)
167 if (fgt (arg0
, arg1
) != *res
++)
169 if (fle (arg0
, arg1
) != *res
++)
179 for (i
=0; i
<100; i
++)
184 /* { dg-final-use-not-autofdo { scan-tree-dump-not "Invalid sum" "dom2" } } */