ppc-e500: add efsnabs insn

Aldy Hernandez aldyh@redhat.com
Mon Aug 18 16:53:00 GMT 2003


On Mon, Aug 18, 2003 at 12:50:29PM -0400, Aldy Hernandez wrote:
> Committed to mainline and e500 branch.

Whoops, wrong patch.  Here it is.

2003-08-18  Aldy Hernandez  <aldyh@redhat.com>

	* config/rs6000/spe.md ("*nabssf2_gpr"): New.

Index: config/rs6000/spe.md
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/spe.md,v
retrieving revision 1.15
diff -c -p -r1.15 spe.md
*** config/rs6000/spe.md	19 Jun 2003 13:16:31 -0000	1.15
--- config/rs6000/spe.md	18 Aug 2003 16:52:58 -0000
***************
*** 37,42 ****
--- 37,49 ----
    "efsabs %0,%1"
    [(set_attr "type" "fpsimple")])
  
+ (define_insn "*nabssf2_gpr"
+   [(set (match_operand:SF 0 "gpc_reg_operand" "=r")
+ 	(neg:SF (abs:SF (match_operand:SF 1 "gpc_reg_operand" "r"))))]
+   "TARGET_HARD_FLOAT && !TARGET_FPRS"
+   "efsnabs %0,%1"
+   [(set_attr "type" "fpsimple")])
+ 
  (define_insn "*addsf3_gpr"
    [(set (match_operand:SF 0 "gpc_reg_operand" "=r")
  	(plus:SF (match_operand:SF 1 "gpc_reg_operand" "%r")



More information about the Gcc-patches mailing list