From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2140) id 7CB0F3858C1F; Thu, 6 Apr 2023 06:33:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7CB0F3858C1F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1680762821; bh=nfcwp1Du+sJWQXKKGvA20lsXvJxi8r5hQt+VMG/79Og=; h=From:To:Subject:Date:From; b=BfK7IZvxiDAMDAZUkOWd+JBJ3ziiXkKnBv9aODduMoSpG6WpzHiaOkX1lCxeWRW9E tQn2nx9hd9Zdg9QLnYPkae9f8IS4dyXtxnEI7B5rPTyl2VVyZ7X4r/A5LEz/8g2DK+ LAPU/I6hxzNQcCiVzxcbaCb4nr/gOCNm7xhpP9NI= 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)] add -mpowerpc-gpopt to options for sqrt insn on PowerPC X-Act-Checkin: gcc X-Git-Author: Eric Botcazou X-Git-Refname: refs/users/aoliva/heads/testme X-Git-Oldrev: cd21ef6ec221fabe6a96d4007736692ea44935aa X-Git-Newrev: 213930356a33f1d4746a725898e4a32268eaca3c Message-Id: <20230406063341.7CB0F3858C1F@sourceware.org> Date: Thu, 6 Apr 2023 06:33:41 +0000 (GMT) List-Id: https://gcc.gnu.org/g:213930356a33f1d4746a725898e4a32268eaca3c commit 213930356a33f1d4746a725898e4a32268eaca3c Author: Eric Botcazou Date: Wed Apr 5 11:26:23 2023 -0300 add -mpowerpc-gpopt to options for sqrt insn on PowerPC for gcc/testsuite/ChangeLog * lib/target-supports.exp (add_options_for_sqrt_insn): For PowerPC targets, add -mpowerpc-gpopt option. Diff: --- gcc/testsuite/gcc.dg/gimplefe-28.c | 1 + gcc/testsuite/lib/target-supports.exp | 3 +++ 2 files changed, 4 insertions(+) diff --git a/gcc/testsuite/gcc.dg/gimplefe-28.c b/gcc/testsuite/gcc.dg/gimplefe-28.c index d2f6b4c5c3d..5f478b32d52 100644 --- a/gcc/testsuite/gcc.dg/gimplefe-28.c +++ b/gcc/testsuite/gcc.dg/gimplefe-28.c @@ -1,6 +1,7 @@ /* { dg-do compile { target sqrt_insn } } */ /* { dg-options "-fgimple -O2" } */ /* { dg-add-options sqrt_insn } */ +/* { dg-require-effective-target sqrt_insn } */ double __GIMPLE f1 (double x) diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 1d6cc6f8d88..b1bce6dace4 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -8580,6 +8580,9 @@ proc add_options_for_sqrt_insn { flags } { if { [istarget arm*-*-*] } { return [add_options_for_arm_vfp "$flags"] } + if { [istarget powerpc*-*-*] } { + return "$flags -mpowerpc-gpopt" + } return $flags }