2018-05-17 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / sh / sh2a-movrt.c
blobdd2abc2a4278c7926a10eb71b8ff1ec47dd99f0a
1 /* Testcase to check generation of a SH2A specific instruction for
2 'MOVRT Rn'. */
3 /* { dg-do compile { target { sh2a } } } */
4 /* { dg-options "-O1" } */
5 /* { dg-final { scan-assembler "movrt" } } */
7 int
8 foo (void)
10 int a, b, g, stop;
11 if (stop = ((a + b) % 2 != g))
13 return stop;