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

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