[PATCH] backport AltiVec interface changes from mainline to 3.4
Wed Aug 18 00:35:00 GMT 2004
On Tue, Aug 17, 2004 at 02:40:25PM -0700, Janis Johnson wrote:
> The patch backports from mainline to 3.4-branch changes to support the
> AltiVec high-level language interface. It includes several different
> patches and has been tested as a single patch on powerpc64-linux. In
> addition to the AltiVec tests that are already in the branch and that
> this patch brings up to date, I've also tested this with all other
> altivec* tests in the GCC testsuite, plus gcc.dg/vmx. I'd like to copy
> those tests to the branch but will do that in a separate patch.
I forgot to add the justification for backporting such big changes to
a release branch. The patch does not fix regressions, but does bring
the AltiVec high-level language interface to a point that is expected
by application developers who have ported their software to use the
Motorola AltiVec PIM interface. The few exceptions to that interface
are clearly documented in the GCC Manual as part of the patch. The
changes are particularly apparent in C++ code, where the practice of
mapping 'vector bool' and 'vector pixel' to other vector types worked
fine for C but not for C++.
Most of the changes are to the rs6000 backend. Changes to common parts
of the compiler have been in mainline for several months.
IBM expects a lot of new use of AltiVec support in FSF versions of GCC
and in distributor versions based on FSF releases, particular in
applications that have already been used with Apple's version of GCC.
More information about the Gcc-patches