summaryrefslogtreecommitdiff
path: root/gcc/simplify-rtx.c
diff options
context:
space:
mode:
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>2007-08-29 15:00:38 +0000
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>2007-08-29 15:00:38 +0000
commite86f91b15dacfa5bd32fe8bb705c95d2beed895b (patch)
tree787529c78056cf617895c5fde79ee60dbda5734a /gcc/simplify-rtx.c
parent30e1594a9a563f8e877a371f1cdcca09dcc49dcd (diff)
downloadgcc-e86f91b15dacfa5bd32fe8bb705c95d2beed895b.tar.gz
* simplify-rtx.c (simplify_binary_operation_1) [VEC_SELECT]:
Change CONST_VECTOR_ELT to XVECEXP in elem calculation. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127902 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/simplify-rtx.c')
-rw-r--r--gcc/simplify-rtx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/simplify-rtx.c b/gcc/simplify-rtx.c
index 3271a864851..3a8e8ed688f 100644
--- a/gcc/simplify-rtx.c
+++ b/gcc/simplify-rtx.c
@@ -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)