diff options
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 5 | ||||
-rw-r--r-- | gas/config/tc-arm.c | 3 | ||||
-rw-r--r-- | gas/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gas/testsuite/gas/arm/thumb2_it.d | 2 | ||||
-rw-r--r-- | gas/testsuite/gas/arm/thumb2_it.s | 2 | ||||
-rw-r--r-- | gas/testsuite/gas/arm/thumb2_it_auto.d | 2 |
6 files changed, 19 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index a518616e2e..55bdf9ecfe 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 9c8211d535..7a266792b8 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 adf798414c..328465e1ff 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 b02659fc37..073d01f062 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 c12abb6242..3b37f34da4 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 03ad87c2d1..384d605b69 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 |