debug-1.c: Use int, not long, in union with vector.

2004-07-23  Janis Johnson  <janis187@us.ibm.com>

	* 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
This commit is contained in:
Janis Johnson 2004-07-23 18:22:57 +00:00 committed by Janis Johnson
parent 13f914441a
commit 47120c071d
3 changed files with 7 additions and 4 deletions

View File

@ -1,5 +1,8 @@
2004-07-23 Janis Johnson <janis187@us.ibm.com>
* 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.

View File

@ -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;

View File

@ -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, ...)