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.
This commit is contained in:
Georg-Johann Lay 2023-05-22 16:21:58 +02:00
parent 776d94f0b1
commit a8900fe481
21 changed files with 22 additions and 1 deletions

View file

@ -1,3 +1,5 @@
/* { dg-skip-if "double support is incomplete" { "avr-*-*" } } */
extern
#ifdef __cplusplus
"C"

View 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"

View 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"

View 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"

View 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"

View 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"

View 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"

View 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"

View 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"

View 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"

View 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);

View 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);

View 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;

View 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);

View 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>

View 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>

View 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>

View 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>

View 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"

View 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"

View 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