/* Definitions for SH opcodes.
- Copyright (C) 1993-2018 Free Software Foundation, Inc.
+ Copyright (C) 1993-2019 Free Software Foundation, Inc.
This file is part of the GNU opcodes library.
sh_dsp_reg_nums;
/* Return a mask with bits LO to HI (inclusive) set. */
-#define MASK(LO,HI) ( LO < 1 ? ((1U << (HI + 1)) - 1) \
- : HI > 30 ? (-1U << LO) \
- : LO == HI ? (1U << LO) \
- : (((1U << (HI + 1)) - 1) & (-1U << LO)))
+#define MASK(LO,HI) ((1U << (HI) << 1) - (1U << (LO)))
#define arch_sh1_base (1 << 0)
#define arch_sh2_base (1 << 1)