ubsan: nios2: left shift cannot be represented in type 'int'
authorAlan Modra <amodra@gmail.com>
Tue, 10 Dec 2019 22:02:18 +0000 (08:32 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 11 Dec 2019 01:10:17 +0000 (11:40 +1030)
* nios2-dis.c (nios2_print_insn_arg): Use 1u << 31.

opcodes/ChangeLog
opcodes/nios2-dis.c

index 60dfe76ef1238e9f05bb5cd0404e3e6eea8b705d..b36a9e203614111e46165a5c0dca9bc1a20bce46 100644 (file)
@@ -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>
 
        * moxie-dis.c (INST2OFFSET): Don't sign extend using shifts.
index 2d63eeda86d3cdef841bcb75fff9ac398b6ff131..adf0091b2a0c16df679ac0dcc875809fb7468ad9 100644 (file)
@@ -867,7 +867,7 @@ nios2_print_insn_arg (const char *argptr,
 
          case iw_L5I4X1_type:
            /* Encoding for push.n/pop.n.  */
-           reglist |= (1 << 31);
+           reglist |= (1u << 31);
            if (GET_IW_L5I4X1_FP (opcode))
              reglist |= (1 << 28);
            if (GET_IW_L5I4X1_CS (opcode))
This page took 0.026571 seconds and 4 git commands to generate.