[Committed] Fix 64-bit bb opcode entry

John David Anglin dave.anglin@bell.net
Sun May 14 20:31:00 GMT 2017


I noticed today in looking at some disassembly output that 64-bit opcodes were being
shown in 32-bit code for the bb instruction:

Reading symbols from hppa-linux-gnu-as...(no debugging symbols found)...done.
(gdb) disass 0x36508-16,0x36508+16
Dump of assembler code from 0x364f8 to 0x36518:
  0x000364f8:	ldw 4(r4),r6
  0x000364fc:	cmpb,<>,n r6,r20,0x3650c
  0x00036500:	ldw c(r4),r26
  0x00036504:	ldw 4(r26),r19
  0x00036508:	ldw 10(r19),r6
  0x0003650c:	bb,*>= ret0,3,0x3654c

The problem was the opcode match condition wasn't making sure the `d' bit was nonzero.
This is fixed by the attached change.

Committed to trunk.

Dave
--
John David Anglin	dave.anglin@bell.net


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: hppa-bb.d.txt
URL: <https://sourceware.org/pipermail/binutils/attachments/20170514/89c7d892/attachment.txt>


More information about the Binutils mailing list