From: Janis Johnson Date: Fri, 23 Jul 2004 18:22:57 +0000 (+0000) Subject: debug-1.c: Use int, not long, in union with vector. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=47120c071d9fc9d6645b7b1febbc416af4b749b4;p=gcc.git debug-1.c: Use int, not long, in union with vector. 2004-07-23 Janis Johnson * gcc.dg/vmx/debug-1.c: Use int, not long, in union with vector. * gcc.dg/vmx/varargs-1.c: Use int, not long, in union with vector. From-SVN: r85086 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index d1f3a8fd562..ffb8606522e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,8 @@ 2004-07-23 Janis Johnson + * gcc.dg/vmx/debug-1.c: Use int, not long, in union with vector. + * gcc.dg/vmx/varargs-1.c: Use int, not long, in union with vector. + * gcc.dg/vmx/ops.c: Remove checks using pointers to long. * gcc.dg/vmx/ops-long-1.c: New test. * gcc.dg/vmx/ops-long-2.c: New test. diff --git a/gcc/testsuite/gcc.dg/vmx/debug-1.c b/gcc/testsuite/gcc.dg/vmx/debug-1.c index 871625d2873..c92435e09cb 100644 --- a/gcc/testsuite/gcc.dg/vmx/debug-1.c +++ b/gcc/testsuite/gcc.dg/vmx/debug-1.c @@ -9,8 +9,8 @@ typedef union { signed char s8[16]; unsigned short u16[8]; signed short s16[8]; - unsigned long u32[4]; - signed long s32[4]; + unsigned int u32[4]; + signed int s32[4]; float f32[4]; } U; U u; diff --git a/gcc/testsuite/gcc.dg/vmx/varargs-1.c b/gcc/testsuite/gcc.dg/vmx/varargs-1.c index 92167c91a3e..9725e76ecc5 100644 --- a/gcc/testsuite/gcc.dg/vmx/varargs-1.c +++ b/gcc/testsuite/gcc.dg/vmx/varargs-1.c @@ -13,10 +13,10 @@ void printx(T a) { union { T v; - unsigned long a[4]; + unsigned int a[4]; } u; u.v = a; - printf("%ld, %ld, %ld, %ld\n", u.a[0], u.a[1], u.a[2], u.a[3]); + printf("%d, %d, %d, %d\n", u.a[0], u.a[1], u.a[2], u.a[3]); } void f1(int a, ...)