aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-arm.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2010-05-13 08:15:04 +0000
committerNathan Sidwell <nathan@codesourcery.com>2010-05-13 08:15:04 +0000
commitbf3eeda76c05e26f2fde170e4650a3edf220e135 (patch)
treeb3013c3d185439e54f6275cedb95c58276c60a48 /gas/config/tc-arm.c
parent9e59393e699277fcd7da63b4169675ecd52360e5 (diff)
downloadgdb-bf3eeda76c05e26f2fde170e4650a3edf220e135.zip
gdb-bf3eeda76c05e26f2fde170e4650a3edf220e135.tar.gz
gdb-bf3eeda76c05e26f2fde170e4650a3edf220e135.tar.bz2
* config/tc-arm.c (md_assemble): Clarify current mode in error
messages about unsupported instructions. (UT): Delete #define. (insns): Adjust cbnz, cbz appropriately. testsuite: * gas/arm/armv1-bad.l: Adjust expected error text. * gas/arm/arch7em-bad.l: Likewise. * gas/arm/arch7m-bad.l: Likewise. * gas/arm/thumb-w-bad.l: Likewise. * gas/arm/arm7-bad.d: New. * gas/arm/arm7-bad.l: New. * gas/arm/arm7-bad.s: New.
Diffstat (limited to 'gas/config/tc-arm.c')
-rw-r--r--gas/config/tc-arm.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c
index 8c9b33b..bc03294 100644
--- a/gas/config/tc-arm.c
+++ b/gas/config/tc-arm.c
@@ -15719,7 +15719,7 @@ md_assemble (char *str)
|| (thumb_mode == 1
&& !ARM_CPU_HAS_FEATURE (variant, *opcode->tvariant)))
{
- as_bad (_("selected processor does not support `%s'"), str);
+ as_bad (_("selected processor does not support Thumb mode `%s'"), str);
return;
}
if (inst.cond != COND_ALWAYS && !unified_syntax
@@ -15744,7 +15744,7 @@ md_assemble (char *str)
inst.size_req = 2;
else if (inst.size_req == 4)
{
- as_bad (_("selected processor does not support `%s'"), str);
+ as_bad (_("selected processor does not support Thumb-2 mode `%s'"), str);
return;
}
}
@@ -15810,7 +15810,7 @@ md_assemble (char *str)
&& !(opcode->avariant &&
ARM_CPU_HAS_FEATURE (cpu_variant, *opcode->avariant)))
{
- as_bad (_("selected processor does not support `%s'"), str);
+ as_bad (_("selected processor does not support ARM mode `%s'"), str);
return;
}
if (inst.size_req)
@@ -16439,9 +16439,6 @@ static struct asm_barrier_opt barrier_opt_names[] =
#define do_0 0
-/* Thumb-only, unconditional. */
-#define UT(mnem, op, nops, ops, te) TUE (mnem, 0, op, nops, ops, 0, te)
-
static const struct asm_opcode insns[] =
{
#define ARM_VARIANT &arm_ext_v1 /* Core ARM Instructions. */
@@ -16898,8 +16895,11 @@ static const struct asm_opcode insns[] =
TC3("ldrsbt", 03000d0, f9100e00, 2, (RRnpc_npcsp, ADDR), ldsttv4, t_ldstt),
TC3("strht", 02000b0, f8200e00, 2, (RRnpc_npcsp, ADDR), ldsttv4, t_ldstt),
- UT("cbnz", b900, 2, (RR, EXP), t_cbz),
- UT("cbz", b100, 2, (RR, EXP), t_cbz),
+ /* Thumb-only instructions. */
+#undef ARM_VARIANT
+#define ARM_VARIANT NULL
+ TUE("cbnz", 0, b900, 2, (RR, EXP), 0, t_cbz),
+ TUE("cbz", 0, b100, 2, (RR, EXP), 0, t_cbz),
/* ARM does not really have an IT instruction, so always allow it.
The opcode is copied from Thumb in order to allow warnings in