From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2140) id DB672385841E; Wed, 15 Mar 2023 14:04:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DB672385841E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1678889082; bh=eTIzkUl2ELVu9FiAH4E55TyB/VfGqUh5NZnTaAm3sow=; h=From:To:Subject:Date:From; b=n8FCKd1Pg6tLngsBy5TwkEvqk9HW49TcPtR6fivSDm4lv7rGy0Kjb6QHTmxGl0XQ+ s99smRyQJ+IZCH/79s7eFoSWRkhA8V+5FZkDg8sGpm8JG6w9a9XG2UV18qINaVePoz Nwb8AOhTWZsxasH0EAUCwQAh9tTYQBN+a2PVpRW0= 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: 4d29d570cce6113cb029e6352e4d003ee1bafcf1 X-Git-Newrev: af7f6acc8b942dc3849c584fca81ec6391ac6464 Message-Id: <20230315140442.DB672385841E@sourceware.org> Date: Wed, 15 Mar 2023 14:04:42 +0000 (GMT) List-Id: https://gcc.gnu.org/g:af7f6acc8b942dc3849c584fca81ec6391ac6464 commit af7f6acc8b942dc3849c584fca81ec6391ac6464 Author: Alexandre Oliva Date: Thu Mar 18 05:35:16 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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/gcc.dg/cdce3.c b/gcc/testsuite/gcc.dg/cdce3.c index 601ddf055fd..218c24d38f1 100644 --- a/gcc/testsuite/gcc.dg/cdce3.c +++ b/gcc/testsuite/gcc.dg/cdce3.c @@ -1,9 +1,10 @@ /* { 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-require-effective-target 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-*-* } } */ float sqrtf (float); float foo (float x)