mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-10 21:41:14 +08:00
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:
parent
13f914441a
commit
47120c071d
@ -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.
|
||||
|
@ -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, ...)
|
||||
|
Loading…
x
Reference in New Issue
Block a user