This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: ppc-e500: add efsnabs insn
- From: Aldy Hernandez <aldyh at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 18 Aug 2003 12:53:29 -0400
- Subject: Re: ppc-e500: add efsnabs insn
- References: <20030818165029.GA13707@redhat.com>
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")