diff options
author | Georg-Johann Lay <avr@gjlay.de> | 2023-05-22 16:21:58 +0200 |
---|---|---|
committer | Georg-Johann Lay <avr@gjlay.de> | 2023-05-22 16:22:30 +0200 |
commit | a8900fe4812f6b77d1349308bb4de08f7c130225 (patch) | |
tree | 01e1e4066a5bd08228489c7585f57d31cf0b0176 /gcc | |
parent | 776d94f0b14235bf85d0cce4020eea86a20c91f7 (diff) | |
download | gcc-a8900fe4812f6b77d1349308bb4de08f7c130225.zip gcc-a8900fe4812f6b77d1349308bb4de08f7c130225.tar.gz gcc-a8900fe4812f6b77d1349308bb4de08f7c130225.tar.bz2 |
Skip some tests that won't work for target AVR.
gcc/testsuite/
* lib/target-supports.exp (check_effective_target_lra) [avr]: Return 0.
* gcc.dg/pr19402-2.c: Skip for avr.
* gcc.dg/pr86124.c: Same.
* gcc.dg/pr94291.c: Same.
* gcc.dg/torture/builtin-complex-1.c: Same.
* gcc.dg/torture/fp-int-convert-float32x-timode.c: Same.
* gcc.dg/torture/fp-int-convert-float32x.c: Same.
* gcc.dg/torture/fp-int-convert-float64-timode.c: Same.
* gcc.dg/torture/fp-int-convert-float64.c: Same.
* gcc.dg/torture/fp-int-convert-long-double.c: Same.
* gcc.dg/torture/fp-int-convert-timode.c: Same.
* c-c++-common/torture/builtin-convertvector-1.c: Same.
* c-c++-common/torture/complex-sign-add.c: Same.
* c-c++-common/torture/complex-sign-mixed-add.c: Same.
* c-c++-common/torture/complex-sign-mixed-div.c: Same.
* c-c++-common/torture/complex-sign-mixed-mul.c: Same.
* c-c++-common/torture/complex-sign-mixed-sub.c: Same.
* c-c++-common/torture/complex-sign-mul-minus-one.c: Same.
* c-c++-common/torture/complex-sign-mul-one.c: Same.
* c-c++-common/torture/complex-sign-mul.c: Same.
* c-c++-common/torture/complex-sign-sub.c: Same.
Diffstat (limited to 'gcc')
21 files changed, 22 insertions, 1 deletions
diff --git a/gcc/testsuite/c-c++-common/torture/builtin-convertvector-1.c b/gcc/testsuite/c-c++-common/torture/builtin-convertvector-1.c index 347dda7..fababf1 100644 --- a/gcc/testsuite/c-c++-common/torture/builtin-convertvector-1.c +++ b/gcc/testsuite/c-c++-common/torture/builtin-convertvector-1.c @@ -1,3 +1,5 @@ +/* { dg-skip-if "double support is incomplete" { "avr-*-*" } } */ + extern #ifdef __cplusplus "C" diff --git a/gcc/testsuite/c-c++-common/torture/complex-sign-add.c b/gcc/testsuite/c-c++-common/torture/complex-sign-add.c index e812232..c1e7886 100644 --- a/gcc/testsuite/c-c++-common/torture/complex-sign-add.c +++ b/gcc/testsuite/c-c++-common/torture/complex-sign-add.c @@ -2,6 +2,7 @@ addition. */ /* { dg-do run } */ /* { dg-options "-std=gnu99" { target c } } */ +/* { dg-skip-if "double support is incomplete" { "avr-*-*" } } */ #include "complex-sign.h" diff --git a/gcc/testsuite/c-c++-common/torture/complex-sign-mixed-add.c b/gcc/testsuite/c-c++-common/torture/complex-sign-mixed-add.c index a209161..36d305b 100644 --- a/gcc/testsuite/c-c++-common/torture/complex-sign-mixed-add.c +++ b/gcc/testsuite/c-c++-common/torture/complex-sign-mixed-add.c @@ -3,6 +3,7 @@ /* { dg-do run } */ /* { dg-options "-std=gnu99" { target c } } */ /* { dg-skip-if "ptx can elide zero additions" { "nvptx-*-*" } { "-O0" } { "" } } */ +/* { dg-skip-if "double support is incomplete" { "avr-*-*" } } */ #include "complex-sign.h" diff --git a/gcc/testsuite/c-c++-common/torture/complex-sign-mixed-div.c b/gcc/testsuite/c-c++-common/torture/complex-sign-mixed-div.c index f7ee483..a37074b 100644 --- a/gcc/testsuite/c-c++-common/torture/complex-sign-mixed-div.c +++ b/gcc/testsuite/c-c++-common/torture/complex-sign-mixed-div.c @@ -2,6 +2,7 @@ division. */ /* { dg-do run } */ /* { dg-options "-std=gnu99" { target c } } */ +/* { dg-skip-if "double support is incomplete" { "avr-*-*" } } */ #include "complex-sign.h" diff --git a/gcc/testsuite/c-c++-common/torture/complex-sign-mixed-mul.c b/gcc/testsuite/c-c++-common/torture/complex-sign-mixed-mul.c index 02f936b..1e528b98 100644 --- a/gcc/testsuite/c-c++-common/torture/complex-sign-mixed-mul.c +++ b/gcc/testsuite/c-c++-common/torture/complex-sign-mixed-mul.c @@ -2,6 +2,7 @@ multiplication. */ /* { dg-do run } */ /* { dg-options "-std=gnu99" { target c } } */ +/* { dg-skip-if "double support is incomplete" { "avr-*-*" } } */ #include "complex-sign.h" diff --git a/gcc/testsuite/c-c++-common/torture/complex-sign-mixed-sub.c b/gcc/testsuite/c-c++-common/torture/complex-sign-mixed-sub.c index 02ab4db..63c75dfd 100644 --- a/gcc/testsuite/c-c++-common/torture/complex-sign-mixed-sub.c +++ b/gcc/testsuite/c-c++-common/torture/complex-sign-mixed-sub.c @@ -3,6 +3,7 @@ /* { dg-do run } */ /* { dg-options "-std=gnu99" { target c } } */ /* { dg-skip-if "ptx can elide zero additions" { "nvptx-*-*" } { "-O0" } { "" } } */ +/* { dg-skip-if "double support is incomplete" { "avr-*-*" } } */ #include "complex-sign.h" diff --git a/gcc/testsuite/c-c++-common/torture/complex-sign-mul-minus-one.c b/gcc/testsuite/c-c++-common/torture/complex-sign-mul-minus-one.c index 05cc4fa..f8abdd0 100644 --- a/gcc/testsuite/c-c++-common/torture/complex-sign-mul-minus-one.c +++ b/gcc/testsuite/c-c++-common/torture/complex-sign-mul-minus-one.c @@ -2,6 +2,7 @@ multiplication with -1.0 + 0.0i. */ /* { dg-do run } */ /* { dg-options "-std=gnu99" { target c } } */ +/* { dg-skip-if "double support is incomplete" { "avr-*-*" } } */ #include "complex-sign.h" diff --git a/gcc/testsuite/c-c++-common/torture/complex-sign-mul-one.c b/gcc/testsuite/c-c++-common/torture/complex-sign-mul-one.c index 014d813..f10248c 100644 --- a/gcc/testsuite/c-c++-common/torture/complex-sign-mul-one.c +++ b/gcc/testsuite/c-c++-common/torture/complex-sign-mul-one.c @@ -2,6 +2,7 @@ multiplication with 1.0 + 0.0i. */ /* { dg-do run } */ /* { dg-options "-std=gnu99" { target c } } */ +/* { dg-skip-if "double support is incomplete" { "avr-*-*" } } */ #include "complex-sign.h" diff --git a/gcc/testsuite/c-c++-common/torture/complex-sign-mul.c b/gcc/testsuite/c-c++-common/torture/complex-sign-mul.c index 08d247a..fc77984 100644 --- a/gcc/testsuite/c-c++-common/torture/complex-sign-mul.c +++ b/gcc/testsuite/c-c++-common/torture/complex-sign-mul.c @@ -2,6 +2,7 @@ multiplication. */ /* { dg-do run } */ /* { dg-options "-std=gnu99" { target c } } */ +/* { dg-skip-if "double support is incomplete" { "avr-*-*" } } */ #include "complex-sign.h" diff --git a/gcc/testsuite/c-c++-common/torture/complex-sign-sub.c b/gcc/testsuite/c-c++-common/torture/complex-sign-sub.c index d4da14d..400bfb8 100644 --- a/gcc/testsuite/c-c++-common/torture/complex-sign-sub.c +++ b/gcc/testsuite/c-c++-common/torture/complex-sign-sub.c @@ -2,6 +2,7 @@ subtraction. */ /* { dg-do run } */ /* { dg-options "-std=gnu99" { target c } } */ +/* { dg-skip-if "double support is incomplete" { "avr-*-*" } } */ #include "complex-sign.h" diff --git a/gcc/testsuite/gcc.dg/pr19402-2.c b/gcc/testsuite/gcc.dg/pr19402-2.c index 1902227..24f1d85 100644 --- a/gcc/testsuite/gcc.dg/pr19402-2.c +++ b/gcc/testsuite/gcc.dg/pr19402-2.c @@ -1,5 +1,6 @@ /* { dg-do run } */ /* { dg-options "-fno-inline -Os" } */ +/* { dg-skip-if "long double support is incomplete" { "avr-*-*" } } */ void abort(void); diff --git a/gcc/testsuite/gcc.dg/pr86124.c b/gcc/testsuite/gcc.dg/pr86124.c index 218b482..c8a66ff 100644 --- a/gcc/testsuite/gcc.dg/pr86124.c +++ b/gcc/testsuite/gcc.dg/pr86124.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O -fipa-pta" } */ +/* { dg-skip-if "acessing data memory with program memory address" { "avr-*-*" } } */ extern void a (void); diff --git a/gcc/testsuite/gcc.dg/pr94291.c b/gcc/testsuite/gcc.dg/pr94291.c index 7daa2b0..7d9331b 100644 --- a/gcc/testsuite/gcc.dg/pr94291.c +++ b/gcc/testsuite/gcc.dg/pr94291.c @@ -1,6 +1,7 @@ /* PR rtl-optimization/94291 */ /* { dg-do compile } */ /* { dg-options "-Og" } */ +/* { dg-skip-if "accessing data memory with program memory address" { "avr-*-*" } } */ unsigned a; diff --git a/gcc/testsuite/gcc.dg/torture/builtin-complex-1.c b/gcc/testsuite/gcc.dg/torture/builtin-complex-1.c index f0d3dd3..8dc91a5 100644 --- a/gcc/testsuite/gcc.dg/torture/builtin-complex-1.c +++ b/gcc/testsuite/gcc.dg/torture/builtin-complex-1.c @@ -3,6 +3,7 @@ /* { dg-options "-std=c11 -pedantic-errors" } */ /* { dg-require-effective-target inf } */ /* { dg-add-options ieee } */ +/* { dg-skip-if "double support is incomplete" { "avr-*-*" } } */ extern void exit (int); extern void abort (void); diff --git a/gcc/testsuite/gcc.dg/torture/fp-int-convert-float32x-timode.c b/gcc/testsuite/gcc.dg/torture/fp-int-convert-float32x-timode.c index c3d3fa9..c9ed42c 100644 --- a/gcc/testsuite/gcc.dg/torture/fp-int-convert-float32x-timode.c +++ b/gcc/testsuite/gcc.dg/torture/fp-int-convert-float32x-timode.c @@ -3,6 +3,7 @@ /* { dg-options "" } */ /* { dg-add-options float32x } */ /* { dg-require-effective-target float32x_runtime } */ +/* { dg-skip-if "double support is incomplete" { "avr-*-*" } } */ #define __STDC_WANT_IEC_60559_TYPES_EXT__ #include <float.h> diff --git a/gcc/testsuite/gcc.dg/torture/fp-int-convert-float32x.c b/gcc/testsuite/gcc.dg/torture/fp-int-convert-float32x.c index 8ea2eaf..e799e9c 100644 --- a/gcc/testsuite/gcc.dg/torture/fp-int-convert-float32x.c +++ b/gcc/testsuite/gcc.dg/torture/fp-int-convert-float32x.c @@ -3,6 +3,7 @@ /* { dg-options "" } */ /* { dg-add-options float32x } */ /* { dg-require-effective-target float32x_runtime } */ +/* { dg-skip-if "double support is incomplete" { "avr-*-*" } } */ #define __STDC_WANT_IEC_60559_TYPES_EXT__ #include <float.h> diff --git a/gcc/testsuite/gcc.dg/torture/fp-int-convert-float64-timode.c b/gcc/testsuite/gcc.dg/torture/fp-int-convert-float64-timode.c index ecefa81..16b4429 100644 --- a/gcc/testsuite/gcc.dg/torture/fp-int-convert-float64-timode.c +++ b/gcc/testsuite/gcc.dg/torture/fp-int-convert-float64-timode.c @@ -3,6 +3,7 @@ /* { dg-options "" } */ /* { dg-add-options float64 } */ /* { dg-require-effective-target float64_runtime } */ +/* { dg-skip-if "double support is incomplete" { "avr-*-*" } } */ #define __STDC_WANT_IEC_60559_TYPES_EXT__ #include <float.h> diff --git a/gcc/testsuite/gcc.dg/torture/fp-int-convert-float64.c b/gcc/testsuite/gcc.dg/torture/fp-int-convert-float64.c index 196d611..68d3363 100644 --- a/gcc/testsuite/gcc.dg/torture/fp-int-convert-float64.c +++ b/gcc/testsuite/gcc.dg/torture/fp-int-convert-float64.c @@ -3,6 +3,7 @@ /* { dg-options "" } */ /* { dg-add-options float64 } */ /* { dg-require-effective-target float64_runtime } */ +/* { dg-skip-if "double support is incomplete" { "avr-*-*" } } */ #define __STDC_WANT_IEC_60559_TYPES_EXT__ #include <float.h> diff --git a/gcc/testsuite/gcc.dg/torture/fp-int-convert-long-double.c b/gcc/testsuite/gcc.dg/torture/fp-int-convert-long-double.c index d8e5197..9492bc2 100644 --- a/gcc/testsuite/gcc.dg/torture/fp-int-convert-long-double.c +++ b/gcc/testsuite/gcc.dg/torture/fp-int-convert-long-double.c @@ -2,6 +2,7 @@ /* Origin: Joseph Myers <joseph@codesourcery.com> */ /* { dg-do run } */ /* { dg-options "" } */ +/* { dg-skip-if "double support is incomplete" { "avr-*-*" } } */ #include <float.h> #include "fp-int-convert.h" diff --git a/gcc/testsuite/gcc.dg/torture/fp-int-convert-timode.c b/gcc/testsuite/gcc.dg/torture/fp-int-convert-timode.c index 0ef3e54..2fe3faa 100644 --- a/gcc/testsuite/gcc.dg/torture/fp-int-convert-timode.c +++ b/gcc/testsuite/gcc.dg/torture/fp-int-convert-timode.c @@ -2,6 +2,7 @@ /* Origin: Joseph Myers <joseph@codesourcery.com> */ /* { dg-do run } */ /* { dg-options "" } */ +/* { dg-skip-if "double support is incomplete" { "avr-*-*" } } */ #include <float.h> #include "fp-int-convert.h" diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 95cbb1a..bd9f432 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -12267,7 +12267,7 @@ proc check_effective_target_o_flag_in_section { } { # return 1 if LRA is supported. proc check_effective_target_lra { } { - if { [istarget hppa*-*-*] || [istarget cris-*-*] } { + if { [istarget hppa*-*-*] || [istarget cris-*-*] || [istarget avr-*-*] } { return 0 } return 1 |