summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/sh/sh2a-movrt.c
blob: 9df9f4ba9763a390f013ddd715a64831715ec771 (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
   'MOVRT Rn'.  */
/* { dg-do assemble {target sh*-*-*}}  */
/* { dg-options "-O1" }  */
/* { dg-skip-if "" { "sh*-*-*" } "*" "-m2a -m2a-nofpu -m2a-single -m2a-single-only" }  */
/* { dg-final { scan-assembler "movrt"} }  */

int
foo (void)
{
  int a, b, g, stop;
  if (stop = ((a + b) % 2 != g))
    ;
  return stop;
}