diff options
author | Alan Modra <amodra@bigpond.net.au> | 2004-05-19 05:11:48 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2004-05-19 05:11:48 +0000 |
commit | 3b6575675fd2566bdc357f0c48ec3023ba83fbea (patch) | |
tree | d088b822042739addaff71bc14c79818658f5a2b /opcodes/ppc-opc.c | |
parent | ea004bc13669a2bb1f3d234cd8a1dea6b9f506f0 (diff) | |
download | gdb-3b6575675fd2566bdc357f0c48ec3023ba83fbea.tar.gz |
* ppc-opc.c (insert_fxm): Enable two operand mfcr when -many as
well as when -mpower4.
Diffstat (limited to 'opcodes/ppc-opc.c')
-rw-r--r-- | opcodes/ppc-opc.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/opcodes/ppc-opc.c b/opcodes/ppc-opc.c index 35f7fc6036e..51fcfe25a6d 100644 --- a/opcodes/ppc-opc.c +++ b/opcodes/ppc-opc.c @@ -1004,8 +1004,13 @@ insert_fxm (unsigned long insn, /* If only one bit of the FXM field is set, we can use the new form of the instruction, which is faster. Unlike the Power4 branch hint - encoding, this is not backward compatible. */ - else if ((dialect & PPC_OPCODE_POWER4) != 0 && (value & -value) == value) + encoding, this is not backward compatible. Do not generate the + new form unless -mpower4 has been given, or -many and the two + operand form of mfcr was used. */ + else if ((value & -value) == value + && ((dialect & PPC_OPCODE_POWER4) != 0 + || ((dialect & PPC_OPCODE_ANY) != 0 + && (insn & (0x3ff << 1)) == 19 << 1))) insn |= 1 << 20; /* Any other value on mfcr is an error. */ |