aboutsummaryrefslogtreecommitdiff
path: root/gcc/simplify-rtx.c
diff options
context:
space:
mode:
authorMarc Glisse <marc.glisse@inria.fr>2016-04-05 19:01:52 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2016-04-05 19:01:52 +0200
commit02a49e4f9f81edfd3da44295a163f5029fcfef78 (patch)
tree7ecc55dd7d553c56aeeaf9e125e809d9594d86c3 /gcc/simplify-rtx.c
parent5e8c2eb17e0eb237fe89458caadcb935fb9e20ff (diff)
downloadgcc-02a49e4f9f81edfd3da44295a163f5029fcfef78.zip
gcc-02a49e4f9f81edfd3da44295a163f5029fcfef78.tar.gz
gcc-02a49e4f9f81edfd3da44295a163f5029fcfef78.tar.bz2
re PR tree-optimization/70509 (wrong code with extract from a v64qi)
PR tree-optimization/70509 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>: Shift HOST_WIDE_INT_1U instead of 1. Co-Authored-By: Jakub Jelinek <jakub@redhat.com> From-SVN: r234755
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 e1a0319..b1b9936 100644
--- a/gcc/simplify-rtx.c
+++ b/gcc/simplify-rtx.c
@@ -3665,7 +3665,7 @@ simplify_binary_operation_1 (enum rtx_code code, machine_mode mode,
for (int i = 0; i < XVECLEN (trueop1, 0); i++)
{
rtx j = XVECEXP (trueop1, 0, i);
- if (sel & (1 << UINTVAL (j)))
+ if (sel & (HOST_WIDE_INT_1U << UINTVAL (j)))
all_operand1 = false;
else
all_operand0 = false;