public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug math/3268] fma for all targets without hardware fma instructions is incorrect.
       [not found] <bug-3268-131@http.sourceware.org/bugzilla/>
@ 2011-10-17 20:10 ` bruno at clisp dot org
  2011-10-17 20:27 ` jakub at redhat dot com
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 30+ messages in thread
From: bruno at clisp dot org @ 2011-10-17 20:10 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=3268

Bruno Haible <bruno at clisp dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Depends on|                            |13304

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Bug math/3268] fma for all targets without hardware fma instructions is incorrect.
       [not found] <bug-3268-131@http.sourceware.org/bugzilla/>
  2011-10-17 20:10 ` [Bug math/3268] fma for all targets without hardware fma instructions is incorrect bruno at clisp dot org
@ 2011-10-17 20:27 ` jakub at redhat dot com
  2011-10-18  7:24 ` aj at suse dot de
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 30+ messages in thread
From: jakub at redhat dot com @ 2011-10-17 20:27 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=3268

Jakub Jelinek <jakub at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at redhat dot com

--- Comment #23 from Jakub Jelinek <jakub at redhat dot com> 2011-10-17 20:26:20 UTC ---
glibc 2.14 later should have correct fma{,f,l} implementation, except for
targets which don't support exceptions properly and thus round-to-odd trick
doesn't work there, and except for PowerPC long double (where it is even
unclear what actually should fmal do because of the floating point format weird
properties).

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Bug math/3268] fma for all targets without hardware fma instructions is incorrect.
       [not found] <bug-3268-131@http.sourceware.org/bugzilla/>
  2011-10-17 20:10 ` [Bug math/3268] fma for all targets without hardware fma instructions is incorrect bruno at clisp dot org
  2011-10-17 20:27 ` jakub at redhat dot com
@ 2011-10-18  7:24 ` aj at suse dot de
  2012-02-26 17:48 ` jsm28 at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 30+ messages in thread
From: aj at suse dot de @ 2011-10-18  7:24 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=3268

Bug 3268 depends on bug 13304, which changed state.

Bug 13304 Summary: fma, fmaf, fmal produce wrong results
http://sourceware.org/bugzilla/show_bug.cgi?id=13304

           What    |Old Value                   |New Value
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Bug math/3268] fma for all targets without hardware fma instructions is incorrect.
       [not found] <bug-3268-131@http.sourceware.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2011-10-18  7:24 ` aj at suse dot de
@ 2012-02-26 17:48 ` jsm28 at gcc dot gnu.org
  2014-02-16 19:42 ` jackie.rosen at hushmail dot com
  2014-05-28 19:40 ` schwab at sourceware dot org
  5 siblings, 0 replies; 30+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2012-02-26 17:48 UTC (permalink / raw)
  To: glibc-bugs

http://sourceware.org/bugzilla/show_bug.cgi?id=3268

Joseph Myers <jsm28 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |DUPLICATE

--- Comment #24 from Joseph Myers <jsm28 at gcc dot gnu.org> 2012-02-26 17:47:58 UTC ---
Bug 13304 is the bug with the most recent discussion of generic fma
implementations for systems without exceptions / rounding modes, so marking
this one as a duplicate; I don't think we need both open.

*** This bug has been marked as a duplicate of bug 13304 ***

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Bug math/3268] fma for all targets without hardware fma instructions is incorrect.
       [not found] <bug-3268-131@http.sourceware.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2012-02-26 17:48 ` jsm28 at gcc dot gnu.org
@ 2014-02-16 19:42 ` jackie.rosen at hushmail dot com
  2014-05-28 19:40 ` schwab at sourceware dot org
  5 siblings, 0 replies; 30+ messages in thread
From: jackie.rosen at hushmail dot com @ 2014-02-16 19:42 UTC (permalink / raw)
  To: glibc-bugs

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

Jackie Rosen <jackie.rosen at hushmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jackie.rosen at hushmail dot com

