Hi, The gcc.target/sh/pr54089-1.c test case started to fail for SH2A. Due to different combine paths the expected rotcr insn is sometimes not generated as expected at -O1. Changing it to -O2 produces the expected insn sequences. Tested with make -k check-gcc RUNTESTFLAGS="sh.exp=pr54089-1.c --target_board=sh-sim \{-m2/-ml,-m2/-mb,-m2a/-mb,-m4/-ml,-m4/-mb,-m4a/-ml,-m4a/-mb}" Committed as r218795.
Cheers, Oleg gcc/testsuite/ChangeLog: PR target/54089 * gcc.target/sh/pr54089-1.c: Change optimization level from -O1 to -O2.
Index: gcc/testsuite/gcc.target/sh/pr54089-1.c =================================================================== --- gcc/testsuite/gcc.target/sh/pr54089-1.c (revision 218791) +++ gcc/testsuite/gcc.target/sh/pr54089-1.c (working copy) @@ -1,6 +1,6 @@ /* Check that the rotcr instruction is generated. */ /* { dg-do compile } */ -/* { dg-options "-O1" } */ +/* { dg-options "-O2" } */ /* { dg-skip-if "" { "sh*-*-*" } { "-m5*"} { "" } } */ /* { dg-final { scan-assembler-times "rotcr" 24 } } */ /* { dg-final { scan-assembler-times "shll\t" 1 } } */