diff options
author | Andreas Tobler <a.tobler@schweiz.ch> | 2006-01-01 17:36:56 +0100 |
---|---|---|
committer | Andreas Tobler <andreast@gcc.gnu.org> | 2006-01-01 17:36:56 +0100 |
commit | 893ea23201efa54b71101b59796f381c1668a689 (patch) | |
tree | ad2796159a4654f6195638cac7949f31d9932be0 | |
parent | 07614db8e4e91e5048025a7b0cf0b17f1890c951 (diff) | |
download | gcc-893ea23201efa54b71101b59796f381c1668a689.zip gcc-893ea23201efa54b71101b59796f381c1668a689.tar.gz gcc-893ea23201efa54b71101b59796f381c1668a689.tar.bz2 |
darwin-abi-3.c: New file.
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.
Co-Authored-By: Andrew Pinski <pinskia@physics.uc.edu>
From-SVN: r109223
-rw-r--r-- | gcc/testsuite/ChangeLog | 13 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/powerpc/darwin-abi-10.c | 26 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/powerpc/darwin-abi-11.c | 32 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/powerpc/darwin-abi-3.c | 11 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/powerpc/darwin-abi-4.c | 10 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/powerpc/darwin-abi-5.c | 30 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/powerpc/darwin-abi-6.c | 20 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/powerpc/darwin-abi-7.c | 18 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/powerpc/darwin-abi-8.c | 18 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/powerpc/darwin-abi-9.c | 25 |
10 files changed, 203 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 0c32f9f..9e9c2b1 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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 index 0000000..0247c47 --- /dev/null +++ b/gcc/testsuite/gcc.target/powerpc/darwin-abi-10.c @@ -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 index 0000000..bc5f501 --- /dev/null +++ b/gcc/testsuite/gcc.target/powerpc/darwin-abi-11.c @@ -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 index 0000000..008ea46 --- /dev/null +++ b/gcc/testsuite/gcc.target/powerpc/darwin-abi-3.c @@ -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 index 0000000..d146c46 --- /dev/null +++ b/gcc/testsuite/gcc.target/powerpc/darwin-abi-4.c @@ -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 index 0000000..4965c5b --- /dev/null +++ b/gcc/testsuite/gcc.target/powerpc/darwin-abi-5.c @@ -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 index 0000000..4d80187 --- /dev/null +++ b/gcc/testsuite/gcc.target/powerpc/darwin-abi-6.c @@ -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 index 0000000..d9ecee9 --- /dev/null +++ b/gcc/testsuite/gcc.target/powerpc/darwin-abi-7.c @@ -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 index 0000000..b8e0c4d --- /dev/null +++ b/gcc/testsuite/gcc.target/powerpc/darwin-abi-8.c @@ -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 index 0000000..7f215df --- /dev/null +++ b/gcc/testsuite/gcc.target/powerpc/darwin-abi-9.c @@ -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]; |