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

2017-03-02  Richard Biener  <rguenther@suse.de>

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

From-SVN: r245841
This commit is contained in:
Richard Biener 2017-03-02 14:38:47 +00:00 committed by Richard Biener
parent e80facb4af
commit 35a4e4ed81
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
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

View 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;