From: Maciej W. Rozycki Date: Thu, 9 Dec 2010 22:17:27 +0000 (+0000) Subject: * config/tc-mips.c (macro): Use EXTRACT_OPERAND to get register X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bbea7ebcc5c5ef8102fe45775c95cba5b854d4c1;p=binutils-gdb.git * config/tc-mips.c (macro): Use EXTRACT_OPERAND to get register numbers. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 5816b667c05..d8feb68b279 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2010-12-09 Maciej W. Rozycki + + * config/tc-mips.c (macro): Use EXTRACT_OPERAND to get register + numbers. + 2010-12-09 Maciej W. Rozycki * config/tc-mips.c (macro): Replace 0 with ZERO in macro_build diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c index eeee3dc2b8a..8a7456ad2ff 100644 --- a/gas/config/tc-mips.c +++ b/gas/config/tc-mips.c @@ -4823,9 +4823,9 @@ macro (struct mips_cl_insn *ip) gas_assert (! mips_opts.mips16); - treg = (ip->insn_opcode >> 16) & 0x1f; - dreg = (ip->insn_opcode >> 11) & 0x1f; - sreg = breg = (ip->insn_opcode >> 21) & 0x1f; + treg = EXTRACT_OPERAND (RT, *ip); + dreg = EXTRACT_OPERAND (RD, *ip); + sreg = breg = EXTRACT_OPERAND (RS, *ip); mask = ip->insn_mo->mask; expr1.X_op = O_constant;