aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2000-04-27 14:05:09 +0000
committerJan Hubicka <hubicka@gcc.gnu.org>2000-04-27 14:05:09 +0000
commit6d844225475f369c544da9102d808b915d71d4d9 (patch)
treeb50705366f2f635c510ebfc394aa86f285c2087c /gcc
parentd82704fbb15b75377fea35ba99ab5ea7b28597b2 (diff)
downloadgcc-6d844225475f369c544da9102d808b915d71d4d9.zip
gcc-6d844225475f369c544da9102d808b915d71d4d9.tar.gz
gcc-6d844225475f369c544da9102d808b915d71d4d9.tar.bz2
20000427-1.c: New test for loop hoisting code and hard registers.
* compile/20000427-1.c: New test for loop hoisting code and hard registers. From-SVN: r33483
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/gcc.c-torture/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20000427-1.c9
2 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/ChangeLog b/gcc/testsuite/gcc.c-torture/ChangeLog
index 23df8a7..24cd000 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 0000000..dc51419
--- /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;
+}