Support new FR-V SPRs
[deliverable/binutils-gdb.git] / cpu / iq2000.opc
index 5da6911a1cccbdb05c08c7e634c2f6666ea57cbb..528750688f43b77cf921b44bc39227743e7a99ec 100644 (file)
@@ -218,6 +218,7 @@ parse_hi16 (CGEN_CPU_DESC cd,
          if (value & 0x8000)
            value += 0x10000;
          value >>= 16;
+         value &= 0xffff;
        }
       *valuep = value;
 
@@ -243,6 +244,7 @@ parse_hi16 (CGEN_CPU_DESC cd,
          && result_type == CGEN_PARSE_OPERAND_RESULT_NUMBER)
        value >>= 16;
 
+      value &= 0xffff;
       *valuep = value;
 
       return errmsg;
@@ -259,7 +261,7 @@ static const char *
 parse_lo16 (CGEN_CPU_DESC cd,
            const char **strp,
            int opindex,
-           long *valuep)
+           unsigned long *valuep)
 {
   if (strncasecmp (*strp, "%lo(", 4) == 0)
     {
@@ -291,7 +293,7 @@ static const char *
 parse_mlo16 (CGEN_CPU_DESC cd,
             const char **strp,
             int opindex,
-            long *valuep)
+            unsigned long *valuep)
 {
   if (strncasecmp (*strp, "%lo(", 4) == 0)
     {
This page took 0.023785 seconds and 4 git commands to generate.