aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Berlin <dberlin@gcc.gnu.org>2004-06-21 21:59:38 +0000
committerDaniel Berlin <dberlin@gcc.gnu.org>2004-06-21 21:59:38 +0000
commit6263a8f6a597b54898d4865420e61c6368f67080 (patch)
tree104b71385f5557295ec0dff208b21d0d331c7118
parent56db793abf585246272c17b3e1079024c2bd1deb (diff)
downloadgcc-6263a8f6a597b54898d4865420e61c6368f67080.zip
gcc-6263a8f6a597b54898d4865420e61c6368f67080.tar.gz
gcc-6263a8f6a597b54898d4865420e61c6368f67080.tar.bz2
New test, extracted from 15982
From-SVN: r83454
-rw-r--r--gcc/testsuite/gcc.c-torture/compile/20040621-1.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/compile/20040621-1.c b/gcc/testsuite/gcc.c-torture/compile/20040621-1.c
new file mode 100644
index 0000000..8a2ebb0
--- /dev/null
+++ b/gcc/testsuite/gcc.c-torture/compile/20040621-1.c
@@ -0,0 +1,17 @@
+/* This test woudl cause partial redundancies too complex for PRE
+ to insert using a single temporary due to them not being GIMPLE
+ expressions. */
+int ssbgst (int c, int k)
+{
+ int a, i, j;
+
+ a = 0;
+ i = 1;
+ j = k;
+ while (j)
+ {
+ a += (j + i) * (k + i + c) + (j + i + c);
+ j = j - 1;
+ }
+ return a;
+}