diff mbox

[SH,committed] Adjust pr54089-1.c test case

Message ID 1418766031.8915.11.camel@yam-132-YW-E178-FTW
State New
Headers show

Commit Message

Oleg Endo Dec. 16, 2014, 9:40 p.m. UTC
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.
diff mbox

Patch

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 } } */