]> gcc.gnu.org Git - gcc.git/commit
Fix folding of VECTOR_CST comparisons
authorPatrick Palka <ppalka@gcc.gnu.org>
Sat, 27 Aug 2016 22:00:17 +0000 (22:00 +0000)
committerPatrick Palka <ppalka@gcc.gnu.org>
Sat, 27 Aug 2016 22:00:17 +0000 (22:00 +0000)
commit4a389eb62b96bb738c79c339f38aae45ef46ef39
treed14c018a5485ca5084547adb1f055ef0ddc8f470
parent3e13c3b9b88357c0f6aeca0bfb6f678dff52c204
Fix folding of VECTOR_CST comparisons

gcc/ChangeLog:

PR tree-optimization/71077
PR tree-optimization/68542
* fold-const.c (fold_relational_const): Fix folding of
VECTOR_CST comparisons that have a scalar boolean result type.
(selftest::test_vector_folding): New static function.
(selftest::fold_const_c_tests): Call it.

gcc/testsuite/ChangeLog:

PR tree-optimization/71077
* gcc.target/i386/pr71077.c: New test.

From-SVN: r239798
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr71077.c [new file with mode: 0644]
This page took 0.068504 seconds and 5 git commands to generate.