[patch] builtin-bitops-1.x: Disable on H8.
Kazu Hirata
kazu@cs.umass.edu
Sun Feb 2 20:51:00 GMT 2003
Hi Richard,
> > Attached is a patch to disable builtin-bitops-1.x on H8 as long long
> > is not supported on H8 yet. OK to apply?
>
> Please rearrnge the test case such that a 32-bit long long
> is handled. This should be done as with the 32/64-bit long case.
Do you mean something like this?
This particular test case has been tested on h8300 port.
Kazu Hirata
2003-02-02 Kazu Hirata <kazu@cs.umass.edu>
* gcc.c-torture/execute/builtin-bitops-1.c: Test the long long
case only when the size of long long is larger than that of
long.
Index: builtin-bitops-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.c-torture/execute/builtin-bitops-1.c,v
retrieving revision 1.1
diff -u -r1.1 builtin-bitops-1.c
--- builtin-bitops-1.c 1 Feb 2003 19:00:02 -0000 1.1
+++ builtin-bitops-1.c 2 Feb 2003 20:46:46 -0000
@@ -48,7 +48,9 @@
MAKE_FUNS (, unsigned);
MAKE_FUNS (l, unsigned long);
+#if __LONG_LONG_MAX__ > __LONG_MAX__
MAKE_FUNS (ll, unsigned long long);
+#endif
extern void abort (void);
extern void exit (int);
@@ -96,7 +98,9 @@
NUMS32;
#endif
+#if __LONG_LONG_MAX__ > __LONG_MAX__
unsigned long long longlongs[] = NUMS64;
+#endif
#define N(table) (sizeof (table) / sizeof (table[0]))
@@ -137,6 +141,7 @@
abort ();
}
+#if __LONG_LONG_MAX__ > __LONG_MAX__
for (i = 0; i < N(longlongs); i++)
{
if (__builtin_ffsll (longlongs[i]) != my_ffsll (longlongs[i]))
@@ -152,6 +157,7 @@
if (__builtin_parityll (longlongs[i]) != my_parityll (longlongs[i]))
abort ();
}
+#endif
/* Test constant folding. */
@@ -180,6 +186,7 @@
TEST(0x0000cafeUL,);
TEST(0xffffffffUL,);
+#if __LONG_LONG_MAX__ > __LONG_MAX__
TEST(0x0000000000000000ULL, ll);
TEST(0x0000000000000001ULL, ll);
TEST(0x8000000000000000ULL, ll);
@@ -193,6 +200,7 @@
TEST(0x0000cafecafe0000ULL, ll);
TEST(0x00000000cafecafeULL, ll);
TEST(0xffffffffffffffffULL, ll);
+#endif
exit (0);
}
More information about the Gcc-patches
mailing list