[gas/]
authorKyrylo Tkachov <ktkachov@sourceware.org>
Fri, 4 Oct 2013 15:26:18 +0000 (15:26 +0000)
committerKyrylo Tkachov <ktkachov@sourceware.org>
Fri, 4 Oct 2013 15:26:18 +0000 (15:26 +0000)
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.

gas/ChangeLog
gas/config/tc-arm.c
gas/testsuite/ChangeLog
gas/testsuite/gas/arm/thumb2_it.d
gas/testsuite/gas/arm/thumb2_it.s
gas/testsuite/gas/arm/thumb2_it_auto.d

index a518616e2ed99eda8b6b8ba77343e3a4fead2f30..55bdf9ecfe2dd216ce6ec9935b04acc225259fdf 100644 (file)
@@ -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.
index 9c8211d53554958254399215f48aeeaa8b2391c7..7a266792b865db6cc2cf59e3d57c0964a6923ccd 100644 (file)
@@ -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 ();
index adf798414cda6b8f0de0cbf5df2d313cfe95fc25..328465e1ff0b1caf9de95514c0ab257ba5c35adb 100644 (file)
@@ -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.
index b02659fc37e439e98de49b661aaee4ec5bb060f4..073d01f062b03162c821310e6332ab2e855566df 100644 (file)
@@ -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
index c12abb6242f66df70284cf61a656dd84185e7087..3b37f34da46ad76a4fea3ad72574655572bcbde8 100644 (file)
@@ -62,3 +62,5 @@ foo:
        neg r0, r1
        negs r0, r1
 
+       it gt
+       tstgt.n r0, r4
index 03ad87c2d1d7ffc9f50662370e778a23dc5fca7e..384d605b69a92a4a3bee9acb53b56712f1836b34 100644 (file)
@@ -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
This page took 0.038266 seconds and 4 git commands to generate.