public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "michael.hudson at canonical dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug math/29488] New: test-ibm128-llround fails on ppc64el when built with gcc-12 and -O2 or higher
Date: Mon, 15 Aug 2022 01:31:00 +0000	[thread overview]
Message-ID: <bug-29488-131@http.sourceware.org/bugzilla/> (raw)

https://sourceware.org/bugzilla/show_bug.cgi?id=29488

            Bug ID: 29488
           Summary: test-ibm128-llround fails on ppc64el when built with
                    gcc-12 and -O2 or higher
           Product: glibc
           Version: 2.36
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: math
          Assignee: unassigned at sourceware dot org
          Reporter: michael.hudson at canonical dot com
  Target Milestone: ---

root@kinetic:~/build# ./elf/ld.so --library-path .:math
./math/test-ibm128-llround
testing long double (without inline functions)
Failure: llround (0x7fffffffffffffff.8p0): Exception "Invalid operation" not
set
Failure: llround_downward (0x7fffffffffffffff.8p0): Exception "Invalid
operation" not set
Failure: llround_towardzero (0x7fffffffffffffff.8p0): Exception "Invalid
operation" not set
Failure: llround_upward (0x7fffffffffffffff.8p0): Exception "Invalid operation"
not set

Test suite completed:
  1156 test cases plus 656 tests for exception flags and
    656 tests for errno executed.
  4 errors occurred.

Recompiling math/s_llroundl.os with gcc-11 or with gcc-12 -O1 is enough to fix
this. Looking at the disassembly though I'm completely confused, feraiseexcept
(FE_INVALID); is still getting called in the failing case and the code that
runs after that looks the same (I've spent far too long trying to debug this).
I've uploaded the .o files to https://people.canonical.com/~mwh/good.o and
https://people.canonical.com/~mwh/bad.o -- good luck to the next person!

-- 
You are receiving this mail because:
You are on the CC list for the bug.

             reply	other threads:[~2022-08-15  1:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-15  1:31 michael.hudson at canonical dot com [this message]
2022-08-15  1:31 ` [Bug math/29488] " michael.hudson at canonical dot com
2022-10-24 18:49 ` aurelien at aurel32 dot net

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=bug-29488-131@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=glibc-bugs@sourceware.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).