This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/19465] New: Wrong code with -Os
- From: "hjl.tools at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Thu, 14 Jan 2016 03:51:57 +0000
- Subject: [Bug math/19465] New: Wrong code with -Os
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=19465
Bug ID: 19465
Summary: Wrong code with -Os
Product: glibc
Version: 2.23
Status: NEW
Severity: normal
Priority: P2
Component: math
Assignee: unassigned at sourceware dot org
Reporter: hjl.tools at gmail dot com
Target Milestone: ---
On x86-64/Ivy Bridge, when compiled with -Os, I got
[hjl@gnu-tools-1 build-x86_64-linux]$ cat math/test-double.out
testing double (without inline functions)
Failure: fma (-0xf.ffffffffffff8p-4, -0xf.ffffffffffff8p-4,
-0xf.ffffffffffffp-4): Exception "Inexact" set
Failure: fma (-0xf.ffffffffffff8p-4, 0xf.ffffffffffff8p-4,
0xf.ffffffffffffp-4): Exception "Inexact" set
Failure: fma (0x1.deadbeef2feedp+900, 0x3.7ab6fbbcbfbb4p-1024,
-0x6.817e300692fecp-124): Exception "Inexact" set
Failure: fma (0x1.fffp+0, 0x1.0000000000001p+0, -0x1.fffp+0): Exception
"Inexact" set
Failure: fma (0xe.f56df7797f768p+1020, 0x3.7ab6fbbcbfbb4p-1024,
-0x3.40bf1803497f6p+0): Exception "Inexact" set
Failure: fma (0xf.ffffffffffff8p+1020, 0x1.001p+0, -0xf.ffffffffffff8p+1020):
Exception "Inexact" set
Failure: fma (0xf.ffffffffffff8p-4, -0xf.ffffffffffff8p-4,
0xf.ffffffffffffp-4): Exception "Inexact" set
Failure: fma (0xf.ffffffffffff8p-4, 0xf.ffffffffffff8p-4,
-0xf.ffffffffffffp-4): Exception "Inexact" set
Failure: fma_downward (-0xf.ffffffffffff8p-4, -0xf.ffffffffffff8p-4,
-0xf.ffffffffffffp-4): Exception "Inexact" set
Failure: fma_downward (-0xf.ffffffffffff8p-4, 0xf.ffffffffffff8p-4,
0xf.ffffffffffffp-4): Exception "Inexact" set
Failure: fma_downward (0x1.deadbeef2feedp+900, 0x3.7ab6fbbcbfbb4p-1024,
-0x6.817e300692fecp-124): Exception "Inexact" set
Failure: fma_downward (0x1.fffp+0, 0x1.0000000000001p+0, -0x1.fffp+0):
Exception "Inexact" set
Failure: fma_downward (0xe.f56df7797f768p+1020, 0x3.7ab6fbbcbfbb4p-1024,
-0x3.40bf1803497f6p+0): Exception "Inexact" set
Failure: fma_downward (0xf.ffffffffffff8p+1020, 0x1.001p+0,
-0xf.ffffffffffff8p+1020): Exception "Inexact" set
Failure: fma_downward (0xf.ffffffffffff8p-4, -0xf.ffffffffffff8p-4,
0xf.ffffffffffffp-4): Exception "Inexact" set
Failure: fma_downward (0xf.ffffffffffff8p-4, 0xf.ffffffffffff8p-4,
-0xf.ffffffffffffp-4): Exception "Inexact" set
Failure: fma_towardzero (-0xf.ffffffffffff8p-4, -0xf.ffffffffffff8p-4,
-0xf.ffffffffffffp-4): Exception "Inexact" set
Failure: fma_towardzero (-0xf.ffffffffffff8p-4, 0xf.ffffffffffff8p-4,
0xf.ffffffffffffp-4): Exception "Inexact" set
Failure: fma_towardzero (0x1.deadbeef2feedp+900, 0x3.7ab6fbbcbfbb4p-1024,
-0x6.817e300692fecp-124): Exception "Inexact" set
Failure: fma_towardzero (0x1.fffp+0, 0x1.0000000000001p+0, -0x1.fffp+0):
Exception "Inexact" set
Failure: fma_towardzero (0xe.f56df7797f768p+1020, 0x3.7ab6fbbcbfbb4p-1024,
-0x3.40bf1803497f6p+0): Exception "Inexact" set
Failure: fma_towardzero (0xf.ffffffffffff8p+1020, 0x1.001p+0,
-0xf.ffffffffffff8p+1020): Exception "Inexact" set
Failure: fma_towardzero (0xf.ffffffffffff8p-4, -0xf.ffffffffffff8p-4,
0xf.ffffffffffffp-4): Exception "Inexact" set
Failure: fma_towardzero (0xf.ffffffffffff8p-4, 0xf.ffffffffffff8p-4,
-0xf.ffffffffffffp-4): Exception "Inexact" set
Failure: fma_upward (-0xf.ffffffffffff8p-4, -0xf.ffffffffffff8p-4,
-0xf.ffffffffffffp-4): Exception "Inexact" set
Failure: fma_upward (-0xf.ffffffffffff8p-4, 0xf.ffffffffffff8p-4,
0xf.ffffffffffffp-4): Exception "Inexact" set
Failure: fma_upward (0x1.deadbeef2feedp+900, 0x3.7ab6fbbcbfbb4p-1024,
-0x6.817e300692fecp-124): Exception "Inexact" set
Failure: fma_upward (0x1.fffp+0, 0x1.0000000000001p+0, -0x1.fffp+0): Exception
"Inexact" set
Failure: fma_upward (0xe.f56df7797f768p+1020, 0x3.7ab6fbbcbfbb4p-1024,
-0x3.40bf1803497f6p+0): Exception "Inexact" set
Failure: fma_upward (0xf.ffffffffffff8p+1020, 0x1.001p+0,
-0xf.ffffffffffff8p+1020): Exception "Inexact" set
Failure: fma_upward (0xf.ffffffffffff8p-4, -0xf.ffffffffffff8p-4,
0xf.ffffffffffffp-4): Exception "Inexact" set
Failure: fma_upward (0xf.ffffffffffff8p-4, 0xf.ffffffffffff8p-4,
-0xf.ffffffffffffp-4): Exception "Inexact" set
Test suite completed:
87838 test cases plus 79930 tests for exception flags and
79930 tests for errno executed.
32 errors occurred.
[hjl@gnu-tools-1 build-x86_64-linux]$
--
You are receiving this mail because:
You are on the CC list for the bug.