Commit aec2eae6 by Kyrylo Tkachov Committed by Kyrylo Tkachov

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
parent 0498471b
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
......
/* { dg-do compile } */
/* { dg-require-effective-target arm_cond_exec } */
/* { dg-options "-O2" } */
#define MAX(a, b) (a > b ? a : b)
......
......@@ -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 { } {
......
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