Commit b9eef878 by Janis Johnson Committed by Janis Johnson

varargs-4.c: Remove a Darwin-specific check.

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

	* gcc.dg/vmx/varargs-4.c: Remove a Darwin-specific check.
	* gcc.dg/darwin-abi-3.c: New test.

From-SVN: r85087
parent 47120c07
2004-07-23 Janis Johnson <janis187@us.ibm.com>
* gcc.dg/vmx/varargs-4.c: Remove a Darwin-specific check.
* gcc.dg/darwin-abi-3.c: New test.
* 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.
......
/* { dg-do run { target powerpc*-*-darwin* } } */
/* This check was originally in test vmx/varargs-4.c. It does not
match the expected behavior according to the PowerPC-64 ELF ABI. */
#include <altivec.h>
extern void abort (void);
extern void exit (int);
typedef struct n_a
{
signed char m1;
short m2;
int m3;
double m4;
vector float m5;
}
n_a;
typedef struct n_a_x
{
n_a b;
char a;
}
n_a_x;
int
main ()
{
if (sizeof (n_a_x) - sizeof (n_a) != sizeof (n_a))
abort ();
exit (0);
}
......@@ -13,13 +13,6 @@ typedef struct n_a
}
n_a;
typedef struct n_a_x
{
n_a b;
char a;
}
n_a_x;
static n_a gn_a;
static int
......@@ -103,7 +96,6 @@ initn_a(signed char p1, short p2, int p3, double p4, vector float p5)
"i.m5");
check(sizeof(n_a) == 32, "sizeof(n_a)");
check(sizeof(n_a_x) - sizeof(n_a) == 32, "align(n_a_x)");
check(offsetof(n_a, m1) == 0, "offsetof(m1)");
check(offsetof(n_a, m2) == 2, "offsetof(m2)");
......
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