ubsan: moxie: left shift of negative value
authorAlan Modra <amodra@gmail.com>
Sun, 15 Dec 2019 23:27:22 +0000 (09:57 +1030)
committerAlan Modra <amodra@gmail.com>
Mon, 16 Dec 2019 06:58:52 +0000 (17:28 +1030)
commitcf950fd4dd4581849a445a76b57514d72074927d
tree5c6efa491b1046d049fcb3b669af60e0e9d6c9f5
parentd3ecddab5fc036fb57588a9bfff73575dc419052
ubsan: moxie: left shift of negative value

Commit 8c9b4171877df didn't remove a glaring left shift of a number
that had just been sign extended.

* moxie-dis.c (INST2OFFSET): Don't left shift a signed value.
(print_insn_moxie): Remove unnecessary cast.
opcodes/ChangeLog
opcodes/moxie-dis.c