First Last Prev Next    No search results available
Details
: ACATS cxg2021 fails at -O3
Bug#: 2421
: tools
: gnat
Status: REOPENED
Resolution:
: Other
: Linux
: trunk
: P2
: normal
: ---

:
:
:
:
  Show dependency tree - Show dependency graph
People
Reporter: Duncan Sands <baldrick@free.fr>
Assigned To: Unassigned LLVM Bugs <unassignedbugs@nondot.org>
:

Attachments


Note

You need to log in before you can comment on or make changes to this bug.

Related actions


Description:   Opened: 2008-06-08 15:13
Building the ACATS tests at -O3 causes one additional failure: cxg2021.
------- Comment #1 From Duncan Sands 2009-01-29 05:52:02 -------
This went away when the gcc inliner was disabled.  Most likely
the underlying problem has just been covered up, but I don't
care enough to investigate further.  Note that the original
failure only occurred when using the x86 floating point stack,
and not when using sse registers.
------- Comment #2 From Duncan Sands 2009-02-02 04:46:21 -------
This recently started failing again (at -O2).
------- Comment #3 From Duncan Sands 2009-02-06 01:56:04 -------
Remarks: this seems to be due to extra precision in x86-32 floating
point registers versus the precision (64 bits) when stored to a stack
slot.  The test is testing 64 bit precision, and as far as I can see
it shouldn't matter whether you use stack stores or registers, since
both give values inside the Ada "model interval" (Ada uses an interval
arithmetic model for floating point).  I wasn't able to find anything
obviously wrong with the LLVM generated code.  Currently I suspect that
the test is wrong, but didn't finish analyzing it yet.
------- Comment #4 From Chris Lattner 2009-06-19 00:42:43 -------
still a problem?
------- Comment #5 From Duncan Sands 2009-06-19 03:21:04 -------
Yes, still a problem.  In fact it now fails at -O2!  It is not clear if this
is a bug in LLVM or in the test.  In order to resolve this I wrote my own
simulator of Ada floating point interval arithmetic, but having done so never
found the time to apply it to the analysis of this test, d'oh!

First Last Prev Next    No search results available