fold-const.c (const_binop): Use ulow () instead of elt (0).
authorRichard Biener <rguenther@suse.de>
Thu, 2 Mar 2017 14:38:47 +0000 (14:38 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 2 Mar 2017 14:38:47 +0000 (14:38 +0000)
2017-03-02  Richard Biener  <rguenther@suse.de>

* fold-const.c (const_binop): Use ulow () instead of elt (0).

From-SVN: r245841

gcc/ChangeLog
gcc/fold-const.c

index 61b793b..d5e438c 100644 (file)
@@ -1,5 +1,9 @@
 2017-03-02  Richard Biener  <rguenther@suse.de>
 
+       * fold-const.c (const_binop): Use ulow () instead of elt (0).
+
+2017-03-02  Richard Biener  <rguenther@suse.de>
+
        PR tree-optimization/79345
        PR c++/42000
        * tree-ssa-alias.c (walk_aliased_vdefs_1): Take a limit
index e64fa64..12445aa 100644 (file)
@@ -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;