--- Comment #25 from Jackie Rosen <jackie.rosen at hushmail dot com> ---
*** Bug 260998 has been marked as a duplicate of this bug. ***
Seen from the domain http://volichat.com
Page where seen: http://volichat.com/adult-chat-rooms
Marked for reference. Resolved as fixed @bugzilla.

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


^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Bug math/3268] fma for all targets without hardware fma instructions is incorrect.
       [not found] <bug-3268-131@http.sourceware.org/bugzilla/>
                   ` (4 preceding siblings ...)
  2014-02-16 19:42 ` jackie.rosen at hushmail dot com
@ 2014-05-28 19:40 ` schwab at sourceware dot org
  5 siblings, 0 replies; 30+ messages in thread
From: schwab at sourceware dot org @ 2014-05-28 19:40 UTC (permalink / raw)
  To: glibc-bugs

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

Andreas Schwab <schwab at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|jackie.rosen at hushmail dot com   |

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


^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Bug math/3268] fma for all targets without hardware fma instructions is incorrect.
  2006-09-26 21:22 [Bug math/3268] New: fma for soft-fp is not correct sjmunroe at us dot ibm dot com
                   ` (22 preceding siblings ...)
  2010-02-02 21:57 ` nbowler at draconx dot ca
@ 2010-06-29 11:50 ` zimmerma+gcc at loria dot fr
  23 siblings, 0 replies; 30+ messages in thread
From: zimmerma+gcc at loria dot fr @ 2010-06-29 11:50 UTC (permalink / raw)
  To: glibc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |zimmerma+gcc at loria dot fr


http://sourceware.org/bugzilla/show_bug.cgi?id=3268

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Bug math/3268] fma for all targets without hardware fma instructions is incorrect.
  2006-09-26 21:22 [Bug math/3268] New: fma for soft-fp is not correct sjmunroe at us dot ibm dot com
                   ` (21 preceding siblings ...)
  2010-02-02 21:56 ` nbowler at draconx dot ca
@ 2010-02-02 21:57 ` nbowler at draconx dot ca
  2010-06-29 11:50 ` zimmerma+gcc at loria dot fr
  23 siblings, 0 replies; 30+ messages in thread
From: nbowler at draconx dot ca @ 2010-02-02 21:57 UTC (permalink / raw)
  To: glibc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nbowler at draconx dot ca


http://sourceware.org/bugzilla/show_bug.cgi?id=3268

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Bug math/3268] fma for all targets without hardware fma instructions is incorrect.
  2006-09-26 21:22 [Bug math/3268] New: fma for soft-fp is not correct sjmunroe at us dot ibm dot com
                   ` (20 preceding siblings ...)
  2007-10-22 14:44 ` vincent+libc at vinc17 dot org
@ 2010-02-02 21:56 ` nbowler at draconx dot ca
  2010-02-02 21:57 ` nbowler at draconx dot ca
  2010-06-29 11:50 ` zimmerma+gcc at loria dot fr
  23 siblings, 0 replies; 30+ messages in thread
From: nbowler at draconx dot ca @ 2010-02-02 21:56 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From nbowler at draconx dot ca  2010-02-02 21:56 -------
Created an attachment (id=4569)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=4569&action=view)
Example demonstrating fma failure on x86_64

The fma function is still incorrect on x86_64 (with glibc version 2.11) when
the multiplication overflows but the final result would not: the result is an
infinity instead of the rounded true result.

See the attached C program for a demonstration.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=3268

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Bug math/3268] fma for all targets without hardware fma instructions is incorrect.
  2006-09-26 21:22 [Bug math/3268] New: fma for soft-fp is not correct sjmunroe at us dot ibm dot com
                   ` (19 preceding siblings ...)
  2007-04-03 19:39 ` sjmunroe at us dot ibm dot com
@ 2007-10-22 14:44 ` vincent+libc at vinc17 dot org
  2010-02-02 21:56 ` nbowler at draconx dot ca
                   ` (2 subsequent siblings)
  23 siblings, 0 replies; 30+ messages in thread
