forked from gcc-mirror/gcc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the direction of the scheduling window & Fix scheduling order wit…
…hin a row git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130567 138bc75d-0d04-0410-961f-82ee72b054a4
- Loading branch information
revitale
committed
Dec 2, 2007
1 parent
07eb670
commit fe861e7
Showing
5 changed files
with
270 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* { dg-do run } */ | ||
/* { dg-options "-O2 -fmodulo-sched -funroll-loops" } */ | ||
|
||
extern void abort (void); | ||
|
||
int X[1000]={0}; | ||
int Y[1000]={0}; | ||
|
||
extern void abort (void); | ||
|
||
int | ||
foo (int len, long a) | ||
{ | ||
int i; | ||
long res = a; | ||
|
||
len = 1000; | ||
for (i = 0; i < len; i++) | ||
res += X[i]* Y[i]; | ||
|
||
if (res != 601) | ||
abort (); | ||
|
||
} | ||
|
||
int | ||
main () | ||
{ | ||
X[0] = Y[1] = 2; | ||
Y[0] = X[1] = 21; | ||
X[2] = Y[3] = 3; | ||
Y[2] = X[3] = 31; | ||
X[4] = Y[5] = 4; | ||
Y[4] = X[5] = 41; | ||
|
||
foo (6, 3); | ||
return 0; | ||
} | ||
|
Oops, something went wrong.