OpenCores
URL https://opencores.org/ocsvn/open8_urisc/open8_urisc/trunk

Subversion Repositories open8_urisc

[/] [open8_urisc/] [trunk/] [gnu/] [binutils/] [cpu/] [frv.opc] - Diff between revs 24 and 166

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 24 Rev 166
Line 1341... Line 1341...
            return "missing `)'";
            return "missing `)'";
          ++*strp;
          ++*strp;
          if (errmsg == NULL
          if (errmsg == NULL
              && result_type == CGEN_PARSE_OPERAND_RESULT_NUMBER)
              && result_type == CGEN_PARSE_OPERAND_RESULT_NUMBER)
            {
            {
              /* If bfd_vma is wider than 32 bits, but we have a sign-
              /* If value is wider than 32 bits then be
                 or zero-extension, truncate it.  */
                 careful about how we extract bits 16-31.  */
              if (value >= - ((bfd_vma)1 << 31)
              if (sizeof (value) > 4)
                  || value <= ((bfd_vma)1 << 31) - (bfd_vma)1)
 
                value &= (((bfd_vma)1 << 16) << 16) - 1;
                value &= (((bfd_vma)1 << 16) << 16) - 1;
 
 
              value >>= 16;
              value >>= 16;
            }
            }
          *valuep = value;
          *valuep = value;
          return errmsg;
          return errmsg;
        }
        }

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.