This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/78556] config/rs6000/rs6000.c:6217:36: runtime error: left shift of negative value -12301


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]