re PR target/43920 (Choosing conditional execution over conditional branches for code size in some cases.)
2011-04-05 Tom de Vries <tom@codesourcery.com> PR target/43920 * gcc.target/arm/pr43920-1.c: New test. From-SVN: r171986
This commit is contained in:
parent
abd016e64f
commit
6e66d62dae
2 changed files with 47 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2011-04-05 Tom de Vries <tom@codesourcery.com>
|
||||
|
||||
PR target/43920
|
||||
* gcc.target/arm/pr43920-1.c: New test.
|
||||
|
||||
2011-04-04 Yufeng Zhang <yufeng.zhang@arm.com>
|
||||
|
||||
* g++.dg/abi/arm_cxa_vec1.C (__ARM_EABI__): Fix typo.
|
||||
|
|
42
gcc/testsuite/gcc.target/arm/pr43920-1.c
Normal file
42
gcc/testsuite/gcc.target/arm/pr43920-1.c
Normal file
|
@ -0,0 +1,42 @@
|
|||
/* { dg-do compile } */
|
||||
/* { dg-options "-mthumb -Os" } */
|
||||
/* { dg-require-effective-target arm_thumb2_ok } */
|
||||
|
||||
int
|
||||
f (int start, int end, int *start_)
|
||||
{
|
||||
if (start == -1 || end == -1)
|
||||
return -1;
|
||||
|
||||
if (end - start)
|
||||
return -1;
|
||||
|
||||
*start_ = start;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* { dg-final { scan-assembler-times "\torr" 0 } } */
|
||||
/* { dg-final { scan-assembler-times "\tit\t" 0 } } */
|
||||
/* { dg-final { scan-assembler "\tbeq" } } */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-mthumb -Os" } */
|
||||
/* { dg-require-effective-target arm_thumb2_ok } */
|
||||
|
||||
int
|
||||
f (int start, int end, int *start_)
|
||||
{
|
||||
if (start == -1 || end == -1)
|
||||
return -1;
|
||||
|
||||
if (end - start)
|
||||
return -1;
|
||||
|
||||
*start_ = start;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* { dg-final { scan-assembler-times "\torr" 0 } } */
|
||||
/* { dg-final { scan-assembler-times "\tit\t" 0 } } */
|
||||
/* { dg-final { scan-assembler "\tbeq" } } */
|
Loading…
Add table
Reference in a new issue