[Bug target/78556] config/rs6000/rs6000.c:6217:36: runtime error: left shift of negative value -12301
trippels at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Nov 28 18:38:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78556
--- Comment #2 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Author: trippels
Date: Mon Nov 28 18:33:19 2016
New Revision: 242928
URL: https://gcc.gnu.org/viewcvs?rev=242928&root=gcc&view=rev
Log:
Fix PR78556 - left shift of negative values
Running bootstrap-ubsan on ppc64le shows many instances of e.g.:
config/rs6000/rs6000.c:6217:36: runtime error: left shift of negative value
-12301
PR target/78556
* config/rs6000/rs6000.c (vspltis_constant): Add casts to avoid
left shifting of negative values.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/rs6000/rs6000.c
More information about the Gcc-bugs
mailing list