aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorKyrylo Tkachov <ktkachov@sourceware.org>2013-10-04 15:26:18 +0000
committerKyrylo Tkachov <ktkachov@sourceware.org>2013-10-04 15:26:18 +0000
commitfe8b4cc3587dc21b2c4cdb005f87cc4d28cb9188 (patch)
treed431a17ffcfc4b7db4ed8a19f4e68a00a04833a4 /gas/config
parent9a2c3737b0feb226ee428b4e9cdc2ed46aa6450a (diff)
downloadgdb-fe8b4cc3587dc21b2c4cdb005f87cc4d28cb9188.zip
gdb-fe8b4cc3587dc21b2c4cdb005f87cc4d28cb9188.tar.gz
gdb-fe8b4cc3587dc21b2c4cdb005f87cc4d28cb9188.tar.bz2
[gas/]
2013-10-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com> * config/tc-arm.c (do_t_mvn_tst): Use narrow form for tst when possible. [gas/testsuite/] 2013-10-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com> * gas/arm/thumb2_it.s: Add test for narrow tst. * gas/arm/thumb2_it.d: Update expected output. * gas/arm/thumb2_it_auto.d: Likewise.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-arm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c
index 9c8211d..7a26679 100644
--- a/gas/config/tc-arm.c
+++ b/gas/config/tc-arm.c
@@ -11267,7 +11267,8 @@ do_t_mvn_tst (void)
|| inst.operands[1].shifted
|| Rn > 7 || Rm > 7)
narrow = FALSE;
- else if (inst.instruction == T_MNEM_cmn)
+ else if (inst.instruction == T_MNEM_cmn
+ || inst.instruction == T_MNEM_tst)
narrow = TRUE;
else if (THUMB_SETS_FLAGS (inst.instruction))
narrow = !in_it_block ();