public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/36106] #pragma omp atomic issues with floating point types
2008-05-02 11:41 [Bug middle-end/36106] New: #pragma omp atomic issues with floating point types jakub at gcc dot gnu dot org
@ 2008-05-02 11:41 ` jakub at gcc dot gnu dot org
2008-05-05 10:40 ` jakub at gcc dot gnu dot org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-05-02 11:41 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from jakub at gcc dot gnu dot org 2008-05-02 11:40 -------
Created an attachment (id=15562)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15562&action=view)
gcc44-pr36106-test.patch
Testcases.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36106
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/36106] New: #pragma omp atomic issues with floating point types
@ 2008-05-02 11:41 jakub at gcc dot gnu dot org
2008-05-02 11:41 ` [Bug middle-end/36106] " jakub at gcc dot gnu dot org
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-05-02 11:41 UTC (permalink / raw)
To: gcc-bugs
Attached testcases fail on x86_64 (with cmpxchg16b) or i386 (with cmpxchg8b),
in both cases the problem is that reading the original value using FPU and
storing it into a temporary doesn't mean bitwise identical copy (in the first
case because long double is said to be a 16 byte type, even when the copy
through FPU actually copies just 80 bits, and in the latter case because the
copy turns the signalling NaN into a corresponding quiet NaN). This means both
testcases hang.
Will work on a fix.
--
Summary: #pragma omp atomic issues with floating point types
Product: gcc
Version: 4.3.1
Status: UNCONFIRMED
Keywords: openmp
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jakub at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36106
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/36106] #pragma omp atomic issues with floating point types
2008-05-02 11:41 [Bug middle-end/36106] New: #pragma omp atomic issues with floating point types jakub at gcc dot gnu dot org
2008-05-02 11:41 ` [Bug middle-end/36106] " jakub at gcc dot gnu dot org
@ 2008-05-05 10:40 ` jakub at gcc dot gnu dot org
2008-05-05 15:40 ` [Bug target/36106] " pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-05-05 10:40 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from jakub at gcc dot gnu dot org 2008-05-05 10:39 -------
This is nothing target specific though, on many targets reading a float or
double sNaN into a FPU register and storing back somewhere else leads to qNaN
being stored.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|target |middle-end
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36106
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/36106] #pragma omp atomic issues with floating point types
2008-05-02 11:41 [Bug middle-end/36106] New: #pragma omp atomic issues with floating point types jakub at gcc dot gnu dot org
2008-05-02 11:41 ` [Bug middle-end/36106] " jakub at gcc dot gnu dot org
2008-05-05 10:40 ` jakub at gcc dot gnu dot org
@ 2008-05-05 15:40 ` pinskia at gcc dot gnu dot org
2008-05-05 15:48 ` [Bug middle-end/36106] " jakub at gcc dot gnu dot org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-05-05 15:40 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pinskia at gcc dot gnu dot org 2008-05-05 15:40 -------
That sounds like a bug in the target back-ends for not storing exactly the
bit-wise for NaNs.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|middle-end |target
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36106
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/36106] #pragma omp atomic issues with floating point types
2008-05-02 11:41 [Bug middle-end/36106] New: #pragma omp atomic issues with floating point types jakub at gcc dot gnu dot org
` (2 preceding siblings ...)
2008-05-05 15:40 ` [Bug target/36106] " pinskia at gcc dot gnu dot org
@ 2008-05-05 15:48 ` jakub at gcc dot gnu dot org
2008-05-06 9:21 ` jakub at gcc dot gnu dot org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-05-05 15:48 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from jakub at gcc dot gnu dot org 2008-05-05 15:47 -------
Not really, as IEEE754 mandates turning sNaN into qNaN after raising the
exception. I have a fix in the works in omp-low.c (so far works for non-SSA
and not yet for -ftree-parallelize-loops) and that's middle-end.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|target |middle-end
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36106
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/36106] #pragma omp atomic issues with floating point types
2008-05-02 11:41 [Bug middle-end/36106] New: #pragma omp atomic issues with floating point types jakub at gcc dot gnu dot org
` (3 preceding siblings ...)
2008-05-05 15:48 ` [Bug middle-end/36106] " jakub at gcc dot gnu dot org
@ 2008-05-06 9:21 ` jakub at gcc dot gnu dot org
2008-05-07 7:29 ` jakub at gcc dot gnu dot org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-05-06 9:21 UTC (permalink / raw)
To: gcc-bugs
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jakub at gcc dot gnu dot org
|dot org |
URL| |http://gcc.gnu.org/ml/gcc-
| |patches/2008-
| |05/msg00260.html
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2008-05-06 09:20:48
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36106
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/36106] #pragma omp atomic issues with floating point types
2008-05-02 11:41 [Bug middle-end/36106] New: #pragma omp atomic issues with floating point types jakub at gcc dot gnu dot org
` (4 preceding siblings ...)
2008-05-06 9:21 ` jakub at gcc dot gnu dot org
@ 2008-05-07 7:29 ` jakub at gcc dot gnu dot org
2008-05-07 7:56 ` jakub at gcc dot gnu dot org
2008-05-07 8:05 ` jakub at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-05-07 7:29 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from jakub at gcc dot gnu dot org 2008-05-07 07:28 -------
Subject: Bug 36106
Author: jakub
Date: Wed May 7 07:28:14 2008
New Revision: 135027
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=135027
Log:
PR middle-end/36106
* omp-low.c (expand_omp_atomic_pipeline): Load value using the
integral type rather than floating point, then VIEW_CONVERT_EXPR
to the floating point type.
* testsuite/libgomp.c/atomic-5.c: New test.
* testsuite/libgomp.c/atomic-6.c: New test.
* testsuite/libgomp.c/autopar-1.c: New test.
Added:
trunk/libgomp/testsuite/libgomp.c/atomic-5.c
trunk/libgomp/testsuite/libgomp.c/atomic-6.c
trunk/libgomp/testsuite/libgomp.c/autopar-1.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/omp-low.c
trunk/libgomp/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36106
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/36106] #pragma omp atomic issues with floating point types
2008-05-02 11:41 [Bug middle-end/36106] New: #pragma omp atomic issues with floating point types jakub at gcc dot gnu dot org
` (5 preceding siblings ...)
2008-05-07 7:29 ` jakub at gcc dot gnu dot org
@ 2008-05-07 7:56 ` jakub at gcc dot gnu dot org
2008-05-07 8:05 ` jakub at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-05-07 7:56 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from jakub at gcc dot gnu dot org 2008-05-07 07:56 -------
Subject: Bug 36106
Author: jakub
Date: Wed May 7 07:55:21 2008
New Revision: 135030
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=135030
Log:
PR middle-end/36106
* omp-low.c (expand_omp_atomic_pipeline): Load value using the
integral type rather than floating point, then VIEW_CONVERT_EXPR
to the floating point type.
* testsuite/libgomp.c/atomic-5.c: New test.
* testsuite/libgomp.c/atomic-6.c: New test.
* testsuite/libgomp.c/autopar-1.c: New test.
Added:
branches/gcc-4_3-branch/libgomp/testsuite/libgomp.c/atomic-5.c
branches/gcc-4_3-branch/libgomp/testsuite/libgomp.c/atomic-6.c
branches/gcc-4_3-branch/libgomp/testsuite/libgomp.c/autopar-1.c
Modified:
branches/gcc-4_3-branch/gcc/ChangeLog
branches/gcc-4_3-branch/gcc/omp-low.c
branches/gcc-4_3-branch/libgomp/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36106
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug middle-end/36106] #pragma omp atomic issues with floating point types
2008-05-02 11:41 [Bug middle-end/36106] New: #pragma omp atomic issues with floating point types jakub at gcc dot gnu dot org
` (6 preceding siblings ...)
2008-05-07 7:56 ` jakub at gcc dot gnu dot org
@ 2008-05-07 8:05 ` jakub at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-05-07 8:05 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from jakub at gcc dot gnu dot org 2008-05-07 08:05 -------
Fixed.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36106
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2008-05-07 8:05 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-02 11:41 [Bug middle-end/36106] New: #pragma omp atomic issues with floating point types jakub at gcc dot gnu dot org
2008-05-02 11:41 ` [Bug middle-end/36106] " jakub at gcc dot gnu dot org
2008-05-05 10:40 ` jakub at gcc dot gnu dot org
2008-05-05 15:40 ` [Bug target/36106] " pinskia at gcc dot gnu dot org
2008-05-05 15:48 ` [Bug middle-end/36106] " jakub at gcc dot gnu dot org
2008-05-06 9:21 ` jakub at gcc dot gnu dot org
2008-05-07 7:29 ` jakub at gcc dot gnu dot org
2008-05-07 7:56 ` jakub at gcc dot gnu dot org
2008-05-07 8:05 ` jakub at gcc dot gnu dot org
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).