arm: fix typo in dg-require-effective-target [PR118089]
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / vrp-float-8.c
blob9170150d453f0cca2e93ac1244729ab6516b810b
1 // { dg-do compile }
2 // { dg-options "-O2 -fno-thread-jumps -fdump-tree-evrp" }
4 extern void link_error ();
6 void fast_sqrt (float);
8 float test (float x)
10 float y = x*x;
11 if (y >= 0.f)
13 if (__builtin_isnan (y))
14 link_error ();
15 else
16 fast_sqrt (y);
18 if (!__builtin_isnan (y))
19 fast_sqrt (y);
20 else
21 link_error ();
25 // { dg-final { scan-tree-dump-times "fast_sqrt" 2 "evrp" } }
26 // { dg-final { scan-tree-dump-not "link_error" "evrp" } }