This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[SH] Fix PR 49468 testcases
- From: Oleg Endo <oleg dot endo at t-online dot de>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 14 Mar 2012 00:03:46 +0100
- Subject: [SH] Fix PR 49468 testcases
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 } } */