Commit 254b7859 by Sebastian Pop Committed by Sebastian Pop

Add testcase for PR29832.

2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>

	PR tree-optimization/29832
	* gfortran.dg/graphite/pr29832.f90: New.

From-SVN: r169253
parent eaf52b41
2011-01-25 Sebastian Pop <sebastian.pop@amd.com> 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
PR tree-optimization/29832
* gfortran.dg/graphite/pr29832.f90: New.
2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
PR tree-optimization/43567 PR tree-optimization/43567
* gcc.dg/graphite/pr43567.c: New. * gcc.dg/graphite/pr43567.c: New.
......
! { dg-do run }
! { dg-options "-O2 -ftree-loop-linear" }
! Program to test the scalarizer
program testarray
implicit none
integer, dimension (6, 5) :: a, b
integer n
a = 0
do n = 1, 5
a(4, n) = n
end do
b(:, 5:1:-1) = a
a(1:5, 2) = a(4, :) + 1
! The following expression should cause loop reordering
a(:, 2:4) = a(:, 1:3)
do n = 1, 5
if (a(n, 3) .ne. (n + 1)) call abort
if (b(4, n) .ne. (6 - n)) call abort
end do
end program
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment