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.tkac...@arm.com>

    * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
    type for second alternative.
commit f6a28f02b51eabec192dc1a73837662c7c2dd9fe
Author: Kyrylo Tkachov <kyrylo.tkac...@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"

Reply via email to