* config/tc-rx.c (md_convert_frag): Fix encoding of beq.a

synthetic instruction.

	* gas/rx/r-bcc.d: Update expected disassembly of synthetic beq.a
	instruction.
This commit is contained in:
Nick Clifton 2011-07-26 14:09:36 +00:00
parent 58d180e827
commit 53d780c93d
4 changed files with 13 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2011-07-26 Kazuhiro Inaoka <kazuhiro.inaoka.ud@renesas.com>
* config/tc-rx.c (md_convert_frag): Fix encoding of beq.a
synthetic instruction.
2011-07-25 Tristan Gingold <gingold@adacore.com>
* frags.c (frag_grow): Simplify the code.

View File

@ -1701,7 +1701,7 @@ md_convert_frag (bfd * abfd ATTRIBUTE_UNUSED,
reloc_adjust = 1;
break;
case OPCODE (OT_beq, 5): /* BEQ.A - synthetic. */
op[0] = 0x1e; /* bne.s .+4. */
op[0] = 0x1d; /* bne.s .+5. */
op[1] = 0x04; /* bra.a dsp:24. */
disp -= 1;
#if RX_OPCODE_BIG_ENDIAN
@ -1739,7 +1739,7 @@ md_convert_frag (bfd * abfd ATTRIBUTE_UNUSED,
reloc_adjust = 1;
break;
case OPCODE (OT_bne, 5): /* BNE.A - synthetic. */
op[0] = 0x15; /* beq.s .+4. */
op[0] = 0x15; /* beq.s .+5. */
op[1] = 0x04; /* bra.a dsp:24. */
disp -= 1;
#if RX_OPCODE_BIG_ENDIAN

View File

@ -1,3 +1,8 @@
2011-07-26 Kazuhiro Inaoka <kazuhiro.inaoka.ud@renesas.com>
* gas/rx/r-bcc.d: Update expected disassembly of synthetic beq.a
instruction.
2011-07-24 Maciej W. Rozycki <macro@codesourcery.com>
Chao-ying Fu <fu@mips.com>
Richard Sandiford <rdsandiford@googlemail.com>

View File

@ -8,7 +8,7 @@ Disassembly of section \.text:
00000000 <beq>:
0: 20 32 beq\.b 32 <dsp8>
2: 3a 86 13 beq\.w 1388 <dsp16>
5: 1e bne\.s b <bne\+0x1>
5: 1d bne\.s a <bne>
6: 04 1a a1 07 bra\.a 7a120 <dsp24>
0000000a <bne>: