summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/sh/sh2a-jsrn.c
blob: 3f55327f0d734380815869f8dcc463be2f44d78a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* Testcase to check generation of a SH2A specific instruction for
   'JSR/N @Rm'.  */
/* { dg-do assemble }  */
/* { dg-options "-O0" }  */
/* { dg-skip-if "" { "sh*-*-*" } "*" "-m2a -m2a-nofpu -m2a-single -m2a-single-only" }  */
/* { dg-final { scan-assembler "jsr/n"} }  */

void foo(void)
{
}

void bar()
{
  foo();
}