simplify-rtx.c (simplify_binary_operation_1): Change CONST_VECTOR_ELT to XVECEXP...
authorUros Bizjak <ubizjak@gmail.com>
Wed, 29 Aug 2007 15:00:38 +0000 (17:00 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Wed, 29 Aug 2007 15:00:38 +0000 (17:00 +0200)
* simplify-rtx.c (simplify_binary_operation_1) [VEC_SELECT]:
Change CONST_VECTOR_ELT to XVECEXP in elem calculation.

From-SVN: r127902

gcc/ChangeLog
gcc/simplify-rtx.c

index e9f24b4d64f67677df8a76256633862479e7984c..40b8b6b96d5985bdf4cabbd7df3c41471143aecd 100644 (file)
@@ -1,3 +1,8 @@
+2007-08-29  Uros Bizjak  <ubizjak@gmail.com>
+
+       * simplify-rtx.c (simplify_binary_operation_1) [VEC_SELECT]:
+       Change CONST_VECTOR_ELT to XVECEXP in elem calculation.
+
 2007-08-29  Richard Guenther  <rguenther@suse.de>
 
        * tree-pretty-print.c (dump_generic_node): Print
index 3271a86485172a66b18845c616f5351f389fd1b4..3a8e8ed688ff39488e13ea4af77149d9c37ea506 100644 (file)
@@ -2685,7 +2685,7 @@ simplify_binary_operation_1 (enum rtx_code code, enum machine_mode mode,
              gcc_assert (i < n_elts);
 
              /* Select element, pointed by nested selector.  */
-             elem = INTVAL (CONST_VECTOR_ELT (op1, i));
+             elem = INTVAL (XVECEXP (op1, 0, i));
 
              /* Handle the case when nested VEC_SELECT wraps VEC_CONCAT.  */
              if (GET_CODE (op0) == VEC_CONCAT)