ubsan: sparc: left shift cannot be represented in type 'int'
authorAlan Modra <amodra@gmail.com>
Sun, 29 Dec 2019 02:27:42 +0000 (12:57 +1030)
committerAlan Modra <amodra@gmail.com>
Sun, 29 Dec 2019 11:43:27 +0000 (22:13 +1030)
commit4383e1fc3b3269413423c271cb362431b2b70398
treeccd3793ab24c6404d8a097a44560c2d283c8ec7b
parent8c5e259235a4e4546910245b170de1e29a711034
ubsan: sparc: left shift cannot be represented in type 'int'

* sparc-dis.c (SEX): Don't use left and right shift to sign extend.
(compare_opcodes): Avoid signed shift left overflow.
(print_insn_sparc): Likewise.
opcodes/ChangeLog
opcodes/sparc-dis.c