From: vincent+libc at vinc17 dot org @ 2007-10-22 14:44 UTC (permalink / raw)
  To: glibc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |vincent+libc at vinc17 dot
                   |                            |org


http://sourceware.org/bugzilla/show_bug.cgi?id=3268

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Bug math/3268] fma for all targets without hardware fma instructions is incorrect.
  2006-09-26 21:22 [Bug math/3268] New: fma for soft-fp is not correct sjmunroe at us dot ibm dot com
                   ` (18 preceding siblings ...)
  2007-04-03 19:06 ` sjmunroe at us dot ibm dot com
@ 2007-04-03 19:39 ` sjmunroe at us dot ibm dot com
  2007-10-22 14:44 ` vincent+libc at vinc17 dot org
                   ` (3 subsequent siblings)
  23 siblings, 0 replies; 30+ messages in thread
From: sjmunroe at us dot ibm dot com @ 2007-04-03 19:39 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From sjmunroe at us dot ibm dot com  2007-04-03 20:39 -------
Created an attachment (id=1666)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=1666&action=view)
Updated fma_test for current CVS

Verfied on CVS from April 3rd

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
Attachment #1515 is|0                           |1
           obsolete|                            |


http://sourceware.org/bugzilla/show_bug.cgi?id=3268

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Bug math/3268] fma for all targets without hardware fma instructions is incorrect.
  2006-09-26 21:22 [Bug math/3268] New: fma for soft-fp is not correct sjmunroe at us dot ibm dot com
                   ` (17 preceding siblings ...)
  2007-04-03 18:00 ` sjmunroe at us dot ibm dot com
@ 2007-04-03 19:06 ` sjmunroe at us dot ibm dot com
  2007-04-03 19:39 ` sjmunroe at us dot ibm dot com
                   ` (4 subsequent siblings)
  23 siblings, 0 replies; 30+ messages in thread
From: sjmunroe at us dot ibm dot com @ 2007-04-03 19:06 UTC (permalink / raw)
  To: glibc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
Attachment #1512 is|0                           |1
           obsolete|                            |


http://sourceware.org/bugzilla/show_bug.cgi?id=3268

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Bug math/3268] fma for all targets without hardware fma instructions is incorrect.
  2006-09-26 21:22 [Bug math/3268] New: fma for soft-fp is not correct sjmunroe at us dot ibm dot com
                   ` (16 preceding siblings ...)
  2007-04-03 17:59 ` joseph at codesourcery dot com
@ 2007-04-03 18:00 ` sjmunroe at us dot ibm dot com
  2007-04-03 19:06 ` sjmunroe at us dot ibm dot com
                   ` (5 subsequent siblings)
  23 siblings, 0 replies; 30+ messages in thread
From: sjmunroe at us dot ibm dot com @ 2007-04-03 18:00 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From sjmunroe at us dot ibm dot com  2007-04-03 19:00 -------
Created an attachment (id=1665)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=1665&action=view)
updated patch to add float/double fma to soft-fp

verified with glibc cvs from April 3rd.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=3268

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Bug math/3268] fma for all targets without hardware fma instructions is incorrect.
  2006-09-26 21:22 [Bug math/3268] New: fma for soft-fp is not correct sjmunroe at us dot ibm dot com
                   ` (15 preceding siblings ...)
  2007-04-03 17:58 ` sjmunroe at us dot ibm dot com
@ 2007-04-03 17:59 ` joseph at codesourcery dot com
  2007-04-03 18:00 ` sjmunroe at us dot ibm dot com
                   ` (6 subsequent siblings)
  23 siblings, 0 replies; 30+ messages in thread
From: joseph at codesourcery dot com @ 2007-04-03 17:59 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From joseph at codesourcery dot com  2007-04-03 18:58 -------
Subject: Re:  fma for all targets without hardware fma instructions is incorrect.

Thank you for your message.

