aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/sh/pr54089-4.c
blob: e01e51c0a36471c57baa805eb31542f48e672ec5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* Check that the rotcr instruction is generated when shifting the
   negated T bit on non-SH2A.  */
/* { dg-do compile }  */
/* { dg-options "-O1" } */
/* { dg-skip-if "" { "sh*-*-*" } { "-m5*" "-m2a*" } { "" } }  */
/* { dg-final { scan-assembler-times "rotcr" 1 } } */
/* { dg-final { scan-assembler-times "tst" 1 } } */
/* { dg-final { scan-assembler-times "movt" 1 } } */

int
test_00 (int a, int b)
{
  int r = a != b;
  return r << 31;
}