https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66187
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2015-05-18
CC| |jakub at gcc dot gnu.org
Target Milestone|--- |6.0
Summary|wrong code at -O1, -O2 and |[6 Regression] wrong code
|-O3 on x86_64-linux-gnu |at -O1, -O2 and -O3 on
| |x86_64-linux-gnu
Ever confirmed|0 |1
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started with r222877.
I bet the problem is in:
&& (tree_int_cst_min_precision (@4, UNSIGNED)
<= TYPE_PRECISION (TREE_TYPE (@0)))
which for signed types IMHO should be < instead.