From 14ab1eaf2a303262fb2b11ee456eb5b984b83c65 Mon Sep 17 00:00:00 2001 From: Georg-Johann Lay Date: Mon, 22 Jul 2013 08:35:18 +0000 Subject: [PATCH] re PR testsuite/52641 (Test cases fail for 16-bit int targets) PR testsuite/52641 * gcc.c-torture/execute/pr57344-2.x: New. Skip int16. * gcc.dg/pr53265.c: Add dg-require-effective-target size32plus. * gcc.dg/torture/pr53366-1.c: Same. * gcc.dg/torture/pr57381.c: Add dg-require-effective-target int32plus. * gcc.dg/torture/pr56488.c: Same. * gcc.dg/torture/pr57584.c: Same. * gcc.dg/tree-ssa/pr57385.c: Same. * gcc.dg/pr57154.c: Add dg-require-effective-target scheduling. From-SVN: r201119 --- gcc/testsuite/ChangeLog | 12 ++++++++++++ gcc/testsuite/gcc.c-torture/execute/pr57344-2.x | 7 +++++++ gcc/testsuite/gcc.dg/pr53265.c | 1 + gcc/testsuite/gcc.dg/torture/pr53366-1.c | 1 + gcc/testsuite/gcc.dg/torture/pr56488.c | 1 + gcc/testsuite/gcc.dg/torture/pr57381.c | 1 + gcc/testsuite/gcc.dg/torture/pr57584.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/pr57385.c | 1 + 8 files changed, 25 insertions(+) create mode 100644 gcc/testsuite/gcc.c-torture/execute/pr57344-2.x diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 4d4ba1d..1a81260 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,15 @@ +2013-07-22 Georg-Johann Lay + + PR testsuite/52641 + * gcc.c-torture/execute/pr57344-2.x: New. Skip int16. + * gcc.dg/pr53265.c: Add dg-require-effective-target size32plus. + * gcc.dg/torture/pr53366-1.c: Same. + * gcc.dg/torture/pr57381.c: Add dg-require-effective-target int32plus. + * gcc.dg/torture/pr56488.c: Same. + * gcc.dg/torture/pr57584.c: Same. + * gcc.dg/tree-ssa/pr57385.c: Same. + * gcc.dg/pr57154.c: Add dg-require-effective-target scheduling. + 2013-07-21 Ondřej Bílka * c-c++-common/pr41779.c: Fix typos. diff --git a/gcc/testsuite/gcc.c-torture/execute/pr57344-2.x b/gcc/testsuite/gcc.c-torture/execute/pr57344-2.x new file mode 100644 index 0000000..121fcfe --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/pr57344-2.x @@ -0,0 +1,7 @@ +load_lib target-supports.exp + +if { [check_effective_target_int16] } { + return 1 +} + +return 0; diff --git a/gcc/testsuite/gcc.dg/pr53265.c b/gcc/testsuite/gcc.dg/pr53265.c index 7016446..79d4056 100644 --- a/gcc/testsuite/gcc.dg/pr53265.c +++ b/gcc/testsuite/gcc.dg/pr53265.c @@ -1,6 +1,7 @@ /* PR tree-optimization/53265 */ /* { dg-do compile } */ /* { dg-options "-O2 -Wall" } */ +/* { dg-require-effective-target size32plus } */ void bar (void *); int baz (int); diff --git a/gcc/testsuite/gcc.dg/torture/pr53366-1.c b/gcc/testsuite/gcc.dg/torture/pr53366-1.c index 631d051..d70eae8 100644 --- a/gcc/testsuite/gcc.dg/torture/pr53366-1.c +++ b/gcc/testsuite/gcc.dg/torture/pr53366-1.c @@ -1,5 +1,6 @@ /* PR tree-optimization/53366 */ /* { dg-do run { target { size32plus } } } */ +/* { dg-require-effective-target size32plus } */ extern void abort (void); diff --git a/gcc/testsuite/gcc.dg/torture/pr56488.c b/gcc/testsuite/gcc.dg/torture/pr56488.c index cb64413..94add8d 100644 --- a/gcc/testsuite/gcc.dg/torture/pr56488.c +++ b/gcc/testsuite/gcc.dg/torture/pr56488.c @@ -1,4 +1,5 @@ /* { dg-do run { target { size32plus } } } */ +/* { dg-require-effective-target int32plus } */ int a, c, d = 1; struct S { int s; } b, f; diff --git a/gcc/testsuite/gcc.dg/torture/pr57381.c b/gcc/testsuite/gcc.dg/torture/pr57381.c index c0172b3..ff6550a 100644 --- a/gcc/testsuite/gcc.dg/torture/pr57381.c +++ b/gcc/testsuite/gcc.dg/torture/pr57381.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-require-effective-target int32plus } */ struct S0 { int f0, f1, f2; }; diff --git a/gcc/testsuite/gcc.dg/torture/pr57584.c b/gcc/testsuite/gcc.dg/torture/pr57584.c index dd62cf8..0e5a294 100644 --- a/gcc/testsuite/gcc.dg/torture/pr57584.c +++ b/gcc/testsuite/gcc.dg/torture/pr57584.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-require-effective-target int32plus } */ typedef int int32_t; typedef unsigned char uint8_t; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr57385.c b/gcc/testsuite/gcc.dg/tree-ssa/pr57385.c index fc21461..a1f001d 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr57385.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr57385.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O1" } */ +/* { dg-require-effective-target int32plus } */ int c; -- 2.7.4