* gas/config/tc-arm.c (do_setend): Warn on deprecated SETEND.

(do_t_setend): Likewise.
	* gas/testsuite/gas/arm/armv8-a-bad.l: Update
	* gas/testsuite/gas/arm/armv8-a-bad.s: Likewise.
This commit is contained in:
Matthew Gretton-Dann
2012-08-24 07:58:02 +00:00
parent 5a01bb1d0f
commit 12e37cbc4b
5 changed files with 26 additions and 0 deletions

@ -1,3 +1,8 @@
2012-08-24 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
* config/tc-arm.c (do_setend): Warn on deprecated SETEND.
(do_t_setend): Likewise.
2012-08-24 Matthew Gretton-Dann <matthew.gretton-dann@arm.com> 2012-08-24 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
* config/tc-arm.c (do_t_it): Fully initialise now_it. * config/tc-arm.c (do_t_it): Fully initialise now_it.

@ -8528,6 +8528,10 @@ do_usat16 (void)
static void static void
do_setend (void) do_setend (void)
{ {
if (warn_on_deprecated
&& ARM_CPU_HAS_FEATURE (cpu_variant, arm_ext_v8))
as_warn (_("setend use is deprecated for ARMv8"));
if (inst.operands[0].imm) if (inst.operands[0].imm)
inst.instruction |= 0x200; inst.instruction |= 0x200;
} }
@ -11769,6 +11773,10 @@ do_t_rsb (void)
static void static void
do_t_setend (void) do_t_setend (void)
{ {
if (warn_on_deprecated
&& ARM_CPU_HAS_FEATURE (cpu_variant, arm_ext_v8))
as_warn (_("setend use is deprecated for ARMv8"));
set_it_insn_type (OUTSIDE_IT_INSN); set_it_insn_type (OUTSIDE_IT_INSN);
if (inst.operands[0].imm) if (inst.operands[0].imm)
inst.instruction |= 0x8; inst.instruction |= 0x8;

@ -1,3 +1,8 @@
2012-08-24 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
* gas/arm/armv8-a-bad.l: Update
* gas/arm/armv8-a-bad.s: Likewise.
2012-08-24 Matthew Gretton-Dann <matthew.gretton-dann@arm.com> 2012-08-24 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
* gas/arm/armv8-a-it-bad.d: New testcase. * gas/arm/armv8-a-it-bad.d: New testcase.

@ -5,3 +5,5 @@
.*:12: Warning: This coprocessor register access is deprecated in ARMv8 .*:12: Warning: This coprocessor register access is deprecated in ARMv8
.*:13: Warning: This coprocessor register access is deprecated in ARMv8 .*:13: Warning: This coprocessor register access is deprecated in ARMv8
.*:14: Warning: This coprocessor register access is deprecated in ARMv8 .*:14: Warning: This coprocessor register access is deprecated in ARMv8
.*:17: Warning: setend use is deprecated for ARMv8
.*:20: Warning: setend use is deprecated for ARMv8

@ -12,3 +12,9 @@
mcr p15, 0, r2, c7, c10, 5 mcr p15, 0, r2, c7, c10, 5
mrc p14, 6, r1, c0, c0, 0 mrc p14, 6, r1, c0, c0, 0
mrc p14, 6, r0, c1, c0, 0 mrc p14, 6, r0, c1, c0, 0
// deprecated SETEND
setend be
.thumb
setend le