Fix PR78556 - left shift of negative values
authorMarkus Trippelsdorf <markus@trippelsdorf.de>
Mon, 28 Nov 2016 18:33:19 +0000 (18:33 +0000)
committerMarkus Trippelsdorf <trippels@gcc.gnu.org>
Mon, 28 Nov 2016 18:33:19 +0000 (18:33 +0000)
commit82979abd860fb54c2d0ab0a1001d86ec69f71ae2
treee6743c2460e907d61bb919533385719fc850c395
parent80cf1b8b60a246866808ee2e14cfcbe8f3bf7de0
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.

From-SVN: r242928
gcc/ChangeLog
gcc/config/rs6000/rs6000.c