altivec: memory vector moves from GPRs

David Edelsohn dje@watson.ibm.com
Tue Feb 12 01:48:00 GMT 2002


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

	* rs6000.md: Use predicate altivec_register_operand for
	altivec_lvx* and altivec_stvx*.
	("*movv4si_internal"): Add constraint for loading from GPRs.
	("*movv8hi_internal1"): Same.
	("*movv16qi_internal1"): Same.
	("*movv4sf_internal1"): Same.

	* rs6000.c (altivec_register_operand): New.

	* rs6000.h (PREDICATE_CODES): Add altivec_register_operand.

This patch is okay, except one question and one comments:

1) Should altivec_register_operand accept SUBREG pseudos?

2) Altivec only exists on PowerPC, not POWER, so you don't need the
{st|stw} stuff.

David



More information about the Gcc-patches mailing list