diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/sh/pr51244-16.c')
-rw-r--r-- | gcc/testsuite/gcc.target/sh/pr51244-16.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/sh/pr51244-16.c b/gcc/testsuite/gcc.target/sh/pr51244-16.c new file mode 100644 index 00000000000..8717df7f34a --- /dev/null +++ b/gcc/testsuite/gcc.target/sh/pr51244-16.c @@ -0,0 +1,11 @@ +/* Check that the redundant test removal code in the *cbranch_t split works + as expected on SH2A targets. */ +/* { dg-do compile { target "sh*-*-*" } } */ +/* { dg-options "-O2" } */ +/* { dg-skip-if "" { "sh*-*-*" } { "*" } { "-m2a*" } } */ +/* { dg-final { scan-assembler-times "tst" 6 } } */ +/* { dg-final { scan-assembler-times "movt" 3 } } */ +/* { dg-final { scan-assembler-times "movrt" 3 } } */ +/* { dg-final { scan-assembler-not "extu|exts|negc" } } */ + +#include "pr51244-15.c" |