This is the mail archive of the gcc-patches@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]

Re: [PATCH, PR68062] Fix uniform vector operation lowering


On 10/23/2015 09:26 AM, Ilya Enkovich wrote:
Hi,

This patch checks optab exists before using it vector vector statement lowering.  It fixes compilation of test from PR68062 with -funsigned-char option added (doesn't fix original testcase).  Bootstrapped for x86_64-unknown-linux-gnu.  OK for trunk if no regressions?

Thanks,
Ilya
--
gcc/

2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>

	* tree-vect-generic.c (expand_vector_operations_1): Check
	optab exists before use it.

gcc/testsuite/

2015-10-23  Ilya Enkovich  <enkovich.gnu@gmail.com>

	* g++.dg/pr68062.C: New test.
OK.

Just curious, what was the tree code for which we couldn't find a suitable optab?

jeff


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