mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-28 23:39:35 +08:00
ubsan: nios2: left shift cannot be represented in type 'int'
* nios2-dis.c (nios2_print_insn_arg): Use 1u << 31.
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
2019-12-11 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
|
* nios2-dis.c (nios2_print_insn_arg): Use 1u << 31.
|
||||||
|
|
||||||
2019-12-11 Alan Modra <amodra@gmail.com>
|
2019-12-11 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
* moxie-dis.c (INST2OFFSET): Don't sign extend using shifts.
|
* moxie-dis.c (INST2OFFSET): Don't sign extend using shifts.
|
||||||
|
@ -867,7 +867,7 @@ nios2_print_insn_arg (const char *argptr,
|
|||||||
|
|
||||||
case iw_L5I4X1_type:
|
case iw_L5I4X1_type:
|
||||||
/* Encoding for push.n/pop.n. */
|
/* Encoding for push.n/pop.n. */
|
||||||
reglist |= (1 << 31);
|
reglist |= (1u << 31);
|
||||||
if (GET_IW_L5I4X1_FP (opcode))
|
if (GET_IW_L5I4X1_FP (opcode))
|
||||||
reglist |= (1 << 28);
|
reglist |= (1 << 28);
|
||||||
if (GET_IW_L5I4X1_CS (opcode))
|
if (GET_IW_L5I4X1_CS (opcode))
|
||||||
|
Reference in New Issue
Block a user