2010-09-27 Tejas Belagod <tejas.belagod@arm.com>

* gas/config/tc-arm.c (do_neon_ldr_str): Deprecate ARM-mode PC-relative
	VSTR, issue an error in THUMB mode.
	* opcodes/arm_dis.c (print_insn_coprocessor): Apply off-by-alignment
	correction to unaligned PCs while printing comment.
	* gas/testsuite/gas/arm/vldr.s: New test for pc-relative VLDR disassembly comment.
	* gas/testsuite/gas/arm/vldr.d: Likewise.
	* gas/testsuite/gas/arm/vstr-bad.s: New test for PC-relative VSTR.
	* gas/testsuite/gas/arm/vstr-thumb-bad.l: Likewise.
	* gas/testsuite/gas/arm/vstr-thumb-bad.d: Likewise.
	* gas/testsuite/gas/arm/vstr-arm-bad.l: Likewise.
	* gas/testsuite/gas/arm/vstr-arm-bad.d: Likewise.
This commit is contained in:
Matthew Gretton-Dann
2010-09-27 09:47:05 +00:00
parent a7cb5251cf
commit 6844b2c2db
12 changed files with 89 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2010-09-27 Tejas Belagod <tejas.belagod@arm.com>
* arm_dis.c (print_insn_coprocessor): Apply off-by-alignment
correction to unaligned PCs while printing comment.
2010-09-23 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
* arm-dis.c (arm_opcodes): Add Virtualiztion Extensions support.

View File

@ -1910,8 +1910,12 @@ print_insn_coprocessor (bfd_vma pc,
if (rn == 15 && (PRE_BIT_SET || WRITEBACK_BIT_SET))
{
func (stream, "\t; ");
info->print_address_func (offset + pc
+ info->bytes_per_chunk * 2, info);
/* For unaligned PCs, apply off-by-alignment
correction. */
info->print_address_func (offset + pc
+ info->bytes_per_chunk * 2
- (pc & 3),
info);
}
}
break;