summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/sh/sh2a-jsrn.c
blob: 9b9b92cb92074d6669d5ef5ddd06b543271160b4 (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 {target sh*-*-*}}  */
/* { 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();
}