summaryrefslogtreecommitdiff
path: root/gcc/simplify-rtx.c
diff options
context:
space:
mode:
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)