* gcc.dg/pr32912-2.c: Ditto.
* gcc.dg/pr35065.c: Ditto.
* gcc.dg/pr36300-1.c: Ditto.
* gcc.dg/pr36300-2.c: Ditto.
* gcc.dg/pr27639.c: Reduce array size for small int target.
* gcc.dg/pr28755.c: Skip test if pointers are smaller than 32 bits.
* gcc.dg/pr36194.c: Reduce constant on small int target.
* gcc.dg/torture/builtin-frexp-1.c: Ditto.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@136302
138bc75d-0d04-0410-961f-
82ee72b054a4
2008-06-02 Andy Hutchinson <hutchinsonandy@aim.com>
+ * gcc.dg/pr18241-1.c: Use long on small int target.
+ * gcc.dg/pr32912-2.c: Ditto.
+ * gcc.dg/pr35065.c: Ditto.
+ * gcc.dg/pr36300-1.c: Ditto.
+ * gcc.dg/pr36300-2.c: Ditto.
+ * gcc.dg/pr27639.c: Reduce array size for small int target.
+ * gcc.dg/pr28755.c: Skip test if pointers are smaller than 32 bits.
+ * gcc.dg/pr36194.c: Reduce constant on small int target.
+ * gcc.dg/torture/builtin-frexp-1.c: Ditto.
+
+2008-06-02 Andy Hutchinson <hutchinsonandy@aim.com>
+
* gcc.dg/torture/pr34330.c: Skip test for targets without pthread.
* gcc.dg/torture/pr36244.c: Ditto.
* gcc.dg/tree-ssa/pr36181.c: Ditto.
{
int nr;
volatile unsigned long *addr;
+#if(__SIZEOF_INT__ >= 4)
int mask;
+#else
+ long mask;
+#endif
nr = offset;
addr = &node->tags[tag][0];
/* { dg-do compile } */
/* { dg-options "-O2 -std=c99" } */
-
+#if(__SIZEOF_INT__ >= 4)
char heap[50000];
-
+#else
+char heap[32000];
+#endif
int
main ()
{
/* PR middle-end/28755 */
/* { dg-do compile } */
+/* { dg-require-effective-target ptr32plus } */
/* { dg-options "-Os" } */
/* { dg-final { scan-assembler-times "2112543726\|7deadbee" 2 } } */
extern void abort (void);
+#if(__SIZEOF_INT__ >= 4)
typedef int __m128i __attribute__ ((__vector_size__ (16)));
-
+#else
+typedef long __m128i __attribute__ ((__vector_size__ (16)));
+#endif
__m128i
foo (void)
{
int
main (void)
{
+#if(__SIZEOF_INT__ >= 4)
union { __m128i v; int i[sizeof (__m128i) / sizeof (int)]; } u, v;
+#else
+ union { __m128i v; long i[sizeof (__m128i) / sizeof (long)]; } u, v;
+#endif
int i;
u.v = foo ();
typedef __SIZE_TYPE__ size_t;
typedef struct vlc_object_t vlc_object_t;
typedef long long int64_t;
+#if(__SIZEOF_INT__ >= 4)
typedef unsigned int uint32_t;
+#else
+typedef unsigned long uint32_t;
+#endif
typedef unsigned char uint8_t;
typedef int64_t mtime_t;
typedef uint32_t vlc_fourcc_t;
__attribute__ ((noinline)) void
f (int i)
{
+#if(__SIZEOF_INT__ >= 4)
if (i != 0x87654321)
+#else
+ if (i != 0x4321)
+#endif
abort ();
asm ("");
}
int main(void)
{
- int U1;
long long Y, Y2;
+#if(__SIZEOF_INT__ >= 4)
+ int U1;
+#else
+ long U1;
+#endif
int t;
-
U1 = -2147483647-1;
Y = ((long long)(VALUE * VALUE) * 3);
int main(void)
{
- int U1;
long long Y, Y2;
+#if(__SIZEOF_INT__ >= 4)
+ int U1;
+#else
+ long U1;
+#endif
unsigned int t;
U1 = -2147483647-1;
/* Test that frexp(ARG,&i) == RES && i == EXP. Check the sign in
case we get -0.0. */
#define TESTIT_FREXP(ARG,RES,EXP) do { \
- int i = 123456; \
+ int i = 12345; \
if (__builtin_frexpf(ARG##f,&i) != RES##f \
|| CKEXP(i,EXP) \
|| CKSGN_F(__builtin_frexpf(ARG##f,&i),RES##f)) \
link_error(__LINE__); \
- i = 123456; \
+ i = 12345; \
if (__builtin_frexp(ARG,&i) != RES \
|| CKEXP(i,EXP) \
|| CKSGN(__builtin_frexp(ARG,&i),RES)) \
link_error(__LINE__); \
- i = 123456; \
+ i = 12345; \
if (__builtin_frexpl(ARG##l,&i) != RES##l \
|| CKEXP(i,EXP) \
|| CKSGN_L(__builtin_frexpl(ARG##l,&i),RES##l)) \