From: David Marchand <david.marchand@redhat.com>
To: "Mattias Rönnblom" <mattias.ronnblom@ericsson.com>
Cc: dev@dpdk.org, hofors@lysator.liu.se,
"Morten Brørup" <mb@smartsharesystems.com>,
"Luka Jankovic" <luka.jankovic@ericsson.com>,
"Thomas Monjalon" <thomas@monjalon.net>
Subject: Re: [PATCH] bitops: fix issue in parallel atomic tests
Date: Mon, 14 Oct 2024 16:14:58 +0200 [thread overview]
Message-ID: <CAJFAV8yCsGeAGBN7-3zQ76n1ONRxYtX+Jas7RpKCo96c4jdpkw@mail.gmail.com> (raw)
In-Reply-To: <20241013115719.820853-1-mattias.ronnblom@ericsson.com>
On Sun, Oct 13, 2024 at 2:06 PM Mattias Rönnblom
<mattias.ronnblom@ericsson.com> wrote:
>
> The macros generating the parallel test for atomic test-and-
> [set|clear|flip] functions used a 64-bit reference word when assuring
> no neighbouring bits were modified, even when generating code for the
> 32-bit version of the test.
>
> This issue causes spurious test failures on GCC 12.2.0 (the default
> compiler on for example Debian 12 "bookworm"), when optimization level
> 2 or higher are used.
>
> The test failures do not occur with GCC 11, 12.3 and 13.2.
>
> To the author, this looks like a promotion-related compiler bug in GCC
> 12.2.
>
> Fixes: 35326b61aecb ("bitops: add atomic bit operations in new API")
>
> Signed-off-by: Mattias Rönnblom <mattias.ronnblom@ericsson.com>
> Reviewed-by: Morten Brørup <mb@smartsharesystems.com>
Tested-by: David Marchand <david.marchand@redhat.com>
Applied to fix the CI, thanks.
--
David Marchand
prev parent reply other threads:[~2024-10-14 14:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-13 11:57 Mattias Rönnblom
2024-10-13 13:37 ` Morten Brørup
2024-10-13 15:19 ` Mattias Rönnblom
2024-10-13 15:36 ` Morten Brørup
2024-10-14 14:16 ` David Marchand
2024-10-14 14:33 ` Mattias Rönnblom
2024-10-14 14:14 ` David Marchand [this message]
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=CAJFAV8yCsGeAGBN7-3zQ76n1ONRxYtX+Jas7RpKCo96c4jdpkw@mail.gmail.com \
--to=david.marchand@redhat.com \
--cc=dev@dpdk.org \
--cc=hofors@lysator.liu.se \
--cc=luka.jankovic@ericsson.com \
--cc=mattias.ronnblom@ericsson.com \
--cc=mb@smartsharesystems.com \
--cc=thomas@monjalon.net \
/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 NNTP newsgroup(s).