This is the mail archive of the gcc@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]

Re: gcc 3.4 and altivec code generation?


>>>>> Jack Howarth writes:

Jack> I asked this awhile back but was wondering if
Jack> the situation had changed for gcc 3.4. I am wondering
Jack> if it is possible yet to force the gcc, g++ and g77
Jack> compilers to automatically generate code for math
Jack> operations on the altivec? 

	GCC does not yet have auto-vectorization support.  That is being
developed in conjunction with the Tree-SSA infrastructure.

Jack> Also under
Jack> what circumstances would it make much of an impact
Jack> to switch from the FPU to the Altivec for calculations?

	Altivec does not support double precision floating point types.
If you manually vectorize single precision floating point operations and
the data is properly aligned, you should see a performance improvement.

David


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