diff options
author | Jie Zhang <jie.zhang@analog.com> | 2005-11-18 14:21:29 +0000 |
---|---|---|
committer | Jie Zhang <jie.zhang@analog.com> | 2005-11-18 14:21:29 +0000 |
commit | 73562ad0c76e78ffc052085507181352daea9e7c (patch) | |
tree | 730d4620a58da01705b15d2ee9d5c84a6894a88b /gas/config/bfin-defs.h | |
parent | a2140d4d103ed4073fdbec3991334b22218de527 (diff) | |
download | gdb-73562ad0c76e78ffc052085507181352daea9e7c.zip gdb-73562ad0c76e78ffc052085507181352daea9e7c.tar.gz gdb-73562ad0c76e78ffc052085507181352daea9e7c.tar.bz2 |
* config/bfin-defs.h (IS_BREG, IS_LREG): New macros.
* config/bfin-parse.y (asm_1): Check register type for load immediate
instruction.
Diffstat (limited to 'gas/config/bfin-defs.h')
-rw-r--r-- | gas/config/bfin-defs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gas/config/bfin-defs.h b/gas/config/bfin-defs.h index 221e8c4..46ae61e 100644 --- a/gas/config/bfin-defs.h +++ b/gas/config/bfin-defs.h @@ -199,6 +199,8 @@ enum reg_class #define IS_PREG(r) _TYPECHECK(r, P) #define IS_IREG(r) (((r).regno & 0xf4) == T_REG_I) #define IS_MREG(r) (((r).regno & 0xf4) == T_REG_M) +#define IS_BREG(r) (((r).regno & 0xf4) == T_REG_B) +#define IS_LREG(r) (((r).regno & 0xf4) == T_REG_L) #define IS_CREG(r) ((r).regno == REG_LC0 || (r).regno == REG_LC1) #define IS_ALLREG(r) ((r).regno < T_NOGROUP) |