Hi, The attach patch just swaps the dg directive lines for the PR 49468 testcases. Having 'dg-skip-if' as the first directive doesn't seem to work and always gets ignored.
OK to apply? Cheers, Oleg testsuite/ChangeLog PR target/49468 * gcc.target/sh/pr49468-si.c: Make dg-skip-if not the first directive. * gcc.target/sh/pr49468-di.c: Likewise.
Index: gcc/testsuite/gcc.target/sh/pr49468-si.c =================================================================== --- gcc/testsuite/gcc.target/sh/pr49468-si.c (revision 185360) +++ gcc/testsuite/gcc.target/sh/pr49468-si.c (working copy) @@ -1,8 +1,8 @@ /* Check that 32 bit integer abs is generated as neg instruction and conditional branch instead of default branch-free code. */ -/* { dg-skip-if "" { "sh*-*-*" } { "-m5*"} { "" } } */ /* { dg-do compile { target "sh*-*-*" } } */ /* { dg-options "-O1" } */ +/* { dg-skip-if "" { "sh*-*-*" } { "-m5*"} { "" } } */ /* { dg-final { scan-assembler-times "neg" 2 } } */ Index: gcc/testsuite/gcc.target/sh/pr49468-di.c =================================================================== --- gcc/testsuite/gcc.target/sh/pr49468-di.c (revision 185360) +++ gcc/testsuite/gcc.target/sh/pr49468-di.c (working copy) @@ -1,8 +1,8 @@ /* Check that 64 bit integer abs is generated as negc instruction pairs and conditional branch instead of default branch-free code. */ -/* { dg-skip-if "" { "sh*-*-*" } { "-m5*"} { "" } } */ /* { dg-do compile { target "sh*-*-*" } } */ /* { dg-options "-O1" } */ +/* { dg-skip-if "" { "sh*-*-*" } { "-m5*"} { "" } } */ /* { dg-final { scan-assembler-times "negc" 4 } } */