[PATCH] fix ppc disassembly of condition registers
Alan Modra
amodra@bigpond.net.au
Mon Nov 11 20:04:00 GMT 2002
On Tue, Nov 12, 2002 at 02:58:52AM +0100, Segher Boessenkool wrote:
> [I hope my mailer doesn't mangle this...]
It didn't.
> * ppc-dis.c (print_insn_powerpc): Correct condition register display.
Thanks, applied. Amusingly, this also required a fix to the testsuite.
gas/testsuite/ChangeLog
* gas/ppc/booke.d: Adjust output for corrected condition reg.
--
Alan Modra
IBM OzLabs - Linux Technology Centre
Index: gas/testsuite/gas/ppc/booke.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/ppc/booke.d,v
retrieving revision 1.3
diff -u -p -r1.3 booke.d
--- gas/testsuite/gas/ppc/booke.d 15 Nov 2001 01:08:52 -0000 1.3
+++ gas/testsuite/gas/ppc/booke.d 12 Nov 2002 04:01:16 -0000
@@ -11,12 +11,12 @@ Disassembly of section \.text:
4: 24 46 00 3d bcel 2,4\*cr1\+eq,40 <branch_target_2>
8: 24 67 00 02 bcea 3,4\*cr1\+so,0 <start>
8: R_PPC(64)?_ADDR14 branch_target_3
- c: 24 88 00 03 bcela 4,4\*cr2,0 <start>
+ c: 24 88 00 03 bcela 4,4\*cr2\+lt,0 <start>
c: R_PPC(64)?_ADDR14 branch_target_4
10: 4c a9 00 22 bclre 5,4\*cr2\+gt
14: 4c aa 00 23 bclrel 5,4\*cr2\+eq
18: 4d 0b 04 22 bcctre 8,4\*cr2\+so
- 1c: 4d 0c 04 23 bcctrel 8,4\*cr3
+ 1c: 4d 0c 04 23 bcctrel 8,4\*cr3\+lt
20: 58 00 00 74 be 94 <branch_target_5>
24: 58 00 00 89 bel ac <branch_target_6>
28: 58 00 00 02 bea 0 <start>
More information about the Binutils
mailing list