]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Skip some tests that won't work for target AVR.
authorGeorg-Johann Lay <avr@gjlay.de>
Mon, 22 May 2023 14:21:58 +0000 (16:21 +0200)
committerGeorg-Johann Lay <avr@gjlay.de>
Mon, 22 May 2023 14:22:30 +0000 (16:22 +0200)
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.

21 files changed:
gcc/testsuite/c-c++-common/torture/builtin-convertvector-1.c
gcc/testsuite/c-c++-common/torture/complex-sign-add.c
gcc/testsuite/c-c++-common/torture/complex-sign-mixed-add.c
gcc/testsuite/c-c++-common/torture/complex-sign-mixed-div.c
gcc/testsuite/c-c++-common/torture/complex-sign-mixed-mul.c
gcc/testsuite/c-c++-common/torture/complex-sign-mixed-sub.c
gcc/testsuite/c-c++-common/torture/complex-sign-mul-minus-one.c
gcc/testsuite/c-c++-common/torture/complex-sign-mul-one.c
gcc/testsuite/c-c++-common/torture/complex-sign-mul.c
gcc/testsuite/c-c++-common/torture/complex-sign-sub.c
gcc/testsuite/gcc.dg/pr19402-2.c
gcc/testsuite/gcc.dg/pr86124.c
gcc/testsuite/gcc.dg/pr94291.c
gcc/testsuite/gcc.dg/torture/builtin-complex-1.c
gcc/testsuite/gcc.dg/torture/fp-int-convert-float32x-timode.c
gcc/testsuite/gcc.dg/torture/fp-int-convert-float32x.c
gcc/testsuite/gcc.dg/torture/fp-int-convert-float64-timode.c
gcc/testsuite/gcc.dg/torture/fp-int-convert-float64.c
gcc/testsuite/gcc.dg/torture/fp-int-convert-long-double.c
gcc/testsuite/gcc.dg/torture/fp-int-convert-timode.c
gcc/testsuite/lib/target-supports.exp

index 347dda7692dcc57a64e29cbabafd05093599ec68..fababf1a9eb38ae2799d2177cce0633c8dc4621d 100644 (file)
@@ -1,3 +1,5 @@
+/* { dg-skip-if "double support is incomplete" { "avr-*-*" } } */
+
 extern
 #ifdef __cplusplus
 "C"
index e81223224dcfd0e516d5d03352c8c31493860e5e..c1e7886a0df241ed2accf10721a130063876011b 100644 (file)
@@ -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"
 
index a209161e157816afc39051e7fd4a69d06dc824a3..36d305baf5345b9085f1ac0489ccc38469990d93 100644 (file)
@@ -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"
 
index f7ee48341c09eed4845a19e15688d1c96279c25b..a37074bb3b9410723c3c3a241668ed6b68a3b936 100644 (file)
@@ -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"
 
index 02f936b75bdd542d132685d39b87433365e9e43b..1e528b986c55c0eeac6b4f61ce23cf238deffb59 100644 (file)
@@ -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"
 
index 02ab4db247cb59e97a74196b00889bd5fbcd06de..63c75dfdff283dae15cdaa87673a7823198b8aed 100644 (file)
@@ -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"
 
index 05cc4fabea41bce6a5d51e85188a8e8f26cc057d..f8abdd00e2e91cb9af7e28856c89d2423f32f44e 100644 (file)
@@ -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"
 
index 014d813e99ed758a18ef71bc6ce01827dbd39c9d..f10248cf6bb06e34dda4073102699c5971077174 100644 (file)
@@ -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"
 
index 08d247aa5c044df89f2a0dd4a08050b7f970b5f1..fc7798428850ede807286b076c9fade947868065 100644 (file)
@@ -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"
 
index d4da14dc5f56d0ae57cc00cc647ee75c66283ae3..400bfb8cd67d5b3aad8c280410e768e87d6b3ca9 100644 (file)
@@ -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"
 
index 1902227a6e061395e63b46561dc52eae92f22e48..24f1d85b58f89c4704e63747b32451d67b19e7b3 100644 (file)
@@ -1,5 +1,6 @@
 /* { dg-do run } */
 /* { dg-options "-fno-inline -Os" } */
+/* { dg-skip-if "long double support is incomplete" { "avr-*-*" } } */
 
 void abort(void);
 
index 218b48295f79dfe8dde333e9e771b8247eea01b7..c8a66ffbfb4c5a1a8b97fe212c6e8baeb2784810 100644 (file)
@@ -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);
 
index 7daa2b01166f6e452f243751fa46c6b99893ce0d..7d9331b391f5ac0f2c1c53dbca7a557aadf1d2e7 100644 (file)
@@ -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;
 
index f0d3dd32cf5da08fadfcc1d1db9b226cdb242736..8dc91a555a2d3d87f1343879e87d797e88bf0c7b 100644 (file)
@@ -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);
index c3d3fa9ff7d9fb15f2191116bfe86d86a49a9a52..c9ed42ca31f72f8064365cd6c5490b2cd0e67859 100644 (file)
@@ -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>
index 8ea2eafe2f3af7d1f2a300ac6587b7e7014e5490..e799e9c3360b2c17316ab4a8e8a230f0e2cd1f5d 100644 (file)
@@ -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>
index ecefa8120b8acaa2b39ea60335836ea47249e25d..16b4429805cd0efed3bb2f649803a7c59acc4f30 100644 (file)
@@ -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>
index 196d611493fd635b4f7885026dbe1690888d81d4..68d3363d5f4de17e510111f616d5dc8f3b61f79c 100644 (file)
@@ -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>
index d8e5197f1d390a4a46b807c8de6499b29d031640..9492bc23c8f7663876eab6ba35511a69d1130a21 100644 (file)
@@ -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"
index 0ef3e5454656441eb3275a520ce9ca84ba8248a3..2fe3faab5852afbff4d9041e0c92aa99ee52fa27 100644 (file)
@@ -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"
index 95cbb1afa161bbd2ef196275da14ef9764a7acd0..bd9f432e4a7619f61e5f63f179b13a02922292f4 100644 (file)
@@ -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