diff options
author | Jakub Jelinek <jakub@gcc.gnu.org> | 2016-08-15 10:31:05 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2016-08-15 10:31:05 +0200 |
commit | 660880654ab4076aeb85498be24440dfb5a6638d (patch) | |
tree | 8dab788dcaf37f22003b5950841f7d928b4c60f8 /gcc/tree-loop-distribution.c | |
parent | 30211344085ab7adba71871b00ece6fb8b3a3db5 (diff) | |
download | gcc-660880654ab4076aeb85498be24440dfb5a6638d.zip gcc-660880654ab4076aeb85498be24440dfb5a6638d.tar.gz gcc-660880654ab4076aeb85498be24440dfb5a6638d.tar.bz2 |
re PR tree-optimization/72824 (Signed floating point zero semantics broken at optimization level -O3 (tree-loop-distribute-patterns))
PR tree-optimization/72824
* tree-loop-distribution.c (const_with_all_bytes_same)
<case VECTOR_CST>: Fix a typo.
* gcc.c-torture/execute/ieee/pr72824-2.c: New test.
From-SVN: r239461
Diffstat (limited to 'gcc/tree-loop-distribution.c')
-rw-r--r-- | gcc/tree-loop-distribution.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-loop-distribution.c b/gcc/tree-loop-distribution.c index 342b964..5580f28 100644 --- a/gcc/tree-loop-distribution.c +++ b/gcc/tree-loop-distribution.c @@ -774,7 +774,7 @@ const_with_all_bytes_same (tree val) case VECTOR_CST: unsigned int j; for (j = 0; j < VECTOR_CST_NELTS (val); ++j) - if (const_with_all_bytes_same (VECTOR_CST_ELT (val, i))) + if (const_with_all_bytes_same (VECTOR_CST_ELT (val, j))) break; if (j == VECTOR_CST_NELTS (val)) return 0; |