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]

ppc e500: add V1DI vector clear pattern


With Nick's single element vector patch, we now need a way to clear
V1DI vectors.

I should really make one pattern for all the vector clear
instructions...

Committed to mainline.

2002-12-03  Aldy Hernandez  <aldyh@redhat.com>

	* config/rs6000/spe.md (*movv1di_const0): New pattern.

Index: config/rs6000/spe.md
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/spe.md,v
retrieving revision 1.6
diff -c -p -r1.6 spe.md
*** config/rs6000/spe.md	27 Nov 2002 20:58:37 -0000	1.6
--- config/rs6000/spe.md	3 Dec 2002 23:38:47 -0000
***************
*** 2148,2153 ****
--- 2148,2160 ----
    "evxor %0,%0,%0"
    [(set_attr "type" "vecsimple")])
  
+ (define_insn "*movv1di_const0"
+   [(set (match_operand:V1DI 0 "gpc_reg_operand" "=r")
+ 	(match_operand:V1DI 1 "zero_constant" ""))]
+   "TARGET_SPE"
+   "evxor %0,%0,%0"
+   [(set_attr "type" "vecsimple")])
+ 
  ;; Vector move instructions.
  
  (define_expand "movv2si"


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