I am away from my email from 29 March to 2 April.  Messages sent
before 29 March will be read before I go away; messages sent during
that period will be read after I return.  If you need a response
before my return, please contact Nathan Sidwell
<nathan@codesourcery.com>.



-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=3268

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Bug math/3268] fma for all targets without hardware fma instructions is incorrect.
  2006-09-26 21:22 [Bug math/3268] New: fma for soft-fp is not correct sjmunroe at us dot ibm dot com
                   ` (14 preceding siblings ...)
  2007-02-26 22:08 ` sjmunroe at us dot ibm dot com
@ 2007-04-03 17:58 ` sjmunroe at us dot ibm dot com
  2007-04-03 17:59 ` joseph at codesourcery dot com
                   ` (7 subsequent siblings)
  23 siblings, 0 replies; 30+ messages in thread
From: sjmunroe at us dot ibm dot com @ 2007-04-03 17:58 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From sjmunroe at us dot ibm dot com  2007-04-03 18:58 -------
Created an attachment (id=1664)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=1664&action=view)
Updated ports soft-fp fma patch for PPC32

Verified with CVS from April 3rd.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
Attachment #1514 is|0                           |1
           obsolete|                            |


http://sourceware.org/bugzilla/show_bug.cgi?id=3268

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Bug math/3268] fma for all targets without hardware fma instructions is incorrect.
  2006-09-26 21:22 [Bug math/3268] New: fma for soft-fp is not correct sjmunroe at us dot ibm dot com
                   ` (13 preceding siblings ...)
  2007-02-18 13:51 ` aj at suse dot de
@ 2007-02-26 22:08 ` sjmunroe at us dot ibm dot com
  2007-04-03 17:58 ` sjmunroe at us dot ibm dot com
                   ` (8 subsequent siblings)
  23 siblings, 0 replies; 30+ messages in thread
From: sjmunroe at us dot ibm dot com @ 2007-02-26 22:08 UTC (permalink / raw)
  To: glibc-bugs



-- 
Bug 3268 depends on bug 2749, which changed state.

Bug 2749 Summary: powerpc32 does not build --without-fp
http://sourceware.org/bugzilla/show_bug.cgi?id=2749

           What    |Old Value                   |New Value
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED

http://sourceware.org/bugzilla/show_bug.cgi?id=3268

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Bug math/3268] fma for all targets without hardware fma instructions is incorrect.
  2006-09-26 21:22 [Bug math/3268] New: fma for soft-fp is not correct sjmunroe at us dot ibm dot com
                   ` (12 preceding siblings ...)
  2007-02-06 16:33 ` sjmunroe at us dot ibm dot com
@ 2007-02-18 13:51 ` aj at suse dot de
  2007-02-26 22:08 ` sjmunroe at us dot ibm dot com
                   ` (9 subsequent siblings)
  23 siblings, 0 replies; 30+ messages in thread
From: aj at suse dot de @ 2007-02-18 13:51 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From aj at suse dot de  2007-02-18 13:51 -------
following comment #15.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|aj at suse dot de           |sjmunroe at us dot ibm dot
                   |                            |com


http://sourceware.org/bugzilla/show_bug.cgi?id=3268

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Bug math/3268] fma for all targets without hardware fma instructions is incorrect.
  2006-09-26 21:22 [Bug math/3268] New: fma for soft-fp is not correct sjmunroe at us dot ibm dot com
                   ` (11 preceding siblings ...)
  2007-02-06 16:31 ` sjmunroe at us dot ibm dot com
@ 2007-02-06 16:33 ` sjmunroe at us dot ibm dot com
  2007-02-18 13:51 ` aj at suse dot de
                   ` (10 subsequent siblings)
  23 siblings, 0 replies; 30+ messages in thread
From: sjmunroe at us dot ibm dot com @ 2007-02-06 16:33 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From sjmunroe at us dot ibm dot com  2007-02-06 16:32 -------
I think this bug is fixed. 

If you want I can open a separate bug for soft-fp fmal support.

