summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/conditional-return.c
blob: 6b3ef5f52ca8371a491059cca530e0a7e2085f5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* Check that a conditional return is used.  */

/* { dg-do compile } */
/* { dg-options "-O2 -w" } */

/* { dg-final { scan-assembler {\mbeqlr\M} } } */


int f(int x)
{
	if (x)
		return x + 31;

	return;
}