aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2005-01-11 13:02:43 +0000
committerAlan Modra <amodra@gcc.gnu.org>2005-01-11 23:32:43 +1030
commita969c1d23b142de977b07ce0d7a018fb4aab3893 (patch)
tree0e932b6e792c287f435aa7e1363b97e00f26c64d /gcc/testsuite
parent464b277ba2697cc48d75cc5a343f4209338291d5 (diff)
downloadgcc-a969c1d23b142de977b07ce0d7a018fb4aab3893.zip
gcc-a969c1d23b142de977b07ce0d7a018fb4aab3893.tar.gz
gcc-a969c1d23b142de977b07ce0d7a018fb4aab3893.tar.bz2
altivec-3.C (baz, baz2): Check one component of structs at a time.
* g++.dg/ext/altivec-3.C (baz, baz2): Check one component of structs at a time. * g++.dg/ext/altivec_check.h: Support compiling as C. From-SVN: r93184
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog6
-rw-r--r--gcc/testsuite/g++.dg/ext/altivec-3.C12
-rw-r--r--gcc/testsuite/g++.dg/ext/altivec_check.h6
3 files changed, 20 insertions, 4 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 1bfdfb8..a280105 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2005-01-11 Alan Modra <amodra@bigpond.net.au>
+
+ * g++.dg/ext/altivec-3.C (baz, baz2): Check one component of structs
+ at a time.
+ * g++.dg/ext/altivec_check.h: Support compiling as C.
+
2005-01-10 Roger Sayle <roger@eyesopen.com>
PR c++/19355
diff --git a/gcc/testsuite/g++.dg/ext/altivec-3.C b/gcc/testsuite/g++.dg/ext/altivec-3.C
index a5e7308..f2812fc 100644
--- a/gcc/testsuite/g++.dg/ext/altivec-3.C
+++ b/gcc/testsuite/g++.dg/ext/altivec-3.C
@@ -75,11 +75,15 @@ void baz (int i, ... )
CHECK_INVARIANT (vec_all_eq (v_i, v_g));
CHECK_INVARIANT (j == i_1);
- CHECK_INVARIANT (vx.x == vx_g.x && vec_all_eq(vx.v, vx_g.v) && vx.y == vx_g.y);
+ CHECK_INVARIANT (vx.x == vx_g.x);
+ CHECK_INVARIANT (vec_all_eq (vx.v, vx_g.v));
+ CHECK_INVARIANT (vx.y == vx_g.y);
CHECK_INVARIANT (k == i_1);
CHECK_INVARIANT (vec_all_eq (v2_i, v2_g));
CHECK_INVARIANT (l == i_1);
- CHECK_INVARIANT (vx2.x == vx2_g.x && vec_all_eq(vx2.v, vx2_g.v) && vx2.y == vx2_g.y);
+ CHECK_INVARIANT (vx2.x == vx2_g.x);
+ CHECK_INVARIANT (vec_all_eq (vx2.v, vx2_g.v));
+ CHECK_INVARIANT (vx2.y == vx2_g.y);
}
void quux (int i, ... )
@@ -110,7 +114,9 @@ void baz2 (int i, ... )
va_end(ap);
vxi.v = vx.v;
- CHECK_INVARIANT (vx.x == vx_g.x && vec_all_eq(vx.v, vx_g.v) && vx.y == vx_g.y);
+ CHECK_INVARIANT (vx.x == vx_g.x);
+ CHECK_INVARIANT (vec_all_eq (vx.v, vx_g.v));
+ CHECK_INVARIANT (vx.y == vx_g.y);
CHECK_INVARIANT (vec_all_eq (vxi.v, vx_g.v));
}
diff --git a/gcc/testsuite/g++.dg/ext/altivec_check.h b/gcc/testsuite/g++.dg/ext/altivec_check.h
index 234af02..9e8b3f7 100644
--- a/gcc/testsuite/g++.dg/ext/altivec_check.h
+++ b/gcc/testsuite/g++.dg/ext/altivec_check.h
@@ -2,7 +2,11 @@
/* Contributed by Ziemowit Laski <zlaski@apple.com> */
#include <signal.h>
-extern "C" void exit(int);
+extern
+#ifdef __cplusplus
+"C"
+#endif
+void exit(int);
void
sig_ill_handler (int sig)