Anyone disagree?

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=3268

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Bug math/3268] fma for all targets without hardware fma instructions is incorrect.
  2006-09-26 21:22 [Bug math/3268] New: fma for soft-fp is not correct sjmunroe at us dot ibm dot com
                   ` (10 preceding siblings ...)
  2007-02-06 16:30 ` sjmunroe at us dot ibm dot com
@ 2007-02-06 16:31 ` sjmunroe at us dot ibm dot com
  2007-02-06 16:33 ` sjmunroe at us dot ibm dot com
                   ` (11 subsequent siblings)
  23 siblings, 0 replies; 30+ messages in thread
From: sjmunroe at us dot ibm dot com @ 2007-02-06 16:31 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From sjmunroe at us dot ibm dot com  2007-02-06 16:31 -------
No one else is working on this so, I'll assign it to my self.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED


http://sourceware.org/bugzilla/show_bug.cgi?id=3268

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Bug math/3268] fma for all targets without hardware fma instructions is incorrect.
  2006-09-26 21:22 [Bug math/3268] New: fma for soft-fp is not correct sjmunroe at us dot ibm dot com
                   ` (9 preceding siblings ...)
  2007-02-05 20:50 ` jakub at redhat dot com
@ 2007-02-06 16:30 ` sjmunroe at us dot ibm dot com
  2007-02-06 16:31 ` sjmunroe at us dot ibm dot com
                   ` (12 subsequent siblings)
  23 siblings, 0 replies; 30+ messages in thread
From: sjmunroe at us dot ibm dot com @ 2007-02-06 16:30 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From sjmunroe at us dot ibm dot com  2007-02-06 16:30 -------
Yes what you suggest should work for the generic s_fmaf.c, but that is not the
current implmentation. Also fmasf4.c should be a little faster as it avoids some
of the more expensive intermediate conversions.

s_fma.c would be more problematic because it would require full IEEE quad and TF
type support. I believe that you youself pointed out that not all platforms
support IEEE quad/TF type, but those platforms still need fma() to work correctly. 

That is why I reworked the patch to avoid internal use of TF typs and support
direct RAW/SEMIRAW/CANNONICAL conversion for the intermediate steps of the
soft-fp fma. Again fmadf4.c should be faster then the generic.

Yes in the long run we will need to address soft-fp fmal but that requires the
invention of "oct or long long double" format. Most platforms that need soft-fp
don't implement long double 128-bit so we stage that function. 

But we have a fix for soft-fp float and double now. I don't see any reason to delay.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=3268

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Bug math/3268] fma for all targets without hardware fma instructions is incorrect.
  2006-09-26 21:22 [Bug math/3268] New: fma for soft-fp is not correct sjmunroe at us dot ibm dot com
                   ` (8 preceding siblings ...)
  2007-01-23  0:14 ` sjmunroe at us dot ibm dot com
@ 2007-02-05 20:50 ` jakub at redhat dot com
  2007-02-06 16:30 ` sjmunroe at us dot ibm dot com
                   ` (13 subsequent siblings)
  23 siblings, 0 replies; 30+ messages in thread
From: jakub at redhat dot com @ 2007-02-05 20:50 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From jakub at redhat dot com  2007-02-05 20:50 -------
Why do you need a soft-fp fmaf other than generic
float fmaf (float x, float y, float z)
{
  return ((double) x * y) + z;
}
?

As DFmode has more than twice as wide mantissa as SFmode and bigger exponent
range as well, (double) x * (double) y will be IMHO always precise, so no
rounding will ever happen there.
Similarly for fma and IEEE quad long double.
Only fmal needs soft-fp or gmp implementation, on all architectures that don't
have it in hardware, and fma for IEEE extended long double or IBM 2x double long
double.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=3268

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Bug math/3268] fma for all targets without hardware fma instructions is incorrect.
  2006-09-26 21:22 [Bug math/3268] New: fma for soft-fp is not correct sjmunroe at us dot ibm dot com
                   ` (7 preceding siblings ...)
  2007-01-23  0:07 ` sjmunroe at us dot ibm dot com
@ 2007-01-23  0:14 ` sjmunroe at us dot ibm dot com
  2007-02-05 20:50 ` jakub at redhat dot com
                   ` (14 subsequent siblings)
  23 siblings, 0 replies; 30+ messages in thread
