This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/78556] config/rs6000/rs6000.c:6217:36: runtime error: left shift of negative value -12301
- From: "trippels at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 28 Nov 2016 18:33:50 +0000
- Subject: [Bug target/78556] config/rs6000/rs6000.c:6217:36: runtime error: left shift of negative value -12301
- Auto-submitted: auto-generated
- References: <bug-78556-4@http.gcc.gnu.org/bugzilla/>
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