2006-01-01 Andreas Tobler <a.tobler@schweiz.ch>
authorandreast <andreast@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 1 Jan 2006 16:36:56 +0000 (16:36 +0000)
committerandreast <andreast@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 1 Jan 2006 16:36:56 +0000 (16:36 +0000)
    Andrew Pinski <pinskia@physics.uc.edu>

* gcc.target/powerpc/darwin-abi-3.c: New file.
* gcc.target/powerpc/darwin-abi-4.c: Likewise.
* gcc.target/powerpc/darwin-abi-5.c: Likewise.
* gcc.target/powerpc/darwin-abi-6.c: Likewise.
* gcc.target/powerpc/darwin-abi-7.c: Likewise.
* gcc.target/powerpc/darwin-abi-8.c: Likewise.
* gcc.target/powerpc/darwin-abi-9.c: Likewise.
* gcc.target/powerpc/darwin-abi-10.c: Likewise.
* gcc.target/powerpc/darwin-abi-11.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@109223 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/darwin-abi-10.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/darwin-abi-11.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/darwin-abi-3.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/darwin-abi-4.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/darwin-abi-5.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/darwin-abi-6.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/darwin-abi-7.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/darwin-abi-8.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/darwin-abi-9.c [new file with mode: 0644]

index 0c32f9f..9e9c2b1 100644 (file)
@@ -1,3 +1,16 @@
+2006-01-01  Andreas Tobler  <a.tobler@schweiz.ch>
+           Andrew Pinski <pinskia@physics.uc.edu>
+
+       * gcc.target/powerpc/darwin-abi-3.c: New file.
+       * gcc.target/powerpc/darwin-abi-4.c: Likewise.
+       * gcc.target/powerpc/darwin-abi-5.c: Likewise.
+       * gcc.target/powerpc/darwin-abi-6.c: Likewise.
+       * gcc.target/powerpc/darwin-abi-7.c: Likewise.
+       * gcc.target/powerpc/darwin-abi-8.c: Likewise.
+       * gcc.target/powerpc/darwin-abi-9.c: Likewise.
+       * gcc.target/powerpc/darwin-abi-10.c: Likewise.
+       * gcc.target/powerpc/darwin-abi-11.c: Likewise.
+
 2006-01-01  Daniel Berlin  <dberlin@dberlin.org>
 
        * gcc.dg/tree-ssa/loadpre1.c: New;
