http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54427
--- Comment #2 from Marc Glisse <glisse at gcc dot gnu.org> 2012-09-14 17:17:08 UTC --- Author: glisse Date: Fri Sep 14 17:17:01 2012 New Revision: 191308 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=191308 Log: 2012-09-14 Marc Glisse <marc.gli...@inria.fr> PR c++/54427 gcc/ChangeLog * fold-const.c (fold_unary_loc): Disable for VECTOR_TYPE. (fold_binary_loc): Likewise. * gimple-fold.c (and_comparisons_1): Handle VECTOR_TYPE. (or_comparisons_1): Likewise. gcc/cp/ChangeLog * typeck.c (cp_build_binary_op) [LSHIFT_EXPR, RSHIFT_EXPR, EQ_EXPR, NE_EXPR, LE_EXPR, GE_EXPR, LT_EXPR, GT_EXPR]: Handle VECTOR_TYPE. gcc/testsuite/ChangeLog * g++.dg/other/vector-compare.C: New testcase. * gcc/testsuite/c-c++-common/vector-compare-3.c: New testcase. * gcc.dg/vector-shift.c: Move ... * c-c++-common/vector-shift.c: ... here. * gcc.dg/vector-shift1.c: Move ... * c-c++-common/vector-shift1.c: ... here. * gcc.dg/vector-shift3.c: Move ... * c-c++-common/vector-shift3.c: ... here. * gcc.dg/vector-compare-1.c: Move ... * c-c++-common/vector-compare-1.c: ... here. * gcc.dg/vector-compare-2.c: Move ... * c-c++-common/vector-compare-2.c: ... here. * gcc.c-torture/execute/vector-compare-1.c: Move ... * c-c++-common/torture/vector-compare-1.c: ... here. * gcc.c-torture/execute/vector-compare-2.x: Delete. * gcc.c-torture/execute/vector-compare-2.c: Move ... * c-c++-common/torture/vector-compare-2.c: ... here. * gcc.c-torture/execute/vector-shift.c: Move ... * c-c++-common/torture/vector-shift.c: ... here. * gcc.c-torture/execute/vector-shift2.c: Move ... * c-c++-common/torture/vector-shift2.c: ... here. * gcc.c-torture/execute/vector-subscript-1.c: Move ... * c-c++-common/torture/vector-subscript-1.c: ... here. * gcc.c-torture/execute/vector-subscript-2.c: Move ... * c-c++-common/torture/vector-subscript-2.c: ... here. * gcc.c-torture/execute/vector-subscript-3.c: Move ... * c-c++-common/torture/vector-subscript-3.c: ... here. Added: trunk/gcc/testsuite/c-c++-common/torture/vector-compare-1.c - copied, changed from r190838, trunk/gcc/testsuite/gcc.c-torture/execute/vector-compare-1.c trunk/gcc/testsuite/c-c++-common/torture/vector-compare-2.c - copied, changed from r190838, trunk/gcc/testsuite/gcc.c-torture/execute/vector-compare-2.c trunk/gcc/testsuite/c-c++-common/torture/vector-shift.c - copied, changed from r190838, trunk/gcc/testsuite/gcc.c-torture/execute/vector-shift.c trunk/gcc/testsuite/c-c++-common/torture/vector-shift2.c - copied, changed from r190838, trunk/gcc/testsuite/gcc.c-torture/execute/vector-shift2.c trunk/gcc/testsuite/c-c++-common/torture/vector-subscript-1.c - copied, changed from r190838, trunk/gcc/testsuite/gcc.c-torture/execute/vector-subscript-1.c trunk/gcc/testsuite/c-c++-common/torture/vector-subscript-2.c - copied, changed from r190838, trunk/gcc/testsuite/gcc.c-torture/execute/vector-subscript-2.c trunk/gcc/testsuite/c-c++-common/torture/vector-subscript-3.c - copied, changed from r190838, trunk/gcc/testsuite/gcc.c-torture/execute/vector-subscript-3.c trunk/gcc/testsuite/c-c++-common/vector-compare-1.c - copied, changed from r190834, trunk/gcc/testsuite/gcc.dg/vector-compare-1.c trunk/gcc/testsuite/c-c++-common/vector-compare-2.c - copied unchanged from r190834, trunk/gcc/testsuite/gcc.dg/vector-compare-2.c trunk/gcc/testsuite/c-c++-common/vector-compare-3.c (with props) trunk/gcc/testsuite/c-c++-common/vector-shift.c - copied, changed from r190834, trunk/gcc/testsuite/gcc.dg/vector-shift.c trunk/gcc/testsuite/c-c++-common/vector-shift1.c - copied, changed from r190834, trunk/gcc/testsuite/gcc.dg/vector-shift1.c trunk/gcc/testsuite/c-c++-common/vector-shift3.c - copied, changed from r190834, trunk/gcc/testsuite/gcc.dg/vector-shift3.c trunk/gcc/testsuite/g++.dg/other/vector-compare.C (with props) Removed: trunk/gcc/testsuite/gcc.c-torture/execute/vector-compare-1.c trunk/gcc/testsuite/gcc.c-torture/execute/vector-compare-2.c trunk/gcc/testsuite/gcc.c-torture/execute/vector-compare-2.x trunk/gcc/testsuite/gcc.c-torture/execute/vector-shift.c trunk/gcc/testsuite/gcc.c-torture/execute/vector-shift2.c trunk/gcc/testsuite/gcc.c-torture/execute/vector-subscript-1.c trunk/gcc/testsuite/gcc.c-torture/execute/vector-subscript-2.c trunk/gcc/testsuite/gcc.c-torture/execute/vector-subscript-3.c trunk/gcc/testsuite/gcc.dg/vector-compare-1.c trunk/gcc/testsuite/gcc.dg/vector-compare-2.c trunk/gcc/testsuite/gcc.dg/vector-shift.c trunk/gcc/testsuite/gcc.dg/vector-shift1.c trunk/gcc/testsuite/gcc.dg/vector-shift3.c Modified: trunk/gcc/ChangeLog trunk/gcc/cp/ChangeLog trunk/gcc/cp/typeck.c trunk/gcc/fold-const.c trunk/gcc/gimple-fold.c trunk/gcc/testsuite/ChangeLog Propchange: trunk/gcc/testsuite/c-c++-common/vector-compare-3.c ('svn:eol-style' added) Propchange: trunk/gcc/testsuite/c-c++-common/vector-compare-3.c ('svn:keywords' added) Propchange: trunk/gcc/testsuite/g++.dg/other/vector-compare.C ('svn:eol-style' added) Propchange: trunk/gcc/testsuite/g++.dg/other/vector-compare.C ('svn:keywords' added)