Patchwork Allow implicit Altivec and VSX on AIX 6.1 and above

login
register
mail settings
Submitter David Edelsohn
Date Feb. 9, 2013, 3:56 p.m.
Message ID <CAGWvnykh7a=8h+y1YibS9+w+hMLv55yD6wBxMAfHE0aqJeu0UQ@mail.gmail.com>
Download mbox | patch
Permalink /patch/219399/
State New
Headers show

Comments

David Edelsohn - Feb. 9, 2013, 3:56 p.m.
AIX 6.1 assembler allows enough alignment for Altivec to work with
GCC, so the following patch allows -mcpu= to enable Altivec and VSX by
default.

Bootstrapped on powerpc-ibm-aix7.1.0.0.

- David

        * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.

Patch

Index: aix61.h
===================================================================
--- aix61.h     (revision 195916)
+++ aix61.h     (working copy)
@@ -133,6 +133,9 @@ 
 #undef  PROCESSOR_DEFAULT64
 #define PROCESSOR_DEFAULT64 PROCESSOR_POWER7

+/* AIX 6.1 kernel and assembler have necessary support for Altivec and VSX.  */
+#undef OS_MISSING_ALTIVEC
+
 /* Define this macro as a C expression for the initializer of an
    array of string to tell the driver program which options are
    defaults for this target and thus do not need to be handled