From: Kyrylo Tkachov Date: Fri, 4 Oct 2013 15:26:18 +0000 (+0000) Subject: [gas/] X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fe8b4cc3587dc21b2c4cdb005f87cc4d28cb9188;p=binutils-gdb.git [gas/] 2013-10-04 Kyrylo Tkachov * config/tc-arm.c (do_t_mvn_tst): Use narrow form for tst when possible. [gas/testsuite/] 2013-10-04 Kyrylo Tkachov * 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. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index a518616e2ed..55bdf9ecfe2 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2013-10-04 Kyrylo Tkachov + + * config/tc-arm.c (do_t_mvn_tst): Use narrow form for tst when + possible. + 2013-09-30 Saravanan Ekanathan * 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 9c8211d5355..7a266792b86 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 adf798414cd..328465e1ff0 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2013-10-04 Kyrylo Tkachov + + * 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 * 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 b02659fc37e..073d01f062b 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 c12abb6242f..3b37f34da46 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 03ad87c2d1d..384d605b69a 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