aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/sh/pr64793.c
blob: 5bcc1e69b85b984590afbf9ad07b91a5fb6d4a4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* Check that the delay slot of an rts insn is filled, if it follows a cbranch
   with an unfilled delay slot, as in:
	bt	.L3
	mov	r7,r0	<<< this insn
	rts
	nop		<<< should go into this delay slot
*/
/* { dg-do compile }  */
/* { dg-options "-O2" }  */
/* { dg-final { scan-assembler-not "nop" } }  */

int
test_0 (const char* x, int a, int b, int c)
{
  if (x[a] == 92)
    return b;
  return c;
}