public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Olivier Hainque <hainque@adacore.com>
To: gcc-patches <gcc-patches@gcc.gnu.org>
Cc: Olivier Hainque <hainque@adacore.com>, segher@kernel.crashing.org
Subject: [PATCH] Add -mdejagnu-cpu=power9 to dg-options for pr97142.c
Date: Fri, 17 Dec 2021 12:43:32 +0100	[thread overview]
Message-ID: <8BBF21B2-C6C2-4460-9031-2528B736275B@adacore.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 391 bytes --]

Hello,

gcc.target/powerpc/pr97142.c scans the output assembly
for specific instructions which our toolchain configured
to default to -mcpu=604 doesn't produce.

The PR refers to a power9 configuration for the original
report, so the attached patch is a suggestion to add a
-mdejagnu-cpu=power9 to dg-options, which gets the test
to pass for us.

Ok to commit?

Thanks in advance,

Olivier


[-- Attachment #2: 0001-Add-mdejagnu-cpu-power9-to-dg-options-for-pr97142.c.diff --]
[-- Type: application/octet-stream, Size: 976 bytes --]

From b6320101466749c516260afc580b80d9e518d87a Mon Sep 17 00:00:00 2001
From: Olivier Hainque <hainque@adacore.com>
Date: Sat, 9 Oct 2021 13:22:12 +0000
Subject: [PATCH] Add -mdejagnu-cpu=power9 to dg-options for pr97142.c

To match the tests expectations for toolchains
configured to default to not so capable cpus.

2021-12-17  Olivier Hainque  <hainque@adacore.com>

	* gcc.target/powerpc/pr97142.c: Add -mdejagnu-cpu=power9
	to the dg-options.
---
 gcc/testsuite/gcc.target/powerpc/pr97142.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.target/powerpc/pr97142.c b/gcc/testsuite/gcc.target/powerpc/pr97142.c
index 0e5f1c1f61b..f32deef431a 100644
--- a/gcc/testsuite/gcc.target/powerpc/pr97142.c
+++ b/gcc/testsuite/gcc.target/powerpc/pr97142.c
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-Ofast" } */
+/* { dg-options "-Ofast -mdejagnu-cpu=power9" } */
 
 #include <math.h>
 
-- 
2.25.1


             reply	other threads:[~2021-12-17 11:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-17 11:43 Olivier Hainque [this message]
2021-12-17 12:58 ` Segher Boessenkool
2021-12-17 14:04   ` Olivier Hainque
2021-12-17 15:17     ` Segher Boessenkool
2021-12-17 18:12       ` Olivier Hainque

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8BBF21B2-C6C2-4460-9031-2528B736275B@adacore.com \
    --to=hainque@adacore.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=segher@kernel.crashing.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).