aboutsummaryrefslogtreecommitdiff
path: root/opcodes/sh-opc.h
diff options
context:
space:
mode:
authorTrevor Saunders <tbsaunde+binutils@tbsaunde.org>2016-05-28 20:29:54 -0400
committerTrevor Saunders <tbsaunde+binutils@tbsaunde.org>2016-05-31 23:12:22 -0400
commita2b5fccc630a7cb7e1c241e5249bf6e8917d917d (patch)
tree053024154c26f63351702f2ce88f0828c01562e3 /opcodes/sh-opc.h
parentc799dec78a78240678e591bb7b849c071bc814af (diff)
downloadfsf-binutils-gdb-a2b5fccc630a7cb7e1c241e5249bf6e8917d917d.zip
fsf-binutils-gdb-a2b5fccc630a7cb7e1c241e5249bf6e8917d917d.tar.gz
fsf-binutils-gdb-a2b5fccc630a7cb7e1c241e5249bf6e8917d917d.tar.bz2
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 <tbsaunde+binutils@tbsaunde.org> * sh-opc.h (ARCH_SH_HAS_DSP): Make the shifted value an unsigned constant.
Diffstat (limited to 'opcodes/sh-opc.h')
-rw-r--r--opcodes/sh-opc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/opcodes/sh-opc.h b/opcodes/sh-opc.h
index b2bbbfd..46ce5ab 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)