From: sjmunroe at us dot ibm dot com @ 2007-01-23  0:14 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From sjmunroe at us dot ibm dot com  2007-01-23 00:14 -------
Created an attachment (id=1515)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=1515&action=view)
Updated fma_test to verify that the intermediate multiply product has full
percision

This one includes the change log entry. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
Attachment #1513 is|0                           |1
           obsolete|                            |


http://sourceware.org/bugzilla/show_bug.cgi?id=3268

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Bug math/3268] fma for all targets without hardware fma instructions is incorrect.
  2006-09-26 21:22 [Bug math/3268] New: fma for soft-fp is not correct sjmunroe at us dot ibm dot com
                   ` (6 preceding siblings ...)
  2007-01-23  0:03 ` sjmunroe at us dot ibm dot com
@ 2007-01-23  0:07 ` sjmunroe at us dot ibm dot com
  2007-01-23  0:14 ` sjmunroe at us dot ibm dot com
                   ` (15 subsequent siblings)
  23 siblings, 0 replies; 30+ messages in thread
From: sjmunroe at us dot ibm dot com @ 2007-01-23  0:07 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From sjmunroe at us dot ibm dot com  2007-01-23 00:07 -------
Created an attachment (id=1514)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=1514&action=view)
Updated patch to ports to add fma for PPC32 soft-fp


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
Attachment #1349 is|0                           |1
           obsolete|                            |


http://sourceware.org/bugzilla/show_bug.cgi?id=3268

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Bug math/3268] fma for all targets without hardware fma instructions is incorrect.
  2006-09-26 21:22 [Bug math/3268] New: fma for soft-fp is not correct sjmunroe at us dot ibm dot com
                   ` (5 preceding siblings ...)
  2007-01-23  0:01 ` sjmunroe at us dot ibm dot com
@ 2007-01-23  0:03 ` sjmunroe at us dot ibm dot com
  2007-01-23  0:07 ` sjmunroe at us dot ibm dot com
                   ` (16 subsequent siblings)
  23 siblings, 0 replies; 30+ messages in thread
From: sjmunroe at us dot ibm dot com @ 2007-01-23  0:03 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From sjmunroe at us dot ibm dot com  2007-01-23 00:03 -------
Created an attachment (id=1513)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=1513&action=view)
Updated fma_test to verify that the intermediate multiply product has full
percision


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
Attachment #1350 is|0                           |1
           obsolete|                            |


http://sourceware.org/bugzilla/show_bug.cgi?id=3268

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Bug math/3268] fma for all targets without hardware fma instructions is incorrect.
  2006-09-26 21:22 [Bug math/3268] New: fma for soft-fp is not correct sjmunroe at us dot ibm dot com
                   ` (4 preceding siblings ...)
  2007-01-22 23:54 ` sjmunroe at us dot ibm dot com
@ 2007-01-23  0:01 ` sjmunroe at us dot ibm dot com
  2007-01-23  0:03 ` sjmunroe at us dot ibm dot com
                   ` (17 subsequent siblings)
  23 siblings, 0 replies; 30+ messages in thread
From: sjmunroe at us dot ibm dot com @ 2007-01-23  0:01 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From sjmunroe at us dot ibm dot com  2007-01-23 00:01 -------
Created an attachment (id=1512)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=1512&action=view)
Updated patch to add single and double fma to soft-fp

This adds macros to double.h and quad.h to copy internal soft-fp values between
the RAW, SEMIRAW, and CANNONICAL formats without using any float types.
Specifically this patch allows fmasf4.c and fmadf4.c to be implemented without
requiring TF type support. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
Attachment #1511 is|0                           |1
           obsolete|                            |


http://sourceware.org/bugzilla/show_bug.cgi?id=3268

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Bug math/3268] fma for all targets without hardware fma instructions is incorrect.
  2006-09-26 21:22 [Bug math/3268] New: fma for soft-fp is not correct sjmunroe at us dot ibm dot com
                   ` (3 preceding siblings ...)
  2006-10-05 19:47 ` sjmunroe at us dot ibm dot com
@ 2007-01-22 23:54 ` sjmunroe at us dot ibm dot com
  2007-01-23  0:01 ` sjmunroe at us dot ibm dot com
                   ` (18 subsequent siblings)
  23 siblings, 0 replies; 30+ messages in thread
