* gas/config/tc-arm.c (do_setend): Warn on deprecated SETEND.
authorMatthew Gretton-Dann <matthew.gretton-dann@arm.com>
Fri, 24 Aug 2012 07:58:02 +0000 (07:58 +0000)
committerMatthew Gretton-Dann <matthew.gretton-dann@arm.com>
Fri, 24 Aug 2012 07:58:02 +0000 (07:58 +0000)
(do_t_setend): Likewise.
* gas/testsuite/gas/arm/armv8-a-bad.l: Update
* gas/testsuite/gas/arm/armv8-a-bad.s: Likewise.

gas/ChangeLog
gas/config/tc-arm.c
gas/testsuite/ChangeLog
gas/testsuite/gas/arm/armv8-a-bad.l
gas/testsuite/gas/arm/armv8-a-bad.s

index f331972..5d6b444 100644 (file)
@@ -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>
 
        * config/tc-arm.c (do_t_it): Fully initialise now_it.
index d9cf3d3..8f2f88b 100644 (file)
@@ -8528,6 +8528,10 @@ do_usat16 (void)
 static 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)
     inst.instruction |= 0x200;
 }
@@ -11769,6 +11773,10 @@ do_t_rsb (void)
 static 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);
   if (inst.operands[0].imm)
     inst.instruction |= 0x8;
index 40ab12d..2cdaada 100644 (file)
@@ -1,5 +1,10 @@
 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>
+
        * gas/arm/armv8-a-it-bad.d: New testcase.
        * gas/arm/armv8-a-it-bad.l: Likewise.
        * gas/arm/armv8-a-it-bad.s: Likewise.
index cde1bba..e96efce 100644 (file)
@@ -5,3 +5,5 @@
 .*:12: 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
+.*:17: Warning: setend use is deprecated for ARMv8
+.*:20: Warning: setend use is deprecated for ARMv8
index af08639..33a3c17 100644 (file)
@@ -12,3 +12,9 @@
        mcr p15, 0, r2, c7, c10, 5
        mrc p14, 6, r1, c0, c0, 0
        mrc p14, 6, r0, c1, c0, 0
+
+       // deprecated SETEND
+       setend be
+
+       .thumb
+       setend le