This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix Altivec problem with vmaddfp
- From: Alan Matsuoka <alanm at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 22 Apr 2002 10:55:24 -0400
- Subject: [PATCH] Fix Altivec problem with vmaddfp
- Organization: RedHat
Operands 2 and 3 are in the wrong order.
Ok to check in ?
2002-04-21 Alan Matsuoka <alanm@redhat.com>
* config/rs6000/rs6000.md (altivec_vmaddfp): Operands 2 and 3
were reversed.
Index: gcc/config/rs6000/rs6000.md
===================================================================
RCS file: /cvs/cvsfiles/devo/gcc/config/rs6000/rs6000.md,v
retrieving revision 1.233.4.5
diff -d -c -p -r1.233.4.5 rs6000.md
*** rs6000.md 2002/02/26 06:50:46 1.233.4.5
--- rs6000.md 2002/04/19 11:32:33
***************
*** 15176,15182 ****
(match_operand:V4SF 2 "register_operand"
"v"))
(match_operand:V4SF 3 "register_operand" "v")))]
"TARGET_ALTIVEC"
! "vmaddfp %0,%1,%2,%3"
[(set_attr "type" "vecfloat")])
;; The unspec here is a vec splat of 0. We do multiply as a fused
--- 15176,15182 ----
(match_operand:V4SF 2 "register_operand"
"v"))
(match_operand:V4SF 3 "register_operand" "v")))]
"TARGET_ALTIVEC"
! "vmaddfp %0,%1,%3,%2"
[(set_attr "type" "vecfloat")])
;; The unspec here is a vec splat of 0. We do multiply as a fused
Alan Matsuoka
Professional Services
Red Hat Canada, Ltd
mailto:alanm@redhat.com Tel: (416) 482-2661 x250 / Fax: (416) 482-6299