aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-arm.c
diff options
context:
space:
mode:
authorMatthew Gretton-Dann <matthew.gretton-dann@arm.com>2012-08-24 07:58:02 +0000
committerMatthew Gretton-Dann <matthew.gretton-dann@arm.com>2012-08-24 07:58:02 +0000
commit12e37cbc4b33576711d4e4742c691652fdf5bea7 (patch)
treef8403411972727c7f7227976095dbdc2d9360fd2 /gas/config/tc-arm.c
parent5a01bb1d0f18ec1738106460009f622617c4a19c (diff)
downloadgdb-12e37cbc4b33576711d4e4742c691652fdf5bea7.zip
gdb-12e37cbc4b33576711d4e4742c691652fdf5bea7.tar.gz
gdb-12e37cbc4b33576711d4e4742c691652fdf5bea7.tar.bz2
* 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.
Diffstat (limited to 'gas/config/tc-arm.c')
-rw-r--r--gas/config/tc-arm.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c
index d9cf3d3..8f2f88b 100644
--- a/gas/config/tc-arm.c
+++ b/gas/config/tc-arm.c
@@ -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;