Commit 14abfad1 by Richard Biener Committed by Richard Biener

fold-const.c (fold_widened_comparison): Fix inverted comparison.

2015-07-08  Richard Biener  <rguenther@suse.de>

	* fold-const.c (fold_widened_comparison): Fix inverted comparison.

From-SVN: r225535
parent 62ee3145
2015-07-08 Richard Biener <rguenther@suse.de>
* fold-const.c (fold_widened_comparison): Fix inverted comparison.
2015-07-08 Alan Modra <amodra@gmail.com> 2015-07-08 Alan Modra <amodra@gmail.com>
* target.def (rtx_costs): Remove "code" param, add "mode". * target.def (rtx_costs): Remove "code" param, add "mode".
......
...@@ -6787,7 +6787,7 @@ fold_widened_comparison (location_t loc, enum tree_code code, ...@@ -6787,7 +6787,7 @@ fold_widened_comparison (location_t loc, enum tree_code code,
if (TREE_CODE (arg1_unw) != INTEGER_CST if (TREE_CODE (arg1_unw) != INTEGER_CST
|| TREE_CODE (shorter_type) != INTEGER_TYPE || TREE_CODE (shorter_type) != INTEGER_TYPE
|| !int_fits_type_p (arg1_unw, shorter_type)) || int_fits_type_p (arg1_unw, shorter_type))
return NULL_TREE; return NULL_TREE;
/* If we are comparing with the integer that does not fit into the range /* If we are comparing with the integer that does not fit into the range
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment