PPC: Allow CRFS and CRFD operands to accept CR register names
Nick Clifton
nickc@redhat.com
Fri Sep 20 10:08:00 GMT 2002
Hi Guys,
I am applying the following small patch to allow the evcmp*,
evfscmp*, efscmp* and evsel PowerPC instructions to accept a CR
register name in their CR operand, as well as just a register
number.
Cheers
Nick
2002-09-20 Nick Clifton <nickc@redhat.com>
* ppc-opc.c (CRFD, CRFS): Add PPC_OPERAND_CR flag so that cr
register names are accepted.
Index: opcodes/ppc-opc.c
===================================================================
RCS file: /cvs/src/src/opcodes/ppc-opc.c,v
retrieving revision 1.38
diff -c -3 -p -w -r1.38 ppc-opc.c
*** opcodes/ppc-opc.c 13 Sep 2002 09:07:49 -0000 1.38
--- opcodes/ppc-opc.c 20 Sep 2002 15:41:20 -0000
*************** const struct powerpc_operand powerpc_ope
*** 257,267 ****
/* The CRFD field in an X form instruction. */
#define CRFD CRB + 1
! { 3, 23, 0, 0, 0 },
/* The CRFS field in an X form instruction. */
#define CRFS CRFD + 1
! { 3, 0, 0, 0, 0 },
/* The CT field in an X form instruction. */
#define CT CRFS + 1
--- 257,267 ----
/* The CRFD field in an X form instruction. */
#define CRFD CRB + 1
! { 3, 23, 0, 0, PPC_OPERAND_CR },
/* The CRFS field in an X form instruction. */
#define CRFS CRFD + 1
! { 3, 0, 0, 0, PPC_OPERAND_CR },
/* The CT field in an X form instruction. */
#define CT CRFS + 1
More information about the Binutils
mailing list