From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2140) id 37BF53844062; Thu, 11 Mar 2021 10:21:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 37BF53844062 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Alexandre Oliva To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/aoliva/heads/testme)] enable sqrt insns for cdce3.c X-Act-Checkin: gcc X-Git-Author: Alexandre Oliva X-Git-Refname: refs/users/aoliva/heads/testme X-Git-Oldrev: 0455cd76b687621f28488393c81d0854200a220a X-Git-Newrev: ebf766475b29921018417485e5015108478693e4 Message-Id: <20210311102122.37BF53844062@sourceware.org> Date: Thu, 11 Mar 2021 10:21:22 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Mar 2021 10:21:22 -0000 https://gcc.gnu.org/g:ebf766475b29921018417485e5015108478693e4 commit ebf766475b29921018417485e5015108478693e4 Author: Alexandre Oliva Date: Tue Mar 9 18:42:52 2021 -0300 enable sqrt insns for cdce3.c The test expects shrink-wrapping of the fsqrt call, but that will only occur when there is a usable sqrt insn. Arrange for dejagnu to add the options that enable the sqrt insn, if one is available, and to skip the test otherwise. for gcc/testsuite/ChangeLog * gcc.dg/cdce3.c: Add sqrt insn options. Diff: --- gcc/testsuite/gcc.dg/cdce3.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.dg/cdce3.c b/gcc/testsuite/gcc.dg/cdce3.c index 601ddf055fd..f9b3633e66a 100644 --- a/gcc/testsuite/gcc.dg/cdce3.c +++ b/gcc/testsuite/gcc.dg/cdce3.c @@ -1,7 +1,8 @@ /* { dg-do compile } */ /* { dg-require-effective-target hard_float } */ /* { dg-options "-O2 -fmath-errno -fdump-tree-cdce-details -fdump-tree-optimized" } */ -/* { dg-final { scan-tree-dump "cdce3.c:11: \[^\n\r]* function call is shrink-wrapped into error conditions\." "cdce" } } */ +/* { dg-add-options sqrt_insn } */ +/* { dg-final { scan-tree-dump "cdce3.c:12: \[^\n\r]* function call is shrink-wrapped into error conditions\." "cdce" } } */ /* { dg-final { scan-tree-dump "sqrtf \\(\[^\n\r]*\\); \\\[tail call\\\]" "optimized" } } */ /* { dg-skip-if "doesn't have a sqrtf insn" { mmix-*-* } } */