From 35a4e4ed81d9aae4bbd29cf24e389269d08f1fc2 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Thu, 2 Mar 2017 14:38:47 +0000 Subject: [PATCH] fold-const.c (const_binop): Use ulow () instead of elt (0). 2017-03-02 Richard Biener * fold-const.c (const_binop): Use ulow () instead of elt (0). From-SVN: r245841 --- gcc/ChangeLog | 4 ++++ gcc/fold-const.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 61b793b1bb6..d5e438c883f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2017-03-02 Richard Biener + + * fold-const.c (const_binop): Use ulow () instead of elt (0). + 2017-03-02 Richard Biener PR tree-optimization/79345 diff --git a/gcc/fold-const.c b/gcc/fold-const.c index e64fa64232e..12445aa6e44 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -1249,7 +1249,7 @@ const_binop (enum tree_code code, tree arg1, tree arg2) return NULL_TREE; wide_int w2 = arg2; f2.data.high = w2.elt (1); - f2.data.low = w2.elt (0); + f2.data.low = w2.ulow (); f2.mode = SImode; } break; -- 2.30.2