i386: Add tests for -malign-branch-boundary and -malign-branch
[deliverable/binutils-gdb.git] / opcodes / sh-opc.h
index d64f50ce1b764783de15c25b9e910599d62d43c8..13d6217ab81143ee82e573f3fa6e2dd770496ea6 100644 (file)
@@ -1,5 +1,5 @@
 /* Definitions for SH opcodes.
-   Copyright (C) 1993-2016 Free Software Foundation, Inc.
+   Copyright (C) 1993-2019 Free Software Foundation, Inc.
 
    This file is part of the GNU opcodes library.
 
@@ -205,10 +205,7 @@ typedef enum
 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)
This page took 0.024001 seconds and 4 git commands to generate.