diff mbox

[AArch64] Use logics_imm type for 2nd alternative of *and<mode>3nr_compare0

Message ID 55F14700.5070200@arm.com
State New
Headers show

Commit Message

Kyrylo Tkachov Sept. 10, 2015, 9:01 a.m. UTC
Hi all,

The TST with immediate instruction should have the logics_imm scheduling type.
This patch fixes that in the *and<mode>3nr_compare0 pattern.
Nothing much else to say on this.

Tested on aarch64.
Ok for trunk?

Thanks,
Kyrill

2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

     * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
     type for second alternative.

Comments

James Greenhalgh Sept. 10, 2015, 9:03 a.m. UTC | #1
On Thu, Sep 10, 2015 at 10:01:52AM +0100, Kyrill Tkachov wrote:
> Hi all,
> 
> The TST with immediate instruction should have the logics_imm scheduling type.
> This patch fixes that in the *and<mode>3nr_compare0 pattern.
> Nothing much else to say on this.
> 
> Tested on aarch64.
> Ok for trunk?

OK (and obvious).

Thanks,
James

> 2015-09-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
> 
>      * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
>      type for second alternative.
diff mbox

Patch

commit f6a28f02b51eabec192dc1a73837662c7c2dd9fe
Author: Kyrylo Tkachov <kyrylo.tkachov@arm.com>
Date:   Wed Sep 2 17:08:24 2015 +0100

    [AArch64] Use logics_imm type for 2nd alternative of *and<mode>3nr_compare0

diff --git a/gcc/config/aarch64/aarch64.md b/gcc/config/aarch64/aarch64.md
index b6d7e72..64e84d9 100644
--- a/gcc/config/aarch64/aarch64.md
+++ b/gcc/config/aarch64/aarch64.md
@@ -3590,7 +3590,7 @@  (define_insn "*and<mode>3nr_compare0"
 	 (const_int 0)))]
   ""
   "tst\\t%<w>0, %<w>1"
-  [(set_attr "type" "logics_reg")]
+  [(set_attr "type" "logics_reg,logics_imm")]
 )
 
 (define_insn "*and_<SHIFT:optab><mode>3nr_compare0"