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:
parent
0498471be6
commit
aec2eae65f
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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 { } {
|
||||
|
|
Loading…
Reference in New Issue