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]

[PATCH] fix rtl-optimization/18614


Hello!

This patch fixes rtl-optimization/18614. Bootstrapped on i686-pc-linux-gnu, regtested with c,c++. OK for mainline?

2004-11-23 Uros Bizjak <uros@kss-loka.si>

   PR rtl-optimization/18614
   * simplify-rtx.c (simplify_binary_operation): Do not
   simplify inner elements of constant arguments of
   VEC_CONCAT insn.

Uros.

Index: simplify-rtx.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/simplify-rtx.c,v
retrieving revision 1.208
diff -u -p -r1.208 simplify-rtx.c
--- simplify-rtx.c	20 Nov 2004 01:44:25 -0000	1.208
+++ simplify-rtx.c	23 Nov 2004 14:25:27 -0000
@@ -1185,6 +1185,7 @@ simplify_binary_operation (enum rtx_code
   trueop1 = avoid_constant_pool_reference (op1);
 
   if (VECTOR_MODE_P (mode)
+      && code != VEC_CONCAT
       && GET_CODE (trueop0) == CONST_VECTOR
       && GET_CODE (trueop1) == CONST_VECTOR)
     {

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