frame-pointer-1.c: Skip if Thumb is not supported.

* gcc.target/arm/frame-pointer-1.c: Skip if Thumb is not supported.
	* gcc.target/arm/pr56184.C: Likewise.
	* gcc.target/arm/pr59896.c: Likewise.
	* gcc.target/arm/stack-red-zone.c: Likewise.
	* gcc.target/arm/thumb-find-work-register.c: Likewise.

From-SVN: r213819
This commit is contained in:
Janis Johnson 2014-08-11 15:29:59 +00:00 committed by Janis Johnson
parent 904b40e75e
commit e2e4599a36
6 changed files with 11 additions and 0 deletions

View File

@ -1,5 +1,11 @@
2014-08-11 Janis Johnson <janisjo@codesourcery.com> 2014-08-11 Janis Johnson <janisjo@codesourcery.com>
* gcc.target/arm/frame-pointer-1.c: Skip if Thumb is not supported.
* gcc.target/arm/pr56184.C: Likewise.
* gcc.target/arm/pr59896.c: Likewise.
* gcc.target/arm/stack-red-zone.c: Likewise.
* gcc.target/arm/thumb-find-work-register.c: Likewise.
* lib/target-supports.exp (check_effective_target_arm_thumb1_ok, * lib/target-supports.exp (check_effective_target_arm_thumb1_ok,
check_effective_target_arm_thumb2_ok): Test with code that passes check_effective_target_arm_thumb2_ok): Test with code that passes
an argument and returns a result. an argument and returns a result.

View File

@ -1,6 +1,7 @@
/* Check local register variables using a register conventionally /* Check local register variables using a register conventionally
used as the frame pointer aren't clobbered under high register pressure. */ used as the frame pointer aren't clobbered under high register pressure. */
/* { dg-do run } */ /* { dg-do run } */
/* { dg-skip-if "incompatible options" { ! { arm_thumb1_ok || arm_thumb2_ok } } { "*" } { "" } } */
/* { dg-options "-Os -mthumb -fomit-frame-pointer" } */ /* { dg-options "-Os -mthumb -fomit-frame-pointer" } */
#include <stdlib.h> #include <stdlib.h>

View File

@ -1,4 +1,5 @@
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-skip-if "incompatible options" { ! { arm_thumb1_ok || arm_thumb2_ok } } { "*" } { "" } } */
/* { dg-options "-fno-short-enums -O2 -mthumb -march=armv7-a -mfpu=neon -mfloat-abi=softfp -mtune=cortex-a9 -fno-section-anchors" } */ /* { dg-options "-fno-short-enums -O2 -mthumb -march=armv7-a -mfpu=neon -mfloat-abi=softfp -mtune=cortex-a9 -fno-section-anchors" } */
typedef unsigned int size_t; typedef unsigned int size_t;

View File

@ -1,4 +1,5 @@
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-skip-if "incompatible options" { ! { arm_thumb1_ok || arm_thumb2_ok } } { "*" } { "" } } */
/* { dg-options "-mthumb -O2" } */ /* { dg-options "-mthumb -O2" } */
typedef unsigned int size_t; typedef unsigned int size_t;

View File

@ -1,4 +1,5 @@
/* No stack red zone. PR38644. */ /* No stack red zone. PR38644. */
/* { dg-skip-if "incompatible options" { ! { arm_thumb1_ok || arm_thumb2_ok } } { "*" } { "" } } */
/* { dg-options "-mthumb -O2" } */ /* { dg-options "-mthumb -O2" } */
/* { dg-final { scan-assembler "ldrb\[^\n\]*\\n\[\t \]*add\[\t \]*sp" } } */ /* { dg-final { scan-assembler "ldrb\[^\n\]*\\n\[\t \]*add\[\t \]*sp" } } */

View File

@ -1,5 +1,6 @@
/* Wrong method to get number of arg reg will cause argument corruption. */ /* Wrong method to get number of arg reg will cause argument corruption. */
/* { dg-do run } */ /* { dg-do run } */
/* { dg-skip-if "incompatible options" { ! { arm_thumb1_ok || arm_thumb2_ok } } { "*" } { "" } } */
/* { dg-require-effective-target arm_eabi } */ /* { dg-require-effective-target arm_eabi } */
/* { dg-options "-mthumb -O1" } */ /* { dg-options "-mthumb -O1" } */