diff --git a/gcc/testsuite/gcc.target/powerpc/darwin-abi-10.c b/gcc/testsuite/gcc.target/powerpc/darwin-abi-10.c
new file mode 100644 (file)
index 0000000..0247c47
--- /dev/null
@@ -0,0 +1,26 @@
+/* { dg-do compile { target powerpc*-*-darwin* } } */
+/* { dg-require-effective-target ilp32 } */
+/* { dg-xfail-if "" { powerpc*-*-darwin* } } */
+/* { dg-options "-Wno-long-long" } */
+
+struct b
+{
+  long long t;
+  int i;
+};
+
+struct c
+{
+  double d;
+  int i;
+};
+
+struct n
+{
+  long long ll;
+  int tt;
+  struct c d;
+  struct b h;
+  int t;
+};
+int f[sizeof(struct n)!=48?-1:1];
diff --git a/gcc/testsuite/gcc.target/powerpc/darwin-abi-11.c b/gcc/testsuite/gcc.target/powerpc/darwin-abi-11.c
new file mode 100644 (file)
index 0000000..bc5f501
--- /dev/null
@@ -0,0 +1,32 @@
+/* { dg-do compile { target powerpc*-*-darwin* } } */
+/* { dg-require-effective-target ilp32 } */
+/* { dg-xfail-if "" { powerpc*-*-darwin* } } */
+/* { dg-options "-Wno-long-long" } */
+
+struct A
+{
+  long long a;
+  unsigned char b;
+};
+
+struct D
+{
+  unsigned char y;
+  struct A x;
+  unsigned char z;
+};
+
+struct E
+{
+  long long d;
+  unsigned char e;
+};
+
+struct y
+{
+  struct A b2;
+  struct D b3;
+  struct E b4;
+};
+
+int f[sizeof(struct y)!=56?-1:1];
diff --git a/gcc/testsuite/gcc.target/powerpc/darwin-abi-3.c b/gcc/testsuite/gcc.target/powerpc/darwin-abi-3.c
new file mode 100644 (file)
index 0000000..008ea46
--- /dev/null
@@ -0,0 +1,11 @@
+/* { dg-do compile { target powerpc*-*-darwin* } } */
+/* { dg-require-effective-target ilp32 } */
+/* { dg-xfail-if "" { powerpc*-*-darwin* } } */
+/* { dg-options "-Wno-long-long" } */
+struct f
+{
+  int i;
+  long long ll;
+};
+
+int f[sizeof(struct f)!=12?-1:1];
diff --git a/gcc/testsuite/gcc.target/powerpc/darwin-abi-4.c b/gcc/testsuite/gcc.target/powerpc/darwin-abi-4.c
new file mode 100644 (file)
index 0000000..d146c46
--- /dev/null
@@ -0,0 +1,10 @@
+/* { dg-do compile { target powerpc*-*-darwin* } } */
+/* { dg-require-effective-target ilp32 } */
+/* { dg-options "-Wno-long-long" } */
+struct f
+{
+  long long ll;
+  int i;
+};
+
+int f[sizeof(struct f)!=16?-1:1];
diff --git a/gcc/testsuite/gcc.target/powerpc/darwin-abi-5.c b/gcc/testsuite/gcc.target/powerpc/darwin-abi-5.c
new file mode 100644 (file)
index 0000000..4965c5b
--- /dev/null
@@ -0,0 +1,30 @@
+/* { dg-do compile { target powerpc*-*-darwin* } } */
+/* { dg-require-effective-target ilp32 } */
+/* { dg-options "-Wno-long-long" } */
+
+struct A
+{
+  long long a;
+  unsigned char b;
+};
+
+struct B
+{
+  struct A x;
+  unsigned char z;
+};
+
+struct C
+{
+  long d;
+  unsigned char e;
+};
+
+struct z
+{ 
+  struct A b2;
+  struct B b3;
+  struct C b4;
+};
+
+int f[sizeof(struct z)!=48?-1:1];
diff --git a/gcc/testsuite/gcc.target/powerpc/darwin-abi-6.c b/gcc/testsuite/gcc.target/powerpc/darwin-abi-6.c
new file mode 100644 (file)
index 0000000..4d80187
--- /dev/null
@@ -0,0 +1,20 @@
+/* { dg-do compile { target powerpc*-*-darwin* } } */
+/* { dg-require-effective-target ilp32 } */
+/* { dg-xfail-if "" { powerpc*-*-darwin* } } */
+/* { dg-options "-Wno-long-long" } */
+
+struct a
+{
+  int tt;
+  long long t;
+  int i;
+};
+
+struct g
+{
+  int tt;
+  struct a d;
+  int t;
+};
+
+int f[sizeof(struct g)!=24?-1:1];
diff --git a/gcc/testsuite/gcc.target/powerpc/darwin-abi-7.c b/gcc/testsuite/gcc.target/powerpc/darwin-abi-7.c
new file mode 100644 (file)
index 0000000..d9ecee9
--- /dev/null
@@ -0,0 +1,18 @@
+/* { dg-do compile { target powerpc*-*-darwin* } } */
+/* { dg-require-effective-target ilp32 } */
+/* { dg-xfail-if "" { powerpc*-*-darwin* } } */
+/* { dg-options "-Wno-long-long" } */
+
+struct b
+{
+  long long t;
+  int i;
+};
+struct h
+{
+  int tt;
+  struct b d;
+  int t;
+};
+
+int f[sizeof(struct h)!=24?-1:1];
diff --git a/gcc/testsuite/gcc.target/powerpc/darwin-abi-8.c b/gcc/testsuite/gcc.target/powerpc/darwin-abi-8.c
new file mode 100644 (file)
index 0000000..b8e0c4d
--- /dev/null
@@ -0,0 +1,18 @@
+/* { dg-do compile { target powerpc*-*-darwin* } } */
+/* { dg-require-effective-target ilp32 } */
+/* { dg-xfail-if "" { powerpc*-*-darwin* } } */
+
+struct c
+{
+  double d;
+  int i;
+};
+
+struct j
+{
+  int tt;
+  struct c d;
+  int t;
+};
+
+int f[sizeof(struct j)!=24?-1:1];
diff --git a/gcc/testsuite/gcc.target/powerpc/darwin-abi-9.c b/gcc/testsuite/gcc.target/powerpc/darwin-abi-9.c
new file mode 100644 (file)
index 0000000..7f215df
--- /dev/null
@@ -0,0 +1,25 @@
+/* { dg-do compile { target powerpc*-*-darwin* } } */
+/* { dg-require-effective-target ilp32 } */
+/* { dg-xfail-if "" { powerpc*-*-darwin* } } */
+/* { dg-options "-Wno-long-long" } */
+
+struct b
+{
+  long long t;
+  int i;
+};
+
+struct l
+{
+  int i;
+  double d;
+};
+struct k
+{
+  int tt;
+  struct l d;
+  struct b h;
+  int t;
+};
+
+int f[sizeof(struct k)!=36?-1:1];