OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [graphite/] [pr29832.f90] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 694 jeremybenn
! { dg-do run }
2
! { dg-options "-O2 -ftree-loop-linear" }
3
 
4
! Program to test the scalarizer
5
program testarray
6
   implicit none
7
   integer, dimension (6, 5) :: a, b
8
   integer n
9
 
10
   a = 0
11
   do n = 1, 5
12
      a(4, n) = n
13
   end do
14
 
15
   b(:, 5:1:-1) = a
16
   a(1:5, 2) = a(4, :) + 1
17
 
18
   ! The following expression should cause loop reordering
19
   a(:, 2:4) = a(:, 1:3)
20
 
21
   do n = 1, 5
22
      if (a(n, 3) .ne. (n + 1)) call abort
23
      if (b(4, n) .ne. (6 - n)) call abort
24
   end do
25
end program
26
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.