| 1 |
! Reduced from SPEC2017 527.cam4 zm_conv.F90 |
| 2 |
|
| 3 |
! { dg-do compile } |
| 4 |
! { dg-options "-Ofast -std=legacy -march=rv64gcv_zvl256b_zba_zbb_zbs_zicond -ftree-vectorize -mabi=lp64d" } |
| 5 |
|
| 6 |
module a |
| 7 |
contains |
| 8 |
subroutine b(f) |
| 9 |
|
| 10 |
real d(4) |
| 11 |
integer e(4) |
| 12 |
integer f(4) |
| 13 |
real hmax(4) |
| 14 |
real g(4) |
| 15 |
|
| 16 |
integer h(4) |
| 17 |
integer l(4,5) |
| 18 |
do i = 1,c |
| 19 |
h(i) = 0 |
| 20 |
end do |
| 21 |
do k = j ,1 |
| 22 |
do i = 1,c |
| 23 |
q = g(i) + hmax(i) |
| 24 |
if (k >= nint(d(i)) .and. k <= e(i) .and. q > 1.e4) then |
| 25 |
f(i) = k |
| 26 |
end if |
| 27 |
if (k < o ) then |
| 28 |
if (buoy<= 0.) then |
| 29 |
l(i,h) = k |
| 30 |
end if |
| 31 |
end if |
| 32 |
end do |
| 33 |
end do |
| 34 |
do n = 1,5 |
| 35 |
do k = 1,m |
| 36 |
do i = 1,c |
| 37 |
if (k > l(i,n)) then |
| 38 |
p = r() |
| 39 |
end if |
| 40 |
end do |
| 41 |
end do |
| 42 |
end do |
| 43 |
end |
| 44 |
end |
| 45 |
|
| 46 |
! { dg-final { scan-assembler-times {frrm\s+[axs][0-9]+} 1 } } |
| 47 |
! { dg-final { scan-assembler-times {fsrmi\s+[01234]} 1 } } |
| 48 |
! { dg-final { scan-assembler-times {fsrm\s+[axs][0-9]+} 1 } } |