ubsan: arc: shift exponent 32 is too large for 32-bit type 'int'
[deliverable/binutils-gdb.git] / opcodes / arc-dis.c
index 3c88c334283717103d100d31782e6da4a83388f9..a038fa0ca27f26445f886f8cb87b8313dcce412a 100644 (file)
@@ -295,7 +295,7 @@ find_format_from_table (struct disassemble_info *info,
          if (operand->extract)
            value = (*operand->extract) (insn, &invalid);
          else
-           value = (insn >> operand->shift) & ((1 << operand->bits) - 1);
+           value = (insn >> operand->shift) & ((1ull << operand->bits) - 1);
 
          /* Check for LIMM indicator.  If it is there, then make sure
             we pick the right format.  */
This page took 0.032494 seconds and 4 git commands to generate.