From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2140) id 702A13858C53; Sun, 21 Apr 2024 20:27:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 702A13858C53 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1713731245; bh=LK0fiPWt+1XV183Lo/GtvVxQCHJ637wjM5462NBvWWw=; h=From:To:Subject:Date:From; b=ImN4Y+OM3dxqynxP8gBbyiGIm+fuuCAcTJfvViu7mXQqCKV9JCvYxGtSBSAMbzLIq 0wsj0Kv3QnQEDG2qn1tZlNPCJ9K9ggGioUTfu/O/UND50tx6uWzlFZAqTPATMyUjqe 0OViEJ23NDC82OuUsJfKkQJMZCOjvx9OwRV9rHGo= 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: 032f38d814d0ba4f8713e616f21b0475d4e61937 X-Git-Newrev: 048689c644c10a99d8618bd0479f727e87e74b90 Message-Id: <20240421202725.702A13858C53@sourceware.org> Date: Sun, 21 Apr 2024 20:27:25 +0000 (GMT) List-Id: https://gcc.gnu.org/g:048689c644c10a99d8618bd0479f727e87e74b90 commit 048689c644c10a99d8618bd0479f727e87e74b90 Author: Alexandre Oliva Date: Sun Apr 21 17:24:00 2024 -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)