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

Subversion Repositories open8_urisc

[/] [open8_urisc/] [trunk/] [gnu/] [binutils/] [opcodes/] [arc-dis.c] - Diff between revs 18 and 166

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

Rev 18 Rev 166
Line 1... Line 1...
/* Instruction printing code for the ARC.
/* Instruction printing code for the ARC.
   Copyright 1994, 1995, 1997, 1998, 2000, 2001, 2002, 2005, 2007, 2009, 2010
   Copyright 1994, 1995, 1997, 1998, 2000, 2001, 2002, 2005, 2007, 2009,
   Free Software Foundation, Inc.
   2010, 2012 Free Software Foundation, Inc.
   Contributed by Doug Evans (dje@cygnus.com).
   Contributed by Doug Evans (dje@cygnus.com).
 
 
   This file is part of libopcodes.
   This file is part of libopcodes.
 
 
   This library is free software; you can redistribute it and/or modify
   This library is free software; you can redistribute it and/or modify
Line 58... Line 58...
  CLASS_A4_OP3_SUBOPC3F,
  CLASS_A4_OP3_SUBOPC3F,
  CLASS_A4_LR
  CLASS_A4_LR
} a4_decoding_class;
} a4_decoding_class;
 
 
#define BIT(word,n)     ((word) & (1 << n))
#define BIT(word,n)     ((word) & (1 << n))
#define BITS(word,s,e)  (((word) << (31 - e)) >> (s + (31 - e)))
#define BITS(word,s,e)  (((word) >> s) & ((1 << (e + 1 - s)) - 1))
#define OPCODE(word)    (BITS ((word), 27, 31))
#define OPCODE(word)    (BITS ((word), 27, 31))
#define FIELDA(word)    (BITS ((word), 21, 26))
#define FIELDA(word)    (BITS ((word), 21, 26))
#define FIELDB(word)    (BITS ((word), 15, 20))
#define FIELDB(word)    (BITS ((word), 15, 20))
#define FIELDC(word)    (BITS ((word),  9, 14))
#define FIELDC(word)    (BITS ((word),  9, 14))
 
 
/* FIELD D is signed in all of its uses, so we make sure argument is
/* FIELD D is signed.  */
   treated as signed for bit shifting purposes:  */
#define FIELDD(word)    ((BITS ((word), 0, 8) ^ 0x100) - 0x100)
#define FIELDD(word)    (BITS (((signed int)word), 0, 8))
 
 
 
#define PUT_NEXT_WORD_IN(a)                                             \
#define PUT_NEXT_WORD_IN(a)                                             \
  do                                                                    \
  do                                                                    \
    {                                                                   \
    {                                                                   \
      if (is_limm == 1 && !NEXT_WORD (1))                               \
      if (is_limm == 1 && !NEXT_WORD (1))                               \

powered by: WebSVN 2.1.0

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