From: Trevor Saunders Date: Sun, 29 May 2016 00:29:54 +0000 (-0400) Subject: sh: make constant unsigned to avoid narrowing X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a2b5fccc630a7cb7e1c241e5249bf6e8917d917d;p=binutils-gdb.git sh: make constant unsigned to avoid narrowing Shifting into the sign bit of a 32 bit int and then converting to a unsigned type is less straight forward than just shifting an unsigned value. opcodes/ChangeLog: 2016-05-31 Trevor Saunders * sh-opc.h (ARCH_SH_HAS_DSP): Make the shifted value an unsigned constant. --- diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 01ef568d6ec..c1023adf347 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,8 @@ +2016-05-31 Trevor Saunders + + * sh-opc.h (ARCH_SH_HAS_DSP): Make the shifted value an unsigned + constant. + 2016-05-29 H.J. Lu PR gas/20145 diff --git a/opcodes/sh-opc.h b/opcodes/sh-opc.h index b2bbbfdc489..46ce5ab3364 100644 --- a/opcodes/sh-opc.h +++ b/opcodes/sh-opc.h @@ -230,7 +230,7 @@ sh_dsp_reg_nums; #define arch_sh_no_co (1 << 28) /* Neither FPU nor DSP co-processor. */ #define arch_sh_sp_fpu (1 << 29) /* Single precision FPU. */ #define arch_sh_dp_fpu (1 << 30) /* Double precision FPU. */ -#define arch_sh_has_dsp (1 << 31) +#define arch_sh_has_dsp (1u << 31) #define arch_sh_co_mask MASK (28, 31)