This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[SH][committed] Adjust pr54089-1.c test case
- From: Oleg Endo <oleg dot endo at t-online dot de>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 16 Dec 2014 22:40:31 +0100
- Subject: [SH][committed] Adjust pr54089-1.c test case
- Authentication-results: sourceware.org; auth=none
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 } } */