diff options
author | Uros Bizjak <ubizjak@gmail.com> | 2007-08-29 17:00:38 +0200 |
---|---|---|
committer | Uros Bizjak <uros@gcc.gnu.org> | 2007-08-29 17:00:38 +0200 |
commit | 3743c639c758aec63f1bbb3cc2da36fd35ee844f (patch) | |
tree | 787529c78056cf617895c5fde79ee60dbda5734a | |
parent | 7b74f495974a7d33d1dfd75deee2c18e831f4ba7 (diff) | |
download | gcc-3743c639c758aec63f1bbb3cc2da36fd35ee844f.zip gcc-3743c639c758aec63f1bbb3cc2da36fd35ee844f.tar.gz gcc-3743c639c758aec63f1bbb3cc2da36fd35ee844f.tar.bz2 |
simplify-rtx.c (simplify_binary_operation_1): Change CONST_VECTOR_ELT to XVECEXP in elem calculation.
* simplify-rtx.c (simplify_binary_operation_1) [VEC_SELECT]:
Change CONST_VECTOR_ELT to XVECEXP in elem calculation.
From-SVN: r127902
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/simplify-rtx.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e9f24b4..40b8b6b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/simplify-rtx.c b/gcc/simplify-rtx.c index 3271a86..3a8e8ed 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) |