public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug math/16503] New: [SH] wrong results on fma
@ 2014-01-25  2:12 kkojima at rr dot iij4u.or.jp
  2014-01-25  2:14 ` [Bug math/16503] " kkojima at rr dot iij4u.or.jp
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: kkojima at rr dot iij4u.or.jp @ 2014-01-25  2:12 UTC (permalink / raw)
  To: glibc-bugs

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

            Bug ID: 16503
           Summary: [SH] wrong results on fma
           Product: glibc
           Version: 2.19
            Status: NEW
          Severity: normal
          Priority: P2
         Component: math
          Assignee: unassigned at sourceware dot org
          Reporter: kkojima at rr dot iij4u.or.jp

fma produces wrong results on SH4.  Here is the fma part of
libm-test-ulps:

# fma
Test "fma (-0x1.fffffffffffffp-711, 0x1.fffffffffffffp-275,
0x1.fffffe00007ffp-983)":
double: 1
idouble: 1
Test "fma (0x1.0000002p+0, 0x1.ffffffcp-1, -0x1p-300)":
double: 1
idouble: 1
Test "fma (0x1.153d650bb9f06p-907, 0x1.2d01230d48407p-125,
-0x0.b278d5acfc3cp-1022)":
double: 1
idouble: 1
Test "fma (0x1.4000004p-967, 0x1p-106, 0x0.000001p-1022)":
double: 1
idouble: 1
Test "fma (0x1.7ff8p+13, 0x1.000002p+0, 0x1.ffffp-24)":
float: 1
ifloat: 1
Test "fma (0x1.7fffff8p-968, 0x1p-106, 0x0.000001p-1022)":
double: 1
idouble: 1

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


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

* [Bug math/16503] [SH] wrong results on fma
  2014-01-25  2:12 [Bug math/16503] New: [SH] wrong results on fma kkojima at rr dot iij4u.or.jp
@ 2014-01-25  2:14 ` kkojima at rr dot iij4u.or.jp
  2014-01-27  0:05 ` [Bug math/16503] [SH] wrong results on fma_towardzero kkojima at rr dot iij4u.or.jp
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: kkojima at rr dot iij4u.or.jp @ 2014-01-25  2:14 UTC (permalink / raw)
  To: glibc-bugs

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

Kaz Kojima <kkojima at rr dot iij4u.or.jp> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |sh4-linux
           Priority|P2                          |P3

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


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

* [Bug math/16503] [SH] wrong results on fma_towardzero
  2014-01-25  2:12 [Bug math/16503] New: [SH] wrong results on fma kkojima at rr dot iij4u.or.jp
  2014-01-25  2:14 ` [Bug math/16503] " kkojima at rr dot iij4u.or.jp
@ 2014-01-27  0:05 ` kkojima at rr dot iij4u.or.jp
  2014-02-06 18:40 ` [Bug math/16503] [sh] " jsm28 at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: kkojima at rr dot iij4u.or.jp @ 2014-01-27  0:05 UTC (permalink / raw)
  To: glibc-bugs

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

Kaz Kojima <kkojima at rr dot iij4u.or.jp> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[SH] wrong results on fma   |[SH] wrong results on
                   |                            |fma_towardzero

--- Comment #1 from Kaz Kojima <kkojima at rr dot iij4u.or.jp> ---
It turned out that these errors are bogus result without -mieee SH
gcc option which is required for proper IEEE arithmetic on this target.
Although the lines for fma went away with enabling -mieee, there are
new fma_towardzero lines:

# fma_towardzero
Test "fma_towardzero (-0x1.ffffffffffffcp-1022, 0x1.0000000000001p-1,
-0x1p-1074)":
double: 1
idouble: 1
Test "fma_towardzero (-0x1p-1074, 0x1.1p-1, -0x0.fffffffffffffp-1022)":
double: 1
idouble: 1
Test "fma_towardzero (0x1.ffffffffffffcp-1022, 0x1.0000000000001p-1,
0x1p-1074)":
double: 1
idouble: 1
Test "fma_towardzero (0x1p-1074, -0x1p-1074, 0x0.fffffffffffffp-1022)":
double: 1
idouble: 1
Test "fma_towardzero (0x1p-1074, -0x1p-1074, 0x1p-1022)":
double: 1
idouble: 1
Test "fma_towardzero (0x1p-1074, -0x1p-1074, 0x1p-1074)":
double: 1
idouble: 1
Test "fma_towardzero (0x1p-1074, -0x1p-1074, 0x1p1023)":
double: 1
idouble: 1
Test "fma_towardzero (0x1p-1074, 0x1.1p-1, 0x0.fffffffffffffp-1022)":
double: 1
idouble: 1
Test "fma_towardzero (0x1p-1074, 0x1p-1074, -0x0.fffffffffffffp-1022)":
double: 1
idouble: 1
Test "fma_towardzero (0x1p-1074, 0x1p-1074, -0x1p-1022)":
double: 1
idouble: 1
Test "fma_towardzero (0x1p-1074, 0x1p-1074, -0x1p-1074)":
double: 1
idouble: 1
Test "fma_towardzero (0x1p-1074, 0x1p-1074, -0x1p1023)":
double: 1
idouble: 1

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


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

