This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r273366 - in /trunk/gcc: ChangeLog fold-const.c
- From: rsandifo at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Wed, 10 Jul 2019 18:41:51 -0000
- Subject: r273366 - in /trunk/gcc: ChangeLog fold-const.c
Author: rsandifo
Date: Wed Jul 10 18:41:51 2019
New Revision: 273366
URL: https://gcc.gnu.org/viewcvs?rev=273366&root=gcc&view=rev
Log:
Fix folding of vector EQ/NE
For vector1 != vector2, we returned false if any elements were equal,
rather than if all elements were equal.
2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
gcc/
* fold-const.c (fold_relational_const): Fix folding of
vector-to-scalar NE_EXPRs.
(test_vector_folding): Add more tests.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/fold-const.c