diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/sh/pr54089-5.c')
-rw-r--r-- | gcc/testsuite/gcc.target/sh/pr54089-5.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/sh/pr54089-5.c b/gcc/testsuite/gcc.target/sh/pr54089-5.c new file mode 100644 index 0000000000..decb9db950 --- /dev/null +++ b/gcc/testsuite/gcc.target/sh/pr54089-5.c @@ -0,0 +1,14 @@ +/* Check that the movrt rotr instruction sequence is generated when shifting + the negated T bit on SH2A. */ +/* { dg-do compile } */ +/* { 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; +} |