This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] Fix execute/simd-1.c.
- From: Kazu Hirata <kazu at cs dot umass dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 13 Sep 2002 07:41:59 -0400 (EDT)
- Subject: [patch] Fix execute/simd-1.c.
Hi,
Attached is a patch to fix execute/simd-1.c.
On h8300, int can be either 16- or 32-bit. The patch defines siint,
which is always 32-bit int.
OK to apply?
Kazu Hirata
2002-09-13 Kazu Hirata <kazu@cs.umass.edu>
* gcc.c-torture/execute/simd-1.c: Force all use of int to
32-bit int.
Index: simd-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.c-torture/execute/simd-1.c,v
retrieving revision 1.2
diff -u -r1.2 simd-1.c
--- simd-1.c 3 Jul 2002 09:49:46 -0000 1.2
+++ simd-1.c 13 Sep 2002 11:37:02 -0000
@@ -5,6 +5,7 @@
*/
typedef int __attribute__((mode(V4SI))) vecint;
+typedef int __attribute__((mode(SI))) siint;
vecint i = { 150, 100, 150, 200 };
vecint j = { 10, 13, 20, 30 };
@@ -12,13 +13,13 @@
union {
vecint v;
- int i[4];
+ siint i[4];
} res;
/* This should go away once we can use == and != on vector types. */
void
-verify (int a1, int a2, int a3, int a4,
- int b1, int b2, int b3, int b4)
+verify (siint a1, siint a2, siint a3, siint a4,
+ siint b1, siint b2, siint b3, siint b4)
{
if (a1 != b1
|| a2 != b2