From: sjmunroe at us dot ibm dot com @ 2007-01-22 23:54 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From sjmunroe at us dot ibm dot com  2007-01-22 23:54 -------
Created an attachment (id=1511)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=1511&action=view)
Updated patch to ports to add fma for PPC32 soft-fp


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
Attachment #1348 is|0                           |1
           obsolete|                            |


http://sourceware.org/bugzilla/show_bug.cgi?id=3268

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Bug math/3268] fma for all targets without hardware fma instructions is incorrect.
  2006-09-26 21:22 [Bug math/3268] New: fma for soft-fp is not correct sjmunroe at us dot ibm dot com
                   ` (2 preceding siblings ...)
  2006-10-05 19:36 ` sjmunroe at us dot ibm dot com
@ 2006-10-05 19:47 ` sjmunroe at us dot ibm dot com
  2007-01-22 23:54 ` sjmunroe at us dot ibm dot com
                   ` (19 subsequent siblings)
  23 siblings, 0 replies; 30+ messages in thread
From: sjmunroe at us dot ibm dot com @ 2006-10-05 19:47 UTC (permalink / raw)
  To: glibc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 780 bytes --]


------- Additional Comments From sjmunroe at us dot ibm dot com  2006-10-05 19:47 -------
Created an attachment (id=1350)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=1350&action=view)
New fma_test to verify the intermediate multiply product has full percision.

Add a new fma_test that verifies that:

"The operation fma(x,y,z) computes (x ×y )+z as if with unbounded range and
precision, rounding only once to the destination format"

This implies that for double that the 106 bit result of the multiply be passed
unrounded to the add (53 bit) and then final result found to 53 bits.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=3268

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Bug math/3268] fma for all targets without hardware fma instructions is incorrect.
  2006-09-26 21:22 [Bug math/3268] New: fma for soft-fp is not correct sjmunroe at us dot ibm dot com
  2006-10-04 18:27 ` [Bug math/3268] fma for all targets without hardware fma instructions is incorrect sjmunroe at us dot ibm dot com
  2006-10-05 19:35 ` sjmunroe at us dot ibm dot com
@ 2006-10-05 19:36 ` sjmunroe at us dot ibm dot com
  2006-10-05 19:47 ` sjmunroe at us dot ibm dot com
                   ` (20 subsequent siblings)
  23 siblings, 0 replies; 30+ messages in thread
From: sjmunroe at us dot ibm dot com @ 2006-10-05 19:36 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From sjmunroe at us dot ibm dot com  2006-10-05 19:36 -------
Created an attachment (id=1349)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=1349&action=view)
Updated FMA soft-fp implementation

Cleaned up source and updated comments

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
Attachment #1326 is|0                           |1
           obsolete|                            |


http://sourceware.org/bugzilla/show_bug.cgi?id=3268

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Bug math/3268] fma for all targets without hardware fma instructions is incorrect.
  2006-09-26 21:22 [Bug math/3268] New: fma for soft-fp is not correct sjmunroe at us dot ibm dot com
  2006-10-04 18:27 ` [Bug math/3268] fma for all targets without hardware fma instructions is incorrect sjmunroe at us dot ibm dot com
@ 2006-10-05 19:35 ` sjmunroe at us dot ibm dot com
  2006-10-05 19:36 ` sjmunroe at us dot ibm dot com
                   ` (21 subsequent siblings)
  23 siblings, 0 replies; 30+ messages in thread
