]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
xlr.md (ir_xlr_alu_clz): New insn_reservation.
authorCatherine Moore <clm@codesourcery.com>
Sat, 4 Aug 2012 22:16:57 +0000 (18:16 -0400)
committerSandra Loosemore <sandra@gcc.gnu.org>
Sat, 4 Aug 2012 22:16:57 +0000 (18:16 -0400)
2012-08-04  Catherine Moore  <clm@codesourcery.com>
    Sandra Loosemore  <sandra@codesourcery.com>

gcc/
* config/mips/xlr.md (ir_xlr_alu_clz): New insn_reservation.
(ir_xlr_alu): Remove clz.
* config/mips/mips-cpus.def (xlr): Set PTF_AVOID_BRANCHLIKELY.

Co-Authored-By: Sandra Loosemore <sandra@codesourcery.com>
From-SVN: r190146

gcc/ChangeLog
gcc/config/mips/mips-cpus.def
gcc/config/mips/xlr.md

index c849368db0a4b3e1fd2ee4b6963ccb6adf9ec58b..b8f0a86a0f898904cd4e25aee0adb3baf0b9fd18 100644 (file)
@@ -1,3 +1,10 @@
+2012-08-04  Catherine Moore  <clm@codesourcery.com>
+           Sandra Loosemore  <sandra@codesourcery.com>
+
+       * config/mips/xlr.md (ir_xlr_alu_clz): New insn_reservation.
+       (ir_xlr_alu): Remove clz.
+       * config/mips/mips-cpus.def (xlr): Set PTF_AVOID_BRANCHLIKELY.
+
 2012-08-04  Richard Earnshaw  <rearnsha@arm.com>
 
        * arm.c (arm_gen_constant): Use SImode when preparing operands for
index 62b1a19062ee8f4dbe9cc12dc407bc1f5971c4e6..e8dc5a7a036c102f14655f5ee9618781e3e9a2c9 100644 (file)
@@ -142,7 +142,7 @@ MIPS_CPU ("20kc", PROCESSOR_20KC, 64, PTF_AVOID_BRANCHLIKELY)
 MIPS_CPU ("sb1", PROCESSOR_SB1, 64, PTF_AVOID_BRANCHLIKELY)
 MIPS_CPU ("sb1a", PROCESSOR_SB1A, 64, PTF_AVOID_BRANCHLIKELY)
 MIPS_CPU ("sr71000", PROCESSOR_SR71000, 64, PTF_AVOID_BRANCHLIKELY)
-MIPS_CPU ("xlr", PROCESSOR_XLR, 64, 0)
+MIPS_CPU ("xlr", PROCESSOR_XLR, 64, PTF_AVOID_BRANCHLIKELY)
 MIPS_CPU ("loongson3a", PROCESSOR_LOONGSON_3A, 64, PTF_AVOID_BRANCHLIKELY)
 
 /* MIPS64 Release 2 processors.  */
index 14204694d5d0266c3815f903619d4c45f9e3394f..59f863323f26cbbf02c5bf9309700e506c665c97 100644 (file)
        (eq_attr "type" "slt"))
   "xlr_main_pipe")
 
+(define_insn_reservation "ir_xlr_alu_clz" 2
+  (and (eq_attr "cpu" "xlr") 
+       (eq_attr "type" "clz"))
+  "xlr_main_pipe")
+
 ;; Integer arithmetic instructions.
 (define_insn_reservation "ir_xlr_alu" 1
   (and (eq_attr "cpu" "xlr") 
-       (eq_attr "type" "move,arith,shift,clz,logical,signext,const,unknown,multi,nop,trap,atomic,syncloop"))
+       (eq_attr "type" "move,arith,shift,logical,signext,const,unknown,multi,nop,trap,atomic,syncloop"))
   "xlr_main_pipe")
 
 ;; Integer arithmetic instructions.