[to-be-committed] [RISC-V] Use Zbkb for general 64 bit constants when profitable
[official-gcc.git] / gcc / testsuite / gfortran.dg / pr56049.f90
blobd760320cd671718dc6b0a06bf7738dd11d36a9a0
1 ! { dg-do compile }
2 ! { dg-options "-O3 -fdump-tree-optimized" }
4 program inline
6 integer i
7 integer a(8,8), b(8,8)
9 a = 0
10 do i = 1, 10000000
11 call add(b, a, 1)
12 a = b
13 end do
15 print *, a
17 contains
19 subroutine add(b, a, o)
20 integer, intent(inout) :: b(8,8)
21 integer, intent(in) :: a(8,8), o
22 b = a + o
23 end subroutine add
25 end program inline
27 ! Check there's no loop left, just two bb 2 in two functions.
28 ! { dg-final { scan-tree-dump-times "<bb \[0-9\]*>" 2 "optimized" } }
29 ! { dg-final { scan-tree-dump-times "<bb 2>" 2 "optimized" } }