Hi, There have been some changes to the generated bitfiddling code for SH2A and the test case caught them. Those changes are good, and the test case can be adjusted accordingly.
Tested on sh-elf with make -k check-gcc RUNTESTFLAGS="sh.exp --target_board=sh-sim\{-m2a/-mb}" Committed as r227971. Cheers, Oleg gcc/testsuite/ChangeLog: PR target/64345 * gcc.target/sh/pr64345-1.c: Adjust expected insn counts for SH2A.
Index: gcc/testsuite/gcc.target/sh/pr64345-1.c =================================================================== --- gcc/testsuite/gcc.target/sh/pr64345-1.c (revision 227970) +++ gcc/testsuite/gcc.target/sh/pr64345-1.c (working copy) @@ -10,10 +10,10 @@ /* { dg-final { scan-assembler-times "shlr\t" 8 { target { ! sh2a } } } } */ /* { dg-final { scan-assembler-times "tst" 442 { target { sh2a } } } } */ -/* { dg-final { scan-assembler-times "bld" 276 { target { sh2a } } } } */ +/* { dg-final { scan-assembler-times "bld" 285 { target { sh2a } } } } */ /* { dg-final { scan-assembler-times "cmp/pz" 6 { target { sh2a } } } } */ -/* { dg-final { scan-assembler-times "shll\t" 4 { target { sh2a } } } } */ -/* { dg-final { scan-assembler-times "shlr\t" 8 { target { sh2a } } } } */ +/* { dg-final { scan-assembler-times "shll\t" 3 { target { sh2a } } } } */ +/* { dg-final { scan-assembler-times "shlr\t" 0 { target { sh2a } } } } */ /* { dg-final { scan-assembler-times "and\t#1" 32 } } */