From: sjmunroe at us dot ibm dot com @ 2006-10-05 19:35 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From sjmunroe at us dot ibm dot com  2006-10-05 19:35 -------
Created an attachment (id=1348)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=1348&action=view)
updated Ports patch for powerpc32 soft-fp FMA

Updated patch that resolves search patch  build problem.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
Attachment #1327 is|0                           |1
           obsolete|                            |


http://sourceware.org/bugzilla/show_bug.cgi?id=3268

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 30+ messages in thread

* [Bug math/3268] fma for all targets without hardware fma instructions is incorrect.
  2006-09-26 21:22 [Bug math/3268] New: fma for soft-fp is not correct sjmunroe at us dot ibm dot com
@ 2006-10-04 18:27 ` sjmunroe at us dot ibm dot com
  2006-10-05 19:35 ` sjmunroe at us dot ibm dot com
                   ` (22 subsequent siblings)
  23 siblings, 0 replies; 30+ messages in thread
From: sjmunroe at us dot ibm dot com @ 2006-10-04 18:27 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From sjmunroe at us dot ibm dot com  2006-10-04 18:27 -------
Corrected title per Joseph Myer comment

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|fma for soft-fp is not      |fma for all targets without
                   |correct.                    |hardware fma instructions is
                   |                            |incorrect.


http://sourceware.org/bugzilla/show_bug.cgi?id=3268

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2014-05-28 19:40 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-3268-131@http.sourceware.org/bugzilla/>
2011-10-17 20:10 ` [Bug math/3268] fma for all targets without hardware fma instructions is incorrect bruno at clisp dot org
2011-10-17 20:27 ` jakub at redhat dot com
2011-10-18  7:24 ` aj at suse dot de
2012-02-26 17:48 ` jsm28 at gcc dot gnu.org
2014-02-16 19:42 ` jackie.rosen at hushmail dot com
2014-05-28 19:40 ` schwab at sourceware dot org
2006-09-26 21:22 [Bug math/3268] New: fma for soft-fp is not correct sjmunroe at us dot ibm dot com
2006-10-04 18:27 ` [Bug math/3268] fma for all targets without hardware fma instructions is incorrect sjmunroe at us dot ibm dot com
2006-10-05 19:35 ` sjmunroe at us dot ibm dot com
2006-10-05 19:36 ` sjmunroe at us dot ibm dot com
2006-10-05 19:47 ` sjmunroe at us dot ibm dot com
2007-01-22 23:54 ` sjmunroe at us dot ibm dot com
2007-01-23  0:01 ` sjmunroe at us dot ibm dot com
2007-01-23  0:03 ` sjmunroe at us dot ibm dot com
2007-01-23  0:07 ` sjmunroe at us dot ibm dot com
2007-01-23  0:14 ` sjmunroe at us dot ibm dot com
2007-02-05 20:50 ` jakub at redhat dot com
2007-02-06 16:30 ` sjmunroe at us dot ibm dot com
2007-02-06 16:31 ` sjmunroe at us dot ibm dot com
2007-02-06 16:33 ` sjmunroe at us dot ibm dot com
2007-02-18 13:51 ` aj at suse dot de
2007-02-26 22:08 ` sjmunroe at us dot ibm dot com
2007-04-03 17:58 ` sjmunroe at us dot ibm dot com
2007-04-03 17:59 ` joseph at codesourcery dot com
2007-04-03 18:00 ` sjmunroe at us dot ibm dot com
2007-04-03 19:06 ` sjmunroe at us dot ibm dot com
2007-04-03 19:39 ` sjmunroe at us dot ibm dot com
2007-10-22 14:44 ` vincent+libc at vinc17 dot org
2010-02-02 21:56 ` nbowler at draconx dot ca
2010-02-02 21:57 ` nbowler at draconx dot ca
2010-06-29 11:50 ` zimmerma+gcc at loria dot fr

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).