* [Bug math/16503] [sh] wrong results on fma_towardzero
  2014-01-25  2:12 [Bug math/16503] New: [SH] wrong results on fma kkojima at rr dot iij4u.or.jp
  2014-01-25  2:14 ` [Bug math/16503] " kkojima at rr dot iij4u.or.jp
  2014-01-27  0:05 ` [Bug math/16503] [SH] wrong results on fma_towardzero kkojima at rr dot iij4u.or.jp
@ 2014-02-06 18:40 ` jsm28 at gcc dot gnu.org
  2014-06-13  8:51 ` fweimer at redhat dot com
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2014-02-06 18:40 UTC (permalink / raw)
  To: glibc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
               Host|                            |sh4-*-*
            Summary|[SH] wrong results on       |[sh] wrong results on
                   |fma_towardzero              |fma_towardzero

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


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

* [Bug math/16503] [sh] wrong results on fma_towardzero
  2014-01-25  2:12 [Bug math/16503] New: [SH] wrong results on fma kkojima at rr dot iij4u.or.jp
                   ` (2 preceding siblings ...)
  2014-02-06 18:40 ` [Bug math/16503] [sh] " jsm28 at gcc dot gnu.org
@ 2014-06-13  8:51 ` fweimer at redhat dot com
  2014-06-20 22:58 ` olegendo at gcc dot gnu.org
  2022-05-10  9:21 ` zimmerma+gcc at loria dot fr
  5 siblings, 0 replies; 7+ messages in thread
From: fweimer at redhat dot com @ 2014-06-13  8:51 UTC (permalink / raw)
  To: glibc-bugs

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

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
              Flags|                            |security-

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


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

* [Bug math/16503] [sh] wrong results on fma_towardzero
  2014-01-25  2:12 [Bug math/16503] New: [SH] wrong results on fma kkojima at rr dot iij4u.or.jp
                   ` (3 preceding siblings ...)
  2014-06-13  8:51 ` fweimer at redhat dot com
@ 2014-06-20 22:58 ` olegendo at gcc dot gnu.org
  2022-05-10  9:21 ` zimmerma+gcc at loria dot fr
  5 siblings, 0 replies; 7+ messages in thread
From: olegendo at gcc dot gnu.org @ 2014-06-20 22:58 UTC (permalink / raw)
  To: glibc-bugs

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

Oleg Endo <olegendo at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |olegendo at gcc dot gnu.org

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


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

* [Bug math/16503] [sh] wrong results on fma_towardzero
  2014-01-25  2:12 [Bug math/16503] New: [SH] wrong results on fma kkojima at rr dot iij4u.or.jp
                   ` (4 preceding siblings ...)
  2014-06-20 22:58 ` olegendo at gcc dot gnu.org
@ 2022-05-10  9:21 ` zimmerma+gcc at loria dot fr
  5 siblings, 0 replies; 7+ messages in thread
From: zimmerma+gcc at loria dot fr @ 2022-05-10  9:21 UTC (permalink / raw)
  To: glibc-bugs

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

Paul Zimmermann <zimmerma+gcc at loria dot fr> changed:

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

--- Comment #2 from Paul Zimmermann <zimmerma+gcc at loria dot fr> ---
is that still the case now that #13304 is fixed?

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

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

end of thread, other threads:[~2022-05-10  9:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-25  2:12 [Bug math/16503] New: [SH] wrong results on fma kkojima at rr dot iij4u.or.jp
2014-01-25  2:14 ` [Bug math/16503] " kkojima at rr dot iij4u.or.jp
2014-01-27  0:05 ` [Bug math/16503] [SH] wrong results on fma_towardzero kkojima at rr dot iij4u.or.jp
2014-02-06 18:40 ` [Bug math/16503] [sh] " jsm28 at gcc dot gnu.org
2014-06-13  8:51 ` fweimer at redhat dot com
2014-06-20 22:58 ` olegendo at gcc dot gnu.org
2022-05-10  9:21 ` 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).