aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-arm.c3
-rw-r--r--gas/testsuite/ChangeLog6
-rw-r--r--gas/testsuite/gas/arm/thumb2_it.d2
-rw-r--r--gas/testsuite/gas/arm/thumb2_it.s2
-rw-r--r--gas/testsuite/gas/arm/thumb2_it_auto.d2
6 files changed, 19 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index a518616..55bdf9e 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2013-10-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
+
+ * config/tc-arm.c (do_t_mvn_tst): Use narrow form for tst when
+ possible.
+
2013-09-30 Saravanan Ekanathan <saravanan.ekanathan@amd.com>
* config/tc-i386.c (cpu_arch): Add CPU_BDVER4_FLAGS.
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 ();
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index adf7984..328465e 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+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.
+
2013-09-30 Saravanan Ekanathan <saravanan.ekanathan@amd.com>
* gas/i386/i386.exp: Run bdver4 test cases.
diff --git a/gas/testsuite/gas/arm/thumb2_it.d b/gas/testsuite/gas/arm/thumb2_it.d
index b02659f..073d01f 100644
--- a/gas/testsuite/gas/arm/thumb2_it.d
+++ b/gas/testsuite/gas/arm/thumb2_it.d
@@ -60,3 +60,5 @@ Disassembly of section .text:
0+08a <[^>]+> f1d1 0000 rsbseq r0, r1, #0
0+08e <[^>]+> f1c1 0000 rsb r0, r1, #0
0+092 <[^>]+> 4248 negs r0, r1
+0+094 <[^>]+> bfc8 it gt
+0+096 <[^>]+> 4220 tstgt r0, r4
diff --git a/gas/testsuite/gas/arm/thumb2_it.s b/gas/testsuite/gas/arm/thumb2_it.s
index c12abb6..3b37f34 100644
--- a/gas/testsuite/gas/arm/thumb2_it.s
+++ b/gas/testsuite/gas/arm/thumb2_it.s
@@ -62,3 +62,5 @@ foo:
neg r0, r1
negs r0, r1
+ it gt
+ tstgt.n r0, r4
diff --git a/gas/testsuite/gas/arm/thumb2_it_auto.d b/gas/testsuite/gas/arm/thumb2_it_auto.d
index 03ad87c..384d605 100644
--- a/gas/testsuite/gas/arm/thumb2_it_auto.d
+++ b/gas/testsuite/gas/arm/thumb2_it_auto.d
@@ -60,3 +60,5 @@ Disassembly of section .text:
0+08a <[^>]+> f1d1 0000 rsbseq r0, r1, #0
0+08e <[^>]+> f1c1 0000 rsb r0, r1, #0
0+092 <[^>]+> 4248 negs r0, r1
+0+094 <[^>]+> bfc8 it gt
+0+096 <[^>]+> 4220 tstgt r0, r4