Commit 07f8bcc6 by Christophe Lyon

[testsuite,arm] use arm_fp_dp_ok effective-target

Switch to arm_fp_dp_ok effective-target in tests that require
double-precision support from the FPU.

2020-03-24  Christophe Lyon  <christophe.lyon@linaro.org>

	gcc/testsuite/
	* gcc/arm/vfp-1.c: Use arm_fp__ok effective-target.
	* gcc.target/arm/vfp-ldmdbd.c: Likewise.
	* gcc.target/arm/vfp-ldmiad.c: Likewise.
	* gcc.target/arm/vfp-stmdbd.c: Likewise.
	* gcc.target/arm/vfp-stmiad.c: Likewise.
	* gcc.target/arm/vnmul-1.c: Likewise.
	* gcc.target/arm/vnmul-3.c: Likewise.
	* gcc.target/arm/vnmul-4.c: Likewise.
parent 2a0eaca3
2020-03-24 Christophe Lyon <christophe.lyon@linaro.org> 2020-03-24 Christophe Lyon <christophe.lyon@linaro.org>
* gcc/arm/vfp-1.c: Use arm_fp__ok effective-target.
* gcc.target/arm/vfp-ldmdbd.c: Likewise.
* gcc.target/arm/vfp-ldmiad.c: Likewise.
* gcc.target/arm/vfp-stmdbd.c: Likewise.
* gcc.target/arm/vfp-stmiad.c: Likewise.
* gcc.target/arm/vnmul-1.c: Likewise.
* gcc.target/arm/vnmul-3.c: Likewise.
* gcc.target/arm/vnmul-4.c: Likewise.
2020-03-24 Christophe Lyon <christophe.lyon@linaro.org>
* gcc.target/arm/cmp-2.c: Move double-precision tests to... * gcc.target/arm/cmp-2.c: Move double-precision tests to...
* gcc.target/arm/cmp-3.c: ...here (new file) * gcc.target/arm/cmp-3.c: ...here (new file)
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-require-effective-target arm_fp_ok } */ /* { dg-require-effective-target arm_fp_dp_ok } */
/* { dg-options "-O2 -ffp-contract=off" } */ /* { dg-options "-O2 -ffp-contract=off" } */
/* { dg-add-options arm_fp } */ /* { dg-add-options arm_fp_dp } */
/* { dg-skip-if "need fp instructions" { *-*-* } { "-mfloat-abi=soft" } { "" } } */ /* { dg-skip-if "need fp instructions" { *-*-* } { "-mfloat-abi=soft" } { "" } } */
extern float fabsf (float); extern float fabsf (float);
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-require-effective-target arm_fp_ok } */ /* { dg-require-effective-target arm_fp_dp_ok } */
/* { dg-skip-if "need fp instructions" { *-*-* } { "-mfloat-abi=soft" } { "" } } */ /* { dg-skip-if "need fp instructions" { *-*-* } { "-mfloat-abi=soft" } { "" } } */
/* { dg-options "-O2" } */ /* { dg-options "-O2" } */
/* { dg-add-options arm_fp } */ /* { dg-add-options arm_fp_dp } */
extern void bar (double); extern void bar (double);
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-require-effective-target arm_fp_ok } */ /* { dg-require-effective-target arm_fp_dp_ok } */
/* { dg-skip-if "need fp instructions" { *-*-* } { "-mfloat-abi=soft" } { "" } } */ /* { dg-skip-if "need fp instructions" { *-*-* } { "-mfloat-abi=soft" } { "" } } */
/* { dg-options "-O2" } */ /* { dg-options "-O2" } */
/* { dg-add-options arm_fp } */ /* { dg-add-options arm_fp_dp } */
extern void bar (double); extern void bar (double);
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-require-effective-target arm_fp_ok } */ /* { dg-require-effective-target arm_fp_dp_ok } */
/* { dg-skip-if "need fp instructions" { *-*-* } { "-mfloat-abi=soft" } { "" } } */ /* { dg-skip-if "need fp instructions" { *-*-* } { "-mfloat-abi=soft" } { "" } } */
/* { dg-options "-O2" } */ /* { dg-options "-O2" } */
/* { dg-add-options arm_fp } */ /* { dg-add-options arm_fp_dp } */
void void
foo (double *p, double a, double b, int n) foo (double *p, double a, double b, int n)
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-require-effective-target arm_fp_ok } */ /* { dg-require-effective-target arm_fp_dp_ok } */
/* { dg-skip-if "need fp instructions" { *-*-* } { "-mfloat-abi=soft" } { "" } } */ /* { dg-skip-if "need fp instructions" { *-*-* } { "-mfloat-abi=soft" } { "" } } */
/* { dg-options "-O2" } */ /* { dg-options "-O2" } */
/* { dg-add-options arm_fp } */ /* { dg-add-options arm_fp_dp } */
void void
foo (double *p, double a, double b, int n) foo (double *p, double a, double b, int n)
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-require-effective-target arm_fp_ok } */ /* { dg-require-effective-target arm_fp_dp_ok } */
/* { dg-skip-if "need fp instructions" { *-*-* } { "-mfloat-abi=soft" } { "" } } */ /* { dg-skip-if "need fp instructions" { *-*-* } { "-mfloat-abi=soft" } { "" } } */
/* { dg-options "-O2 -fno-rounding-math" } */ /* { dg-options "-O2 -fno-rounding-math" } */
/* { dg-add-options arm_fp } */ /* { dg-add-options arm_fp_dp } */
double double
foo_d (double a, double b) foo_d (double a, double b)
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-require-effective-target arm_fp_ok } */ /* { dg-require-effective-target arm_fp_dp_ok } */
/* { dg-skip-if "need fp instructions" { *-*-* } { "-mfloat-abi=soft" } { "" } } */ /* { dg-skip-if "need fp instructions" { *-*-* } { "-mfloat-abi=soft" } { "" } } */
/* { dg-options "-O2 -fno-rounding-math" } */ /* { dg-options "-O2 -fno-rounding-math" } */
/* { dg-add-options arm_fp } */ /* { dg-add-options arm_fp_dp } */
double double
foo_d (double a, double b) foo_d (double a, double b)
......
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-require-effective-target arm_fp_ok } */ /* { dg-require-effective-target arm_fp_dp_ok } */
/* { dg-skip-if "need fp instructions" { *-*-* } { "-mfloat-abi=soft" } { "" } } */ /* { dg-skip-if "need fp instructions" { *-*-* } { "-mfloat-abi=soft" } { "" } } */
/* { dg-options "-O2 -frounding-math" } */ /* { dg-options "-O2 -frounding-math" } */
/* { dg-add-options arm_fp } */ /* { dg-add-options arm_fp_dp } */
double double
foo_d (double a, double b) foo_d (double a, double b)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment