ubsan: epiphany: left shift of negative value
authorAlan Modra <amodra@gmail.com>
Tue, 10 Dec 2019 07:36:09 +0000 (18:06 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 11 Dec 2019 01:04:33 +0000 (11:34 +1030)
commitb8e61daa1ad56330fd8931c8a53bfa16d8e4a47a
treeba543454bcef55c770165f89c0430044b063c24e
parent8ff23dba80b80a9f47d75dd43812e041f6674763
ubsan: epiphany: left shift of negative value

Two places in epiphany_cgen_extract_operand, "value" is a long.
        value = ((((value) << (1))) + (pc));

cpu/
* epiphany.cpu (f-simm8, f-simm24): Use multiply rather than
shift left to avoid UB on left shift of negative values.
opcodes/
* epiphany-ibld.c: Regenerate.
cpu/ChangeLog
cpu/epiphany.cpu
opcodes/ChangeLog
opcodes/epiphany-ibld.c