From: Richard Biener Date: Thu, 2 Mar 2017 14:38:47 +0000 (+0000) Subject: fold-const.c (const_binop): Use ulow () instead of elt (0). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=35a4e4ed81d9aae4bbd29cf24e389269d08f1fc2;p=gcc.git 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 --- 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;