This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
3.4 PATCH: Add -mcpu=7400 to Altivec tests
- From: Mark Mitchell <mark at codesourcery dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 25 Mar 2005 10:34:16 -0800
- Subject: 3.4 PATCH: Add -mcpu=7400 to Altivec tests
- Reply-to: mark at codesourcery dot com
It turns out that I was looking at results from an old tree. In
3.4.x, if you configure --with-cpu=603 and then use -maltivec, the
Altivec extensions are still disabled. That's been changed in 4.0.
We wouldn't want to backport that change to 3.4, as it might result in
silent code changes to user applications, but seeing the test failures
isn't helpful. So, for 3.4 only, I checked in this change, which
ensures that we're building the AltiVec tests for an appropriate CPU.
Thanks to David and Aldy for helping me with this issue.
Tested with a PowerPC GNU/Linux compiler configured --with-cpu=603,
committed on the 3.4 branch.
--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
2005-03-25 Mark Mitchell <mark@codesourcery.com>
* gcc.dg/altivec-1.c: Pass -mcpu=7400 along with -maltivec.
* gcc.dg/altivec-2.c: Likewise.
* gcc.dg/altivec-3.c: Likewise.
* gcc.dg/altivec-4.c: Likewise.
* gcc.dg/altivec-5.c: Likewise.
* gcc.dg/altivec-6.c: Likewise.
* gcc.dg/altivec-7.c: Likewise.
* gcc.dg/altivec-8.c: Likewise.
* gcc.dg/altivec-9.c: Likewise.
* gcc.dg/altivec-10.c: Likewise.
* gcc.dg/altivec-11.c: Likewise.
* gcc.dg/altivec-12.c: Likewise.
* gcc.dg/altivec-13.c: Likewise.
* gcc.dg/altivec-14.c: Likewise.
* gcc.dg/altivec-15.c: Likewise.
* gcc.dg/altivec-16.c: Likewise.
* gcc.dg/altivec-17.c: Likewise.
* g++.dg/ext/altivec-1.C: Likewise.
* g++.dg/ext/altivec-2.C: Likewise.
* g++.dg/ext/altivec-3.C: Likewise.
* g++.dg/ext/altivec-4.C: Likewise.
* g++.dg/ext/altivec-5.C: Likewise.
* g++.dg/ext/altivec-6.C: Likewise.
* g++.dg/ext/altivec-7.C: Likewise.
* g++.dg/ext/altivec-8.C: Likewise.
* g++.dg/ext/altivec-9.C: Likewise.
* g++.dg/ext/altivec-10.C: Likewise.
* g++.dg/ext/altivec-11.C: Likewise.
* g++.dg/ext/altivec-12.C: Likewise.
Index: gcc.dg/altivec-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/altivec-1.c,v
retrieving revision 1.4.46.1
diff -c -5 -p -r1.4.46.1 altivec-1.c
*** gcc.dg/altivec-1.c 30 Sep 2004 19:49:44 -0000 1.4.46.1
--- gcc.dg/altivec-1.c 25 Mar 2005 17:41:30 -0000
***************
*** 1,8 ****
/* { dg-do run { target powerpc*-*-* } } */
/* { dg-xfail-if "" { "powerpc-*-eabispe*" "powerpc-ibm-aix*" } { "-maltivec" } { "" } } */
! /* { dg-options "-maltivec" } */
/* Program to test PowerPC AltiVec instructions. */
#include <altivec.h>
#include "altivec_check.h"
--- 1,8 ----
/* { dg-do run { target powerpc*-*-* } } */
/* { dg-xfail-if "" { "powerpc-*-eabispe*" "powerpc-ibm-aix*" } { "-maltivec" } { "" } } */
! /* { dg-options "-mcpu=7400 -maltivec" } */
/* Program to test PowerPC AltiVec instructions. */
#include <altivec.h>
#include "altivec_check.h"
Index: gcc.dg/altivec-10.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/altivec-10.c,v
retrieving revision 1.1.8.2
diff -c -5 -p -r1.1.8.2 altivec-10.c
*** gcc.dg/altivec-10.c 30 Sep 2004 19:49:44 -0000 1.1.8.2
--- gcc.dg/altivec-10.c 25 Mar 2005 17:41:30 -0000
***************
*** 1,8 ****
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-xfail-if "" { "powerpc-ibm-aix*" } { "-maltivec" } { "" } } */
! /* { dg-options "-maltivec -mabi=altivec -fno-inline" } */
#include <altivec.h>
#include <signal.h>
#include "altivec_check.h"
--- 1,8 ----
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-xfail-if "" { "powerpc-ibm-aix*" } { "-maltivec" } { "" } } */
! /* { dg-options "-mcpu=7400 -maltivec -mabi=altivec -fno-inline" } */
#include <altivec.h>
#include <signal.h>
#include "altivec_check.h"
Index: gcc.dg/altivec-11.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/altivec-11.c,v
retrieving revision 1.1.14.3
diff -c -5 -p -r1.1.14.3 altivec-11.c
*** gcc.dg/altivec-11.c 30 Sep 2004 19:49:44 -0000 1.1.14.3
--- gcc.dg/altivec-11.c 25 Mar 2005 17:41:30 -0000
***************
*** 1,8 ****
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-xfail-if "" { "powerpc-ibm-aix*" } { "-maltivec" } { "" } } */
! /* { dg-options "-O2 -maltivec -mabi=altivec" } */
/* { dg-final { scan-assembler-not "lvx" } } */
#include <altivec.h>
void foo (vector int);
void foo_s (vector short);
--- 1,8 ----
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-xfail-if "" { "powerpc-ibm-aix*" } { "-maltivec" } { "" } } */
! /* { dg-options "-O2 -mcpu=7400 -maltivec -mabi=altivec" } */
/* { dg-final { scan-assembler-not "lvx" } } */
#include <altivec.h>
void foo (vector int);
void foo_s (vector short);
Index: gcc.dg/altivec-12.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/altivec-12.c,v
retrieving revision 1.3.14.1
diff -c -5 -p -r1.3.14.1 altivec-12.c
*** gcc.dg/altivec-12.c 30 Sep 2004 19:49:44 -0000 1.3.14.1
--- gcc.dg/altivec-12.c 25 Mar 2005 17:41:30 -0000
***************
*** 1,8 ****
/* { dg-do run { target powerpc*-*-* } } */
/* { dg-xfail-if "" { "powerpc-ibm-aix*" } { "-maltivec" } { "" } } */
! /* { dg-options "-maltivec" } */
/* Program to test PowerPC AltiVec instructions. */
#include <altivec.h>
#include "altivec_check.h"
--- 1,8 ----
/* { dg-do run { target powerpc*-*-* } } */
/* { dg-xfail-if "" { "powerpc-ibm-aix*" } { "-maltivec" } { "" } } */
! /* { dg-options "-mcpu=7400 -maltivec" } */
/* Program to test PowerPC AltiVec instructions. */
#include <altivec.h>
#include "altivec_check.h"
Index: gcc.dg/altivec-13.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/altivec-13.c,v
retrieving revision 1.3.14.1
diff -c -5 -p -r1.3.14.1 altivec-13.c
*** gcc.dg/altivec-13.c 30 Sep 2004 19:49:44 -0000 1.3.14.1
--- gcc.dg/altivec-13.c 25 Mar 2005 17:41:30 -0000
***************
*** 1,8 ****
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-xfail-if "" { "powerpc-ibm-aix*" } { "-maltivec" } { "" } } */
! /* { dg-options "-maltivec" } */
/* Author: Ziemowit Laski <zlaski@apple.com> */
/* This test case exercises intrinsic/argument combinations that,
while not in the Motorola AltiVec PIM, have nevertheless crept
into the AltiVec vernacular over the years. */
--- 1,8 ----
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-xfail-if "" { "powerpc-ibm-aix*" } { "-maltivec" } { "" } } */
! /* { dg-options "-mcpu=7400 -maltivec" } */
/* Author: Ziemowit Laski <zlaski@apple.com> */
/* This test case exercises intrinsic/argument combinations that,
while not in the Motorola AltiVec PIM, have nevertheless crept
into the AltiVec vernacular over the years. */
Index: gcc.dg/altivec-14.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/altivec-14.c,v
retrieving revision 1.2.16.1
diff -c -5 -p -r1.2.16.1 altivec-14.c
*** gcc.dg/altivec-14.c 30 Sep 2004 19:49:44 -0000 1.2.16.1
--- gcc.dg/altivec-14.c 25 Mar 2005 17:41:30 -0000
***************
*** 1,8 ****
/* { dg-do compile { target powerpc-*-* } } */
/* { dg-xfail-if "" { "powerpc-ibm-aix*" } { "-maltivec" } { "" } } */
! /* { dg-options "-maltivec" } */
#include <altivec.h>
vector bool long vbl; /* { dg-warning "use of .long. in AltiVec types is deprecated; use .int." } */
vector signed long vsl; /* { dg-warning "use of .long. in AltiVec types is deprecated; use .int." } */
--- 1,8 ----
/* { dg-do compile { target powerpc-*-* } } */
/* { dg-xfail-if "" { "powerpc-ibm-aix*" } { "-maltivec" } { "" } } */
! /* { dg-options "-mcpu=7400 -maltivec" } */
#include <altivec.h>
vector bool long vbl; /* { dg-warning "use of .long. in AltiVec types is deprecated; use .int." } */
vector signed long vsl; /* { dg-warning "use of .long. in AltiVec types is deprecated; use .int." } */
Index: gcc.dg/altivec-15.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/altivec-15.c,v
retrieving revision 1.3.16.1
diff -c -5 -p -r1.3.16.1 altivec-15.c
*** gcc.dg/altivec-15.c 30 Sep 2004 19:49:44 -0000 1.3.16.1
--- gcc.dg/altivec-15.c 25 Mar 2005 17:41:30 -0000
***************
*** 1,8 ****
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-xfail-if "" { "powerpc-ibm-aix*" } { "-maltivec" } { "" } } */
! /* { dg-options "-maltivec" } */
#include <altivec.h>
/* Test whether the C front-end is not excessively picky about
the integral types and literals that AltiVec instrinsics will
--- 1,8 ----
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-xfail-if "" { "powerpc-ibm-aix*" } { "-maltivec" } { "" } } */
! /* { dg-options "-mcpu=7400 -maltivec" } */
#include <altivec.h>
/* Test whether the C front-end is not excessively picky about
the integral types and literals that AltiVec instrinsics will
Index: gcc.dg/altivec-16.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/altivec-16.c,v
retrieving revision 1.2.18.1
diff -c -5 -p -r1.2.18.1 altivec-16.c
*** gcc.dg/altivec-16.c 30 Sep 2004 19:49:44 -0000 1.2.18.1
--- gcc.dg/altivec-16.c 25 Mar 2005 17:41:30 -0000
***************
*** 1,10 ****
/* This is a compile-only test for interaction of "-maltivec" and "-save-temps". */
/* Author: Ziemowit Laski <zlaski@apple.com>. */
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-xfail-if "" { "powerpc-ibm-aix*" } { "-maltivec" } { "" } } */
! /* { dg-options "-save-temps -maltivec" } */
#include <altivec.h>
#define vector_float vector float
#define vector_float_foo vector float foo
--- 1,10 ----
/* This is a compile-only test for interaction of "-maltivec" and "-save-temps". */
/* Author: Ziemowit Laski <zlaski@apple.com>. */
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-xfail-if "" { "powerpc-ibm-aix*" } { "-maltivec" } { "" } } */
! /* { dg-options "-save-temps -mcpu=7400 -maltivec" } */
#include <altivec.h>
#define vector_float vector float
#define vector_float_foo vector float foo
Index: gcc.dg/altivec-17.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/altivec-17.c,v
retrieving revision 1.1.22.1
diff -c -5 -p -r1.1.22.1 altivec-17.c
*** gcc.dg/altivec-17.c 30 Sep 2004 19:49:44 -0000 1.1.22.1
--- gcc.dg/altivec-17.c 25 Mar 2005 17:41:30 -0000
***************
*** 1,11 ****
/* Verify a statement in the GCC Manual that GCC allows the use of a
typedef name as a vector type specifier. */
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-xfail-if "" { "powerpc-ibm-aix*" } { "-maltivec" } { "" } } */
! /* { dg-options "-maltivec -mabi=altivec" } */
typedef unsigned int ui;
typedef signed char sc;
__vector ui vui;
__vector sc vsc;
--- 1,11 ----
/* Verify a statement in the GCC Manual that GCC allows the use of a
typedef name as a vector type specifier. */
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-xfail-if "" { "powerpc-ibm-aix*" } { "-maltivec" } { "" } } */
! /* { dg-options "-mcpu=7400 -maltivec -mabi=altivec" } */
typedef unsigned int ui;
typedef signed char sc;
__vector ui vui;
__vector sc vsc;
Index: gcc.dg/altivec-2.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/altivec-2.c,v
retrieving revision 1.3.44.1
diff -c -5 -p -r1.3.44.1 altivec-2.c
*** gcc.dg/altivec-2.c 30 Sep 2004 19:49:44 -0000 1.3.44.1
--- gcc.dg/altivec-2.c 25 Mar 2005 17:41:30 -0000
***************
*** 1,7 ****
/* { dg-do compile { target powerpc*-*-* } } */
! /* { dg-options "-maltivec" } */
/* Program to test the vector_size attribute. This needs to run on a
target that has vectors, so use AltiVec. */
#define vector __attribute__((vector_size(16)))
--- 1,7 ----
/* { dg-do compile { target powerpc*-*-* } } */
! /* { dg-options "-mcpu=7400 -maltivec" } */
/* Program to test the vector_size attribute. This needs to run on a
target that has vectors, so use AltiVec. */
#define vector __attribute__((vector_size(16)))
Index: gcc.dg/altivec-3.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/altivec-3.c,v
retrieving revision 1.1.68.1
diff -c -5 -p -r1.1.68.1 altivec-3.c
*** gcc.dg/altivec-3.c 30 Sep 2004 19:49:44 -0000 1.1.68.1
--- gcc.dg/altivec-3.c 25 Mar 2005 17:41:30 -0000
***************
*** 1,8 ****
/* { dg-do run { target powerpc*-*-* } } */
/* { dg-xfail-if "" { "powerpc-*-eabispe*" "powerpc-ibm-aix*" } { "-maltivec" } { "" } } */
! /* { dg-options "-maltivec" } */
#include "altivec_check.h"
typedef int int4 __attribute__ ((vector_size (16)));
typedef float float4 __attribute__ ((vector_size (16)));
--- 1,8 ----
/* { dg-do run { target powerpc*-*-* } } */
/* { dg-xfail-if "" { "powerpc-*-eabispe*" "powerpc-ibm-aix*" } { "-maltivec" } { "" } } */
! /* { dg-options "-mcpu=7400 -maltivec" } */
#include "altivec_check.h"
typedef int int4 __attribute__ ((vector_size (16)));
typedef float float4 __attribute__ ((vector_size (16)));
Index: gcc.dg/altivec-4.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/altivec-4.c,v
retrieving revision 1.6.62.1
diff -c -5 -p -r1.6.62.1 altivec-4.c
*** gcc.dg/altivec-4.c 30 Sep 2004 19:49:44 -0000 1.6.62.1
--- gcc.dg/altivec-4.c 25 Mar 2005 17:41:30 -0000
***************
*** 1,8 ****
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-xfail-if "" { "powerpc-ibm-aix*" } { "-maltivec" } { "" } } */
! /* { dg-options "-maltivec -O0 -Wall" } */
#define vector __attribute__((vector_size(16)))
static int vector x, y;
--- 1,8 ----
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-xfail-if "" { "powerpc-ibm-aix*" } { "-maltivec" } { "" } } */
! /* { dg-options "-mcpu=7400 -maltivec -O0 -Wall" } */
#define vector __attribute__((vector_size(16)))
static int vector x, y;
Index: gcc.dg/altivec-5.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/altivec-5.c,v
retrieving revision 1.1.52.1
diff -c -5 -p -r1.1.52.1 altivec-5.c
*** gcc.dg/altivec-5.c 30 Sep 2004 19:49:44 -0000 1.1.52.1
--- gcc.dg/altivec-5.c 25 Mar 2005 17:41:30 -0000
***************
*** 1,7 ****
/* { dg-do compile { target powerpc*-*-* } } */
! /* { dg-options "-maltivec -O2" } */
#define vector __attribute__((vector_size(16)))
void foo (const unsigned long x,
vector signed int a, vector signed int b)
--- 1,7 ----
/* { dg-do compile { target powerpc*-*-* } } */
! /* { dg-options "-mcpu=7400 -maltivec -O2" } */
#define vector __attribute__((vector_size(16)))
void foo (const unsigned long x,
vector signed int a, vector signed int b)
Index: gcc.dg/altivec-6.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/altivec-6.c,v
retrieving revision 1.4.14.1
diff -c -5 -p -r1.4.14.1 altivec-6.c
*** gcc.dg/altivec-6.c 30 Sep 2004 19:49:44 -0000 1.4.14.1
--- gcc.dg/altivec-6.c 25 Mar 2005 17:41:30 -0000
***************
*** 1,8 ****
/* { dg-do compile { target powerpc-*-* } } */
/* { dg-xfail-if "" { "powerpc-ibm-aix*" } { "-maltivec" } { "" } } */
! /* { dg-options "-maltivec -O0 -Wall" } */
#include <altivec.h>
/* These denote "generic" GCC vectors. */
static int __attribute__((vector_size(16))) x, y;
--- 1,8 ----
/* { dg-do compile { target powerpc-*-* } } */
/* { dg-xfail-if "" { "powerpc-ibm-aix*" } { "-maltivec" } { "" } } */
! /* { dg-options "-mcpu=7400 -maltivec -O0 -Wall" } */
#include <altivec.h>
/* These denote "generic" GCC vectors. */
static int __attribute__((vector_size(16))) x, y;
Index: gcc.dg/altivec-7.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/altivec-7.c,v
retrieving revision 1.1.52.1
diff -c -5 -p -r1.1.52.1 altivec-7.c
*** gcc.dg/altivec-7.c 30 Sep 2004 19:49:44 -0000 1.1.52.1
--- gcc.dg/altivec-7.c 25 Mar 2005 17:41:30 -0000
***************
*** 1,10 ****
/* Origin: Aldy Hernandez <aldyh@redhat.com> */
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-xfail-if "" { "powerpc-ibm-aix*" } { "-maltivec" } { "" } } */
! /* { dg-options "-maltivec" } */
#include <altivec.h>
int **intp;
int *var_int;
--- 1,10 ----
/* Origin: Aldy Hernandez <aldyh@redhat.com> */
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-xfail-if "" { "powerpc-ibm-aix*" } { "-maltivec" } { "" } } */
! /* { dg-options "-mcpu=7400 -maltivec" } */
#include <altivec.h>
int **intp;
int *var_int;
Index: gcc.dg/altivec-8.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/altivec-8.c,v
retrieving revision 1.1.52.1
diff -c -5 -p -r1.1.52.1 altivec-8.c
*** gcc.dg/altivec-8.c 30 Sep 2004 19:49:44 -0000 1.1.52.1
--- gcc.dg/altivec-8.c 25 Mar 2005 17:41:30 -0000
***************
*** 1,11 ****
/* Origin: Aldy Hernandez <aldyh@redhat.com> */
/* Test rs6000_legitimate_address. PRE_INC should be invalid. */
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-xfail-if "" { "powerpc-ibm-aix*" } { "-maltivec" } { "" } } */
! /* { dg-options "-maltivec" } */
#include <altivec.h>
vector signed short *hannah;
--- 1,11 ----
/* Origin: Aldy Hernandez <aldyh@redhat.com> */
/* Test rs6000_legitimate_address. PRE_INC should be invalid. */
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-xfail-if "" { "powerpc-ibm-aix*" } { "-maltivec" } { "" } } */
! /* { dg-options "-mcpu=7400 -maltivec" } */
#include <altivec.h>
vector signed short *hannah;
Index: gcc.dg/altivec-9.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/altivec-9.c,v
retrieving revision 1.1.18.1
diff -c -5 -p -r1.1.18.1 altivec-9.c
*** gcc.dg/altivec-9.c 30 Sep 2004 19:49:44 -0000 1.1.18.1
--- gcc.dg/altivec-9.c 25 Mar 2005 17:41:30 -0000
***************
*** 1,7 ****
/* { dg-do compile { target powerpc*-*-* } } */
! /* { dg-options "-maltivec -mabi=altivec -g" } */
/* PR9564 */
extern int vfork(void);
--- 1,7 ----
/* { dg-do compile { target powerpc*-*-* } } */
! /* { dg-options "-mcpu=7400 -maltivec -mabi=altivec -g" } */
/* PR9564 */
extern int vfork(void);
Index: gcc.dg/altivec-varargs-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/altivec-varargs-1.c,v
retrieving revision 1.2.2.2
diff -c -5 -p -r1.2.2.2 altivec-varargs-1.c
*** gcc.dg/altivec-varargs-1.c 30 Sep 2004 19:49:44 -0000 1.2.2.2
--- gcc.dg/altivec-varargs-1.c 25 Mar 2005 17:41:30 -0000
***************
*** 1,8 ****
/* { dg-do run { target powerpc*-*-* } } */
/* { dg-xfail-if "" { "powerpc-*-eabispe*" "powerpc-ibm-aix*" } { "-maltivec" } { "" } } */
! /* { dg-options "-maltivec -mabi=altivec -fno-inline" } */
#include <stdarg.h>
#include <signal.h>
#include "altivec_check.h"
--- 1,8 ----
/* { dg-do run { target powerpc*-*-* } } */
/* { dg-xfail-if "" { "powerpc-*-eabispe*" "powerpc-ibm-aix*" } { "-maltivec" } { "" } } */
! /* { dg-options "-mcpu=7400 -maltivec -mabi=altivec -fno-inline" } */
#include <stdarg.h>
#include <signal.h>
#include "altivec_check.h"
Index: g++.dg/ext/altivec-1.C
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.dg/ext/altivec-1.C,v
retrieving revision 1.1.16.1
diff -c -5 -p -r1.1.16.1 altivec-1.C
*** g++.dg/ext/altivec-1.C 30 Sep 2004 19:49:41 -0000 1.1.16.1
--- g++.dg/ext/altivec-1.C 25 Mar 2005 17:41:30 -0000
***************
*** 1,8 ****
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-xfail-if "" { "powerpc-ibm-aix*" } { "-maltivec" } { "" } } */
! /* { dg-options "-maltivec" } */
#include <altivec.h>
int main()
{
--- 1,8 ----
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-xfail-if "" { "powerpc-ibm-aix*" } { "-maltivec" } { "" } } */
! /* { dg-options "-mcpu=7400 -maltivec" } */
#include <altivec.h>
int main()
{
Index: g++.dg/ext/altivec-10.C
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.dg/ext/altivec-10.C,v
retrieving revision 1.3.18.1
diff -c -5 -p -r1.3.18.1 altivec-10.C
*** g++.dg/ext/altivec-10.C 30 Sep 2004 19:49:41 -0000 1.3.18.1
--- g++.dg/ext/altivec-10.C 25 Mar 2005 17:41:30 -0000
***************
*** 1,10 ****
/* This is a compile-only test for interaction of "-maltivec" and "-save-temps". */
/* Author: Ziemowit Laski <zlaski@apple.com>. */
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-xfail-if "" { "powerpc-ibm-aix*" } { "-maltivec" } { "" } } */
! /* { dg-options "-save-temps -maltivec" } */
#include <altivec.h>
#define vector_float vector float
#define vector_float_foo vector float foo
--- 1,10 ----
/* This is a compile-only test for interaction of "-maltivec" and "-save-temps". */
/* Author: Ziemowit Laski <zlaski@apple.com>. */
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-xfail-if "" { "powerpc-ibm-aix*" } { "-maltivec" } { "" } } */
! /* { dg-options "-save-temps -mcpu=7400 -maltivec" } */
#include <altivec.h>
#define vector_float vector float
#define vector_float_foo vector float foo
Index: g++.dg/ext/altivec-11.C
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.dg/ext/altivec-11.C,v
retrieving revision 1.2.18.1
diff -c -5 -p -r1.2.18.1 altivec-11.C
*** g++.dg/ext/altivec-11.C 30 Sep 2004 19:49:41 -0000 1.2.18.1
--- g++.dg/ext/altivec-11.C 25 Mar 2005 17:41:30 -0000
***************
*** 1,9 ****
/* Test handling of literal constant for dss operation. */
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-xfail-if "" { "powerpc-ibm-aix*" } { "-maltivec" } { "" } } */
! /* { dg-options "-maltivec" } */
#include <altivec.h>
void
foo ()
--- 1,9 ----
/* Test handling of literal constant for dss operation. */
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-xfail-if "" { "powerpc-ibm-aix*" } { "-maltivec" } { "" } } */
! /* { dg-options "-mcpu=7400 -maltivec" } */
#include <altivec.h>
void
foo ()
Index: g++.dg/ext/altivec-12.C
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.dg/ext/altivec-12.C,v
retrieving revision 1.1.20.1
diff -c -5 -p -r1.1.20.1 altivec-12.C
*** g++.dg/ext/altivec-12.C 30 Sep 2004 19:49:41 -0000 1.1.20.1
--- g++.dg/ext/altivec-12.C 25 Mar 2005 17:41:30 -0000
***************
*** 1,9 ****
/* Test vec_dst* functions with float pointer as first argument. */
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-xfail-if "" { "powerpc-ibm-aix*" } { "-maltivec" } { "" } } */
! /* { dg-options "-maltivec" } */
#include <altivec.h>
extern int i;
extern float *fp;
--- 1,9 ----
/* Test vec_dst* functions with float pointer as first argument. */
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-xfail-if "" { "powerpc-ibm-aix*" } { "-maltivec" } { "" } } */
! /* { dg-options "-mcpu=7400 -maltivec" } */
#include <altivec.h>
extern int i;
extern float *fp;
Index: g++.dg/ext/altivec-2.C
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.dg/ext/altivec-2.C,v
retrieving revision 1.5.10.1
diff -c -5 -p -r1.5.10.1 altivec-2.C
*** g++.dg/ext/altivec-2.C 30 Sep 2004 19:49:41 -0000 1.5.10.1
--- g++.dg/ext/altivec-2.C 25 Mar 2005 17:41:30 -0000
***************
*** 1,8 ****
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-xfail-if "" { "powerpc-ibm-aix*" } { "-maltivec" } { "" } } */
! /* { dg-options "-maltivec -Wall" } */
/* This test checks if AltiVec builtins accept const-qualified
arguments. */
#include <altivec.h>
--- 1,8 ----
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-xfail-if "" { "powerpc-ibm-aix*" } { "-maltivec" } { "" } } */
! /* { dg-options "-mcpu=7400 -maltivec -Wall" } */
/* This test checks if AltiVec builtins accept const-qualified
arguments. */
#include <altivec.h>
Index: g++.dg/ext/altivec-3.C
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.dg/ext/altivec-3.C,v
retrieving revision 1.3.14.1
diff -c -5 -p -r1.3.14.1 altivec-3.C
*** g++.dg/ext/altivec-3.C 30 Sep 2004 19:49:41 -0000 1.3.14.1
--- g++.dg/ext/altivec-3.C 25 Mar 2005 17:41:30 -0000
***************
*** 1,8 ****
/* { dg-do run { target powerpc*-*-* } } */
/* { dg-xfail-if "" { "powerpc-ibm-aix*" } { "-maltivec" } { "" } } */
! /* { dg-options "-maltivec" } */
/* Test for correct handling of AltiVec constants passed
through '...' (va_arg). */
#include <stdarg.h>
--- 1,8 ----
/* { dg-do run { target powerpc*-*-* } } */
/* { dg-xfail-if "" { "powerpc-ibm-aix*" } { "-maltivec" } { "" } } */
! /* { dg-options "-mcpu=7400 -maltivec" } */
/* Test for correct handling of AltiVec constants passed
through '...' (va_arg). */
#include <stdarg.h>
Index: g++.dg/ext/altivec-4.C
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.dg/ext/altivec-4.C,v
retrieving revision 1.3.14.1
diff -c -5 -p -r1.3.14.1 altivec-4.C
*** g++.dg/ext/altivec-4.C 30 Sep 2004 19:49:41 -0000 1.3.14.1
--- g++.dg/ext/altivec-4.C 25 Mar 2005 17:41:30 -0000
***************
*** 1,8 ****
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-xfail-if "" { "powerpc-ibm-aix*" } { "-maltivec" } { "" } } */
! /* { dg-options "-maltivec" } */
/* PR c++/14425 */
#include <altivec.h>
--- 1,8 ----
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-xfail-if "" { "powerpc-ibm-aix*" } { "-maltivec" } { "" } } */
! /* { dg-options "-mcpu=7400 -maltivec" } */
/* PR c++/14425 */
#include <altivec.h>
Index: g++.dg/ext/altivec-5.C
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.dg/ext/altivec-5.C,v
retrieving revision 1.3.14.1
diff -c -5 -p -r1.3.14.1 altivec-5.C
*** g++.dg/ext/altivec-5.C 30 Sep 2004 19:49:41 -0000 1.3.14.1
--- g++.dg/ext/altivec-5.C 25 Mar 2005 17:41:30 -0000
***************
*** 1,8 ****
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-xfail-if "" { "powerpc-ibm-aix*" } { "-maltivec" } { "" } } */
! /* { dg-options "-maltivec" } */
/* PR c++/14426 */
#include <altivec.h>
--- 1,8 ----
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-xfail-if "" { "powerpc-ibm-aix*" } { "-maltivec" } { "" } } */
! /* { dg-options "-mcpu=7400 -maltivec" } */
/* PR c++/14426 */
#include <altivec.h>
Index: g++.dg/ext/altivec-6.C
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.dg/ext/altivec-6.C,v
retrieving revision 1.3.16.1
diff -c -5 -p -r1.3.16.1 altivec-6.C
*** g++.dg/ext/altivec-6.C 30 Sep 2004 19:49:41 -0000 1.3.16.1
--- g++.dg/ext/altivec-6.C 25 Mar 2005 17:41:30 -0000
***************
*** 1,10 ****
/* Test for correct handling of literal arguments. */
/* Author: Ziemowit Laski <zlaski@apple.com> */
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-xfail-if "" { "powerpc-ibm-aix*" } { "-maltivec" } { "" } } */
! /* { dg-options "-maltivec" } */
#include <altivec.h>
void foo(void) {
const unsigned char *buf;
--- 1,10 ----
/* Test for correct handling of literal arguments. */
/* Author: Ziemowit Laski <zlaski@apple.com> */
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-xfail-if "" { "powerpc-ibm-aix*" } { "-maltivec" } { "" } } */
! /* { dg-options "-mcpu=7400 -maltivec" } */
#include <altivec.h>
void foo(void) {
const unsigned char *buf;
Index: g++.dg/ext/altivec-7.C
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.dg/ext/altivec-7.C,v
retrieving revision 1.4.16.1
diff -c -5 -p -r1.4.16.1 altivec-7.C
*** g++.dg/ext/altivec-7.C 30 Sep 2004 19:49:41 -0000 1.4.16.1
--- g++.dg/ext/altivec-7.C 25 Mar 2005 17:41:30 -0000
***************
*** 1,9 ****
/* Test for AltiVec type overloading and name mangling. */
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-xfail-if "" { "powerpc-ibm-aix*" } { "-maltivec" } { "" } } */
! /* { dg-options "-maltivec" } */
#include <altivec.h>
void foo(vector unsigned char) { }
void foo(vector signed char) { }
--- 1,9 ----
/* Test for AltiVec type overloading and name mangling. */
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-xfail-if "" { "powerpc-ibm-aix*" } { "-maltivec" } { "" } } */
! /* { dg-options "-mcpu=7400 -maltivec" } */
#include <altivec.h>
void foo(vector unsigned char) { }
void foo(vector signed char) { }
Index: g++.dg/ext/altivec-8.C
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.dg/ext/altivec-8.C,v
retrieving revision 1.4.14.1
diff -c -5 -p -r1.4.14.1 altivec-8.C
*** g++.dg/ext/altivec-8.C 30 Sep 2004 19:49:41 -0000 1.4.14.1
--- g++.dg/ext/altivec-8.C 25 Mar 2005 17:41:30 -0000
***************
*** 1,8 ****
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-xfail-if "" { "powerpc-ibm-aix*" } { "-maltivec" } { "" } } */
! /* { dg-options "-maltivec" } */
/* Author: Ziemowit Laski <zlaski@apple.com> */
/* This test case exercises intrinsic/argument combinations that,
while not in the Motorola AltiVec PIM, have nevertheless crept
into the AltiVec vernacular over the years. */
--- 1,8 ----
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-xfail-if "" { "powerpc-ibm-aix*" } { "-maltivec" } { "" } } */
! /* { dg-options "-mcpu=7400 -maltivec" } */
/* Author: Ziemowit Laski <zlaski@apple.com> */
/* This test case exercises intrinsic/argument combinations that,
while not in the Motorola AltiVec PIM, have nevertheless crept
into the AltiVec vernacular over the years. */
Index: g++.dg/ext/altivec-9.C
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.dg/ext/altivec-9.C,v
retrieving revision 1.3.14.1
diff -c -5 -p -r1.3.14.1 altivec-9.C
*** g++.dg/ext/altivec-9.C 30 Sep 2004 19:49:41 -0000 1.3.14.1
--- g++.dg/ext/altivec-9.C 25 Mar 2005 17:41:30 -0000
***************
*** 1,9 ****
/* Test for AltiVec function vec_ld, passing a pointer to const vector */
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-xfail-if "" { "powerpc-ibm-aix*" } { "-maltivec" } { "" } } */
! /* { dg-options "-maltivec" } */
#include <altivec.h>
typedef vector unsigned char vuc_t;
const vuc_t* p;
--- 1,9 ----
/* Test for AltiVec function vec_ld, passing a pointer to const vector */
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-xfail-if "" { "powerpc-ibm-aix*" } { "-maltivec" } { "" } } */
! /* { dg-options "-mcpu=7400 -maltivec" } */
#include <altivec.h>
typedef vector unsigned char vuc_t;
const vuc_t* p;