diff options
author | Jakub Jelinek <jakub@redhat.com> | 2016-03-29 19:33:52 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2016-03-29 19:33:52 +0200 |
commit | 3336c6e09385fa50daaa6b7b1bb68908f9a4298f (patch) | |
tree | f6f33aa994b21378e441cc002958e2ef0ef7bdbd | |
parent | 728557fda26f7ffa540bb2e614e4debae366d2ad (diff) | |
download | gcc-3336c6e09385fa50daaa6b7b1bb68908f9a4298f.zip gcc-3336c6e09385fa50daaa6b7b1bb68908f9a4298f.tar.gz gcc-3336c6e09385fa50daaa6b7b1bb68908f9a4298f.tar.bz2 |
re PR tree-optimization/70405 (-fcompare-debug failure with -mavx512f)
PR tree-optimization/70405
* ssa-iterators.h (num_imm_uses): Add missing braces.
* gcc.dg/pr70405.c: New test.
From-SVN: r234529
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/ssa-iterators.h | 8 | ||||
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/pr70405.c | 15 |
4 files changed, 30 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8f40bcc..895587a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-03-29 Jakub Jelinek <jakub@redhat.com> + + PR tree-optimization/70405 + * ssa-iterators.h (num_imm_uses): Add missing braces. + 2016-03-29 Vladimir Makarov <vmakarov@redhat.com> PR rtl-optimization/68695 diff --git a/gcc/ssa-iterators.h b/gcc/ssa-iterators.h index c58639b..a7d75d6 100644 --- a/gcc/ssa-iterators.h +++ b/gcc/ssa-iterators.h @@ -448,9 +448,11 @@ num_imm_uses (const_tree var) unsigned int num = 0; if (!MAY_HAVE_DEBUG_STMTS) - for (ptr = start->next; ptr != start; ptr = ptr->next) - if (USE_STMT (ptr)) - num++; + { + for (ptr = start->next; ptr != start; ptr = ptr->next) + if (USE_STMT (ptr)) + num++; + } else for (ptr = start->next; ptr != start; ptr = ptr->next) if (USE_STMT (ptr) && !is_gimple_debug (USE_STMT (ptr))) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b7335a8..912a830 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2016-03-29 Jakub Jelinek <jakub@redhat.com> + + PR tree-optimization/70405 + * gcc.dg/pr70405.c: New test. + 2016-03-29 Andre Vehreschild <vehre@gcc.gnu.org> PR fortran/70397 diff --git a/gcc/testsuite/gcc.dg/pr70405.c b/gcc/testsuite/gcc.dg/pr70405.c new file mode 100644 index 0000000..bff390f --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr70405.c @@ -0,0 +1,15 @@ +/* PR tree-optimization/70405 */ +/* { dg-do compile } */ +/* { dg-options "-O2 -fcompare-debug" } */ +/* { dg-additional-options "-mavx512f" { target i?86-*-* x86_64-*-* } } */ + +typedef short V __attribute__ ((vector_size (32))); + +int +foo (V *p) +{ + V v = *p; + v >>= v; + v -= v[0]; + return v[3]; +} |