docs: Document that __builtin_assoc_barrier also can be used for FMAs [PR115023]
[official-gcc.git] / gcc / testsuite / gfortran.dg / reassoc_2.f90
blob3e323eb013453511c171d05cbdb299435421e472
1 ! { dg-do compile }
2 ! { dg-options "-O3 -ffast-math -fdump-tree-optimized" }
4 ! Make sure that FRE does not replace c with b in d = c - 5
6 function test(a)
7 real a, b, c, d
8 b = a + 5.
9 c = (a + 5.)
10 d = c - 5.
11 call foo(b)
12 test = d
13 end
15 ! { dg-final { scan-tree-dump "- 5" "optimized" } }