Commit 6e66d62d by Tom de Vries Committed by Tom de Vries

re PR target/43920 (Choosing conditional execution over conditional branches for…

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
parent abd016e6
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> 2011-04-04 Yufeng Zhang <yufeng.zhang@arm.com>
* g++.dg/abi/arm_cxa_vec1.C (__ARM_EABI__): Fix typo. * g++.dg/abi/arm_cxa_vec1.C (__ARM_EABI__): Fix typo.
......
/* { 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" } } */
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