ppc e500: add V1DI vector clear pattern

Aldy Hernandez aldyh@redhat.com
Tue Dec 3 15:41:00 GMT 2002


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"



More information about the Gcc-patches mailing list