From 6263a8f6a597b54898d4865420e61c6368f67080 Mon Sep 17 00:00:00 2001 From: Daniel Berlin Date: Mon, 21 Jun 2004 21:59:38 +0000 Subject: [PATCH] New test, extracted from 15982 From-SVN: r83454 --- .../gcc.c-torture/compile/20040621-1.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 gcc/testsuite/gcc.c-torture/compile/20040621-1.c 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 00000000000..8a2ebb07ecd --- /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; +} -- 2.30.2