[arm] Fix various tests
The neon-thumb2-move.c test was overriding the options that had been detected as being necessary to enable Neon. The result was that the combination of the test's options and those auto-detected were not compatible with neon leading to a test failure. The correct fix here is to stick with the options that dg-add-options arm_neon has worked out. The thumb2-slow-flash-data tests were relying (incorrectly) on a particular FPU being enabled by default. These tests are fixed by adding +fp to the architecture selected. * gcc.target/arm/neon-thumb2-move.c (dg-options): Don't override the architecture options added by dg-add-options arm_neon. * gcc.target/arm/thumb2-slow-flash-data-2.c (dg-opitions): Add +fp to the architecture. * gcc.target/arm/thumb3-slow-flash-data-3.c (dg-opitions): Likewise. * gcc.target/arm/thumb4-slow-flash-data-3.c (dg-opitions): Likewise. * gcc.target/arm/thumb5-slow-flash-data-3.c (dg-opitions): Likewise. From-SVN: r249310
This commit is contained in:
parent
718a3eab29
commit
e3e266bfb1
@ -1,3 +1,13 @@
|
||||
2017-06-16 Richard Earnshaw <rearnsha@arm.com>
|
||||
|
||||
* gcc.target/arm/neon-thumb2-move.c (dg-options): Don't override
|
||||
the architecture options added by dg-add-options arm_neon.
|
||||
* gcc.target/arm/thumb2-slow-flash-data-2.c (dg-opitions): Add +fp
|
||||
to the architecture.
|
||||
* gcc.target/arm/thumb3-slow-flash-data-3.c (dg-opitions): Likewise.
|
||||
* gcc.target/arm/thumb4-slow-flash-data-3.c (dg-opitions): Likewise.
|
||||
* gcc.target/arm/thumb5-slow-flash-data-3.c (dg-opitions): Likewise.
|
||||
|
||||
2017-06-16 Richard Earnshaw <rearnsha@arm.com>
|
||||
|
||||
* gcc.target/arm/multilib.exp (rmprofile): New tests when rm-profile
|
||||
|
@ -1,7 +1,7 @@
|
||||
/* { dg-do compile } */
|
||||
/* { dg-require-effective-target arm_neon_ok } */
|
||||
/* { dg-require-effective-target arm_thumb2_ok } */
|
||||
/* { dg-options "-O2 -mthumb -march=armv7-a" } */
|
||||
/* { dg-options "-O2 -mthumb" } */
|
||||
/* { dg-add-options arm_neon } */
|
||||
/* { dg-prune-output "switch .* conflicts with" } */
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
/* { dg-require-effective-target arm_thumb2_ok } */
|
||||
/* { dg-skip-if "avoid conflicts with multilib options" { *-*-* } { "-mcpu=*" } { "-mcpu=cortex-m4" "-mcpu=cortex-m7" } } */
|
||||
/* { dg-skip-if "do not override -mfloat-abi" { *-*-* } { "-mfloat-abi=*" } { "-mfloat-abi=hard" } } */
|
||||
/* { dg-options "-march=armv7e-m -mfloat-abi=hard -O2 -mthumb -mslow-flash-data" } */
|
||||
/* { dg-options "-march=armv7e-m+fp -mfloat-abi=hard -O2 -mthumb -mslow-flash-data" } */
|
||||
|
||||
float f (float);
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
/* { dg-require-effective-target arm_thumb2_ok } */
|
||||
/* { dg-skip-if "avoid conflicts with multilib options" { *-*-* } { "-mcpu=*" } { "-mcpu=cortex-m4" "-mcpu=cortex-m7" } } */
|
||||
/* { dg-skip-if "do not override -mfloat-abi" { *-*-* } { "-mfloat-abi=*" } { "-mfloat-abi=hard" } } */
|
||||
/* { dg-options "-march=armv7e-m -mfloat-abi=hard -mthumb -mslow-flash-data" } */
|
||||
/* { dg-options "-march=armv7e-m+fp -mfloat-abi=hard -mthumb -mslow-flash-data" } */
|
||||
|
||||
/* From PR71607 */
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
/* { dg-require-effective-target arm_thumb2_ok } */
|
||||
/* { dg-skip-if "avoid conflicts with multilib options" { *-*-* } { "-mcpu=*" } { "-mcpu=cortex-m4" "-mcpu=cortex-m7" } } */
|
||||
/* { dg-skip-if "do not override -mfloat-abi" { *-*-* } { "-mfloat-abi=*" } { "-mfloat-abi=hard" } } */
|
||||
/* { dg-options "-march=armv7e-m -mfloat-abi=hard -O2 -mthumb -mslow-flash-data" } */
|
||||
/* { dg-options "-march=armv7e-m+fp -mfloat-abi=hard -O2 -mthumb -mslow-flash-data" } */
|
||||
|
||||
double __attribute__ ((target ("fpu=fpv5-d16")))
|
||||
foo (void)
|
||||
|
@ -3,7 +3,7 @@
|
||||
/* { dg-require-effective-target arm_thumb2_ok } */
|
||||
/* { dg-skip-if "avoid conflicts with multilib options" { *-*-* } { "-mcpu=*" } { "-mcpu=cortex-m4" "-mcpu=cortex-m7" } } */
|
||||
/* { dg-skip-if "do not override -mfloat-abi" { *-*-* } { "-mfloat-abi=*" } { "-mfloat-abi=hard" } } */
|
||||
/* { dg-options "-march=armv7e-m -mfloat-abi=hard -O2 -mthumb -mslow-flash-data" } */
|
||||
/* { dg-options "-march=armv7e-m+fp -mfloat-abi=hard -O2 -mthumb -mslow-flash-data" } */
|
||||
|
||||
double __attribute__ ((target ("fpu=fpv5-sp-d16")))
|
||||
foo (void)
|
||||
|
Loading…
x
Reference in New Issue
Block a user