diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-12-12 13:07:19 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-12-12 13:07:19 +0000 |
commit | d3e1aafd70552d34dfc6bb8e507fed579af7feb9 (patch) | |
tree | 21ace6b448063020524310c868dce7d1b8364db5 /gcc/testsuite | |
parent | 99c6716432e11c9fba28dbdc76e078e4ca7c69b5 (diff) | |
download | gcc-d3e1aafd70552d34dfc6bb8e507fed579af7feb9.tar.gz |
2012-12-12 Zdenek Dvorak <ook@ucw.cz>
PR tree-optimization/55481
* tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fall
back to general rewriting if we cannot leave an original biv
definition alone.
* gcc.dg/torture/pr55481.c: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194444 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/torture/pr55481.c | 16 |
2 files changed, 21 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index f9a68a5be6b..35e21d682d6 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2012-12-12 Zdenek Dvorak <ook@ucw.cz> + + PR tree-optimization/55481 + * gcc.dg/torture/pr55481.c: New testcase. + 2012-12-12 Steven Bosscher <steven@gcc.gnu.org> Jakub Jelinek <jakub@redhat.com> diff --git a/gcc/testsuite/gcc.dg/torture/pr55481.c b/gcc/testsuite/gcc.dg/torture/pr55481.c new file mode 100644 index 00000000000..26ba9ff7d99 --- /dev/null +++ b/gcc/testsuite/gcc.dg/torture/pr55481.c @@ -0,0 +1,16 @@ +/* { dg-do run } */ + +int main() +{ + signed char result = 0; + int n; + for (n = 0; n < 13; ++n) + { + int tem = result; + tem = tem + 31; + result = tem; + } + if (result != -109) + __builtin_abort (); + return 0; +} |