diff options
| author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-04-27 14:05:09 +0000 |
|---|---|---|
| committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-04-27 14:05:09 +0000 |
| commit | b024f1ba39461f4df2cb4b4d1cc60b3efd10c785 (patch) | |
| tree | b50705366f2f635c510ebfc394aa86f285c2087c | |
| parent | cbe23f2fbd19ef797987fcc3742c2f98ec200058 (diff) | |
| download | ppe42-gcc-b024f1ba39461f4df2cb4b4d1cc60b3efd10c785.tar.gz ppe42-gcc-b024f1ba39461f4df2cb4b4d1cc60b3efd10c785.zip | |
* compile/20000427-1.c: New test for loop hoisting code
and hard registers.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33483 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/testsuite/gcc.c-torture/ChangeLog | 5 | ||||
| -rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/20000427-1.c | 9 |
2 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/ChangeLog b/gcc/testsuite/gcc.c-torture/ChangeLog index 23df8a79119..24cd000ad16 100644 --- a/gcc/testsuite/gcc.c-torture/ChangeLog +++ b/gcc/testsuite/gcc.c-torture/ChangeLog @@ -1,3 +1,8 @@ +Thu Apr 27 15:58:18 MET DST 2000 Jan Hubicka <jh@suse.cz> + + * compile/20000427-1.c: New test for loop hoisting code + and hard registers. + 2000-04-26 Geoff Keating <geoffk@cygnus.com> * execute/loop-5.c: New test. diff --git a/gcc/testsuite/gcc.c-torture/compile/20000427-1.c b/gcc/testsuite/gcc.c-torture/compile/20000427-1.c new file mode 100644 index 00000000000..dc51419cf01 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/20000427-1.c @@ -0,0 +1,9 @@ +int lwidth; +int lheight; +void ConvertFor3dDriver (int requirePO2, int maxAspect) +{ + int oldw = lwidth, oldh = lheight; + + lheight = FindNearestPowerOf2 (lheight); + while (lwidth/lheight > maxAspect) lheight += lheight; +} |

