ubsan: opcodes/csky-opc.h:929 shift exponent 536870912
authorAlan Modra <amodra@gmail.com>
Fri, 25 Sep 2020 11:22:46 +0000 (20:52 +0930)
committerAlan Modra <amodra@gmail.com>
Sat, 26 Sep 2020 05:58:22 +0000 (15:28 +0930)
commit0be2fe677c53c6d363a40ae3612d4490ba377e02
treedf15146097019c76042a73b056bee7d82af3b5b4
parent0919fa3c461ab524ee6ed2acf0a5b9f4a5c62de8
ubsan: opcodes/csky-opc.h:929 shift exponent 536870912

opcodes/
* csky-opc.h: Formatting.
(GENERAL_REG_BANK): Correct spelling.  Update use throughout file.
(get_register_name): Mask arch with CSKY_ARCH_MASK for shift,
and shift 1u.
(get_register_number): Likewise.
* csky-dis.c (get_gr_name, get_cr_name): Don't mask mach_flag.
gas/
* config/tc-csky.c (parse_type_ctrlreg): Don't mask mach_flag
for csky_get_control_regno.
(csky_get_reg_val): Likewise when calling csky_get_general_regno.
gas/ChangeLog
gas/config/tc-csky.c
opcodes/ChangeLog
opcodes/csky-dis.c
opcodes/csky-opc.h