Commit 47120c07 by Janis Johnson Committed by Janis Johnson

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
parent 13f91444
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.
......
......@@ -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;
......
......@@ -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, ...)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment