From: marxin Date: Thu, 28 Jul 2016 08:26:51 +0000 (+0000) Subject: Do not allow make_compound_operation for vector mode X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8355460456181b965656a29b200d6e85c3134a91;p=thirdparty%2Fgcc.git Do not allow make_compound_operation for vector mode * g++.dg/vect/pr70944.cc: New test. PR rtl-optimization/70944 * combine.c (make_compound_operation): Do not allow make_compound_operation for vector mode git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@238808 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d2e4ecb0eab4..919f3f8bacb4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2016-07-28 Martin Liska + + PR rtl-optimization/70944 + * combine.c (make_compound_operation): + Do not allow make_compound_operation for vector mode + 2016-07-28 Kugan Vivekanandarajah PR middle-end/71994 diff --git a/gcc/combine.c b/gcc/combine.c index 1becc3c719db..93c17109cc2a 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -7770,6 +7770,10 @@ make_compound_operation (rtx x, enum rtx_code in_code) rtx tem; const char *fmt; + /* PR rtl-optimization/70944. */ + if (VECTOR_MODE_P (mode)) + return x; + /* Select the code to be used in recursive calls. Once we are inside an address, we stay there. If we have a comparison, set to COMPARE, but once inside, go back to our default of SET. */ diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 204ec1c30545..4becb4afcd14 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2016-07-28 Martin Liska + + * g++.dg/vect/pr70944.cc: New test. + 2016-07-28 Kugan Vivekanandarajah PR middle-end/71994