gdb/testsuite: Fix race condition in gdb.base/skip.exp
[deliverable/binutils-gdb.git] / opcodes / sh-opc.h
index bce44d274820b1bdb72864ee96b7e423750ce0f8..93b5e983e79c0a94931ce19b16852c43014ce962 100644 (file)
@@ -1,5 +1,5 @@
 /* Definitions for SH opcodes.
-   Copyright (C) 1993-2017 Free Software Foundation, Inc.
+   Copyright (C) 1993-2020 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.033407 seconds and 4 git commands to generate.