1 ! RUN: bbc %s -o - | FileCheck %s
5 ! F77 code for the array computation c = ((a + b) * c) + (b / 2.0).
6 ! (Eventually, test that the temporary arrays are eliminated.)
7 subroutine sub(a
,b
,c
,i
,j
,k
)
8 real a(i
,j
,k
), b(i
,j
,k
), c(i
,j
,k
)
9 real t1(i
,j
,k
), t2(i
,j
,k
)
16 t1(r
,s
,t
) = a(r
,s
,t
) + b(r
,s
,t
)
23 t2(r
,s
,t
) = t1(r
,s
,t
) * c(r
,s
,t
)
30 c(r
,s
,t
) = t2(r
,s
,t
) + b(r
,s
,t
) / 2.0