target-supports.exp (check_effective_target_arm_cond_exec): New procedure.

[gcc/testsuite/]
2013-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>

    * lib/target-supports.exp (check_effective_target_arm_cond_exec):
    New procedure.
    * gcc.target/arm/minmax_minus.c: Check for cond_exec target.

From-SVN: r202872
This commit is contained in:
Kyrylo Tkachov 2013-09-24 17:23:43 +00:00 committed by Kyrylo Tkachov
parent 0498471be6
commit aec2eae65f
3 changed files with 18 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2013-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* lib/target-supports.exp (check_effective_target_arm_cond_exec):
New procedure.
* gcc.target/arm/minmax_minus.c: Check for cond_exec target.
2013-09-24 Richard Biener <rguenther@suse.de>
PR middle-end/58513

View File

@ -1,4 +1,5 @@
/* { dg-do compile } */
/* { dg-require-effective-target arm_cond_exec } */
/* { dg-options "-O2" } */
#define MAX(a, b) (a > b ? a : b)

View File

@ -2599,6 +2599,17 @@ proc check_effective_target_arm_thumb2 { } {
} ""]
}
# Return 1 if this is an ARM target where conditional execution is available.
proc check_effective_target_arm_cond_exec { } {
return [check_no_compiler_messages arm_cond_exec assembly {
#if defined(__arm__) && defined(__thumb__) && !defined(__thumb2__)
#error FOO
#endif
int i;
} ""]
}
# Return 1 if this is an ARM cortex-M profile cpu
proc check_effective_target_arm_cortex_m { } {