Fix Sparc, s390 and AArch64 targets so that they can handle relocs against ifunc...
[deliverable/binutils-gdb.git] / opcodes / arc-opc.c
index 56c9aaffa86a44ee19c46a10db303b323782ac63..5349e13031303237711732a9c9ff0d30d7e8f49e 100644 (file)
@@ -1,5 +1,5 @@
 /* Opcode table for the ARC.
-   Copyright (C) 1994-2017 Free Software Foundation, Inc.
+   Copyright (C) 1994-2018 Free Software Foundation, Inc.
 
    Contributed by Claudiu Zissulescu (claziss@synopsys.com)
 
@@ -171,6 +171,8 @@ insert_rhv2 (unsigned long long  insn,
 {
   if (value == 0x1E)
     *errmsg = _("register R30 is a limm indicator");
+  else if (value < 0 || value > 31)
+    *errmsg = _("register out of range");
   return insn |= ((value & 0x07) << 5) | ((value >> 3) & 0x03);
 }
 
This page took 0.024588 seconds and 4 git commands to generate.