1 /* Check that the rotcr instruction is generated when shifting the
2    negated T bit on non-SH2A.  */
3 /* { dg-do compile }  */
4 /* { dg-options "-O1" } */
5 /* { dg-skip-if "" { "sh*-*-*" } { "-m5*" "-m2a*" } { "" } }  */
6 /* { dg-final { scan-assembler-times "rotcr" 1 } } */
7 /* { dg-final { scan-assembler-times "tst" 1 } } */
8 /* { dg-final { scan-assembler-times "movt" 1 } } */
9 
10 int
test_00(int a,int b)11 test_00 (int a, int b)
12 {
13   int r = a != b;
14   return r << 31;
15 }
16