public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/53317] New: Conversion from __float128 to __int128
@ 2012-05-10 23:25 ahakkas at gmail dot com
2012-05-10 23:29 ` [Bug c/53317] Conversion from __int128 to __float128 ahakkas at gmail dot com
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: ahakkas at gmail dot com @ 2012-05-10 23:25 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53317
Bug #: 53317
Summary: Conversion from __float128 to __int128
Classification: Unclassified
Product: gcc
Version: 4.6.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: ahakkas@gmail.com
Conversion from __float128 to __int128 does not seem correct in gcc 4.6.3
version (gcc (GCC) 4.6.3 20120306 (Red Hat 4.6.3-2)). I am not aware if this
has been fixed in the later version. Here are a few examples:
Input = 0x00011002000E38000000080000000000 Result =
0x406F1802000E38000000080000000000
Correct result should be: Result =
0x406F1002000E38000000080000000000
Input = 0x000115260000058B00022A4E00000164 Result =
0x406F3F6E000005EF00022A4E00000164
Correct result should be: Result =
0x406F15260000058B00022A4E00000164
Input = 0x00014810000000000000000000033170 Result =
0x406F4810000331700000000000033170
Correct result should be: Result =
0x406F4810000000000000000000033170
Thanks.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/53317] Conversion from __int128 to __float128
2012-05-10 23:25 [Bug c/53317] New: Conversion from __float128 to __int128 ahakkas at gmail dot com
@ 2012-05-10 23:29 ` ahakkas at gmail dot com
2012-05-11 8:39 ` [Bug other/53317] " rguenth at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: ahakkas at gmail dot com @ 2012-05-10 23:29 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53317
--- Comment #1 from ahakkas at gmail dot com 2012-05-10 23:24:42 UTC ---
Correction: Conversion from __int128 to __float128 (not the other way as
mistakenly written in the description of the bug).
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug other/53317] Conversion from __int128 to __float128
2012-05-10 23:25 [Bug c/53317] New: Conversion from __float128 to __int128 ahakkas at gmail dot com
2012-05-10 23:29 ` [Bug c/53317] Conversion from __int128 to __float128 ahakkas at gmail dot com
@ 2012-05-11 8:39 ` rguenth at gcc dot gnu.org
2012-05-14 18:14 ` ahakkas at gmail dot com
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-05-11 8:39 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53317
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2012-05-11
Component|c |other
Ever Confirmed|0 |1
--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-05-11 08:35:15 UTC ---
Please provide a testcase.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug other/53317] Conversion from __int128 to __float128
2012-05-10 23:25 [Bug c/53317] New: Conversion from __float128 to __int128 ahakkas at gmail dot com
2012-05-10 23:29 ` [Bug c/53317] Conversion from __int128 to __float128 ahakkas at gmail dot com
2012-05-11 8:39 ` [Bug other/53317] " rguenth at gcc dot gnu.org
@ 2012-05-14 18:14 ` ahakkas at gmail dot com
2013-06-18 22:52 ` jsm28 at gcc dot gnu.org
2013-06-21 19:11 ` jsm28 at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: ahakkas at gmail dot com @ 2012-05-14 18:14 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53317
--- Comment #3 from ahakkas at gmail dot com 2012-05-14 18:07:50 UTC ---
Created attachment 27403
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27403
testcase
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug other/53317] Conversion from __int128 to __float128
2012-05-10 23:25 [Bug c/53317] New: Conversion from __float128 to __int128 ahakkas at gmail dot com
` (2 preceding siblings ...)
2012-05-14 18:14 ` ahakkas at gmail dot com
@ 2013-06-18 22:52 ` jsm28 at gcc dot gnu.org
2013-06-21 19:11 ` jsm28 at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2013-06-18 22:52 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53317
Joseph S. Myers <jsm28 at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |NEW
--- Comment #4 from Joseph S. Myers <jsm28 at gcc dot gnu.org> ---
Bug rediscovered through inspection of soft-fp code, patch posted at:
http://sourceware.org/ml/libc-alpha/2013-06/msg00656.html
I have a complete, tested GCC patch updating soft-fp and adding a testcase
ready to commit once the soft-fp patch is approved for glibc. If someone then
wishes to backport a fix for this (as a wrong-code bug) to active release
branches, the soft-fp patch itself (plus GCC testcase) should be easy enough to
apply to past branches without the whole soft-fp update.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug other/53317] Conversion from __int128 to __float128
2012-05-10 23:25 [Bug c/53317] New: Conversion from __float128 to __int128 ahakkas at gmail dot com
` (3 preceding siblings ...)
2013-06-18 22:52 ` jsm28 at gcc dot gnu.org
@ 2013-06-21 19:11 ` jsm28 at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2013-06-21 19:11 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53317
Joseph S. Myers <jsm28 at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
Target Milestone|--- |4.9.0
--- Comment #5 from Joseph S. Myers <jsm28 at gcc dot gnu.org> ---
Fixed for 4.9 by:
Author: jsm28
Date: Fri Jun 21 19:08:01 2013
New Revision: 200318
URL: http://gcc.gnu.org/viewcvs?rev=200318&root=gcc&view=rev
Log:
PR other/53317
gcc/testsuite:
* gcc.dg/torture/fp-int-convert-float128-timode-2.c: New test.
libgcc:
* soft-fp/adddf3.c: Update from glibc.
[...]
http://gcc.gnu.org/ml/gcc-cvs/2013-06/msg00752.html
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2013-06-21 19:11 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-10 23:25 [Bug c/53317] New: Conversion from __float128 to __int128 ahakkas at gmail dot com
2012-05-10 23:29 ` [Bug c/53317] Conversion from __int128 to __float128 ahakkas at gmail dot com
2012-05-11 8:39 ` [Bug other/53317] " rguenth at gcc dot gnu.org
2012-05-14 18:14 ` ahakkas at gmail dot com
2013-06-18 22:52 ` jsm28 at gcc dot gnu.org
2013-06-21 19:11 ` jsm28 at gcc dot gnu.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).