Fix folding of vector EQ/NE
authorRichard Sandiford <richard.sandiford@arm.com>
Wed, 10 Jul 2019 18:41:51 +0000 (18:41 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Wed, 10 Jul 2019 18:41:51 +0000 (18:41 +0000)
commit2cb7362310288cce61244e39f90fccd75b1c28e1
treeb9e7e536abb234426e0dc3b60a291a4d484cddc5
parent8ba8ebffc4621552febf47eea470c260488418b5
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.

From-SVN: r273366
gcc/ChangeLog
gcc/fold-const.c