This is the mail archive of the gcc-cvs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

r242304 - in /branches/ARM/sve-branch/gcc: fold...


Author: rsandifo
Date: Fri Nov 11 17:37:20 2016
New Revision: 242304

URL: https://gcc.gnu.org/viewcvs?rev=242304&root=gcc&view=rev
Log:
Fix folding of vector mask EQ/NE expressions

fold_binary_loc assumed that if the type of the result wasn't a vector,
the operands wouldn't be either.  This isn't necessarily true for
EQ_EXPR and NE_EXPR of vector masks, which can return a single scalar
for the mask as a whole.

Added:
    branches/ARM/sve-branch/gcc/testsuite/gcc.target/aarch64/sve_vec_bool_cmp_1.c
    branches/ARM/sve-branch/gcc/testsuite/gcc.target/aarch64/sve_vec_bool_cmp_1_run.c
Modified:
    branches/ARM/sve-branch/gcc/fold-const.c


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]