This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch,microblaze]: Optimized usage of fint instruction.


On 02/25/15 02:20, Ajit Kumar Agarwal wrote:
Hello All:

Please find the patch for the optimized usage of fint instruction changes. No regression is seen
in the deja GNU tests.

commit ed4dc0b96bf43c200cacad97f73a98ab7048e51b
Author: Ajit Kumar Agarwal <ajitkum@xhdspdgnu.(none)>
Date:   Wed Feb 25 15:36:29 2015 +0530

     [Patch,microblaze]: Optimized usage of fint instruction.

     The changes are made in the patch for optimized usage of fint instruction.
     The sequence of fint/cond_branch is replaced with fcmp/cond_branch. The
     fint instruction takes 6/7 cycles as compared to fcmp instruction which
     takes 1 cycles. The conversion from float to int with fint instruction
     is not required and can directly compared with fcmp instruction which
     takes 1 cycle as compared to 6/7 cycles with fint instruction.

     ChangeLog:
     2015-02-25  Ajit Agarwal  <ajitkum@xilinx.com>

         * config/microblaze/microblaze.md (peephole2): New.


+    emit_insn (gen_cstoresf4 (comp_reg, operands[2],
+                              gen_rtx_REG(SFmode,REGNO(cmp_op0)),
+                              gen_rtx_REG(SFmode,REGNO(cmp_op1))));

Spaces before left parens and after comma in last two lines.


--
Michael Eager	 eager@eagercon.com
1960 Park Blvd., Palo Alto, CA 94306  650-325-8077


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]