public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/15425] New: 128-bit division do not work
@ 2004-05-14 13:46 hebisch at math dot uni dot wroc dot pl
2004-05-14 14:00 ` [Bug target/15425] " pinskia at gcc dot gnu dot org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: hebisch at math dot uni dot wroc dot pl @ 2004-05-14 13:46 UTC (permalink / raw)
To: gcc-bugs
The follwing program compiled by:
../gcc/xgcc -B../gcc tess_div.c
gives me:
$ ./a.out
6341068292483973050
the program:
#include <stdio.h>
int main(void)
{
typedef int myi128 __attribute__ ((mode(TI)));
myi128 x=0;
myi128 y=32;
long z=x/y;
printf("%ld\n", z);
return 0;
}
AFAIKS the arguments to `__divti3' function are passed incorrectly.
The problem affects GNU Pascal. Namely, gpc uses `bitsizetype' to
do adress calculation for packed arrays. On 64-bit targets
`bitsizetype' is done with 128-bit precision. Since on x86_64
such arithmetic does not work (with 3.3.3 backend) it makes
packed arrays unusable ont that target.
--
Summary: 128-bit division do not work
Product: gcc
Version: 3.3.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: hebisch at math dot uni dot wroc dot pl
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: x86_64-unknown-linux-gnu
GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15425
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/15425] 128-bit division do not work
2004-05-14 13:46 [Bug target/15425] New: 128-bit division do not work hebisch at math dot uni dot wroc dot pl
@ 2004-05-14 14:00 ` pinskia at gcc dot gnu dot org
2005-06-19 22:58 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-14 14:00 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |hubicka at gcc dot gnu dot
| |org
GCC build triplet|x86_64-unknown-linux-gnu |
GCC host triplet|x86_64-unknown-linux-gnu |
Keywords| |ABI, wrong-code
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15425
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/15425] 128-bit division do not work
2004-05-14 13:46 [Bug target/15425] New: 128-bit division do not work hebisch at math dot uni dot wroc dot pl
2004-05-14 14:00 ` [Bug target/15425] " pinskia at gcc dot gnu dot org
@ 2005-06-19 22:58 ` pinskia at gcc dot gnu dot org
2005-06-19 23:39 ` hebisch at math dot uni dot wroc dot pl
2005-06-19 23:42 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-19 22:58 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-06-19 22:58 -------
Does this worh with 3.4.x or 4.0.x?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15425
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/15425] 128-bit division do not work
2004-05-14 13:46 [Bug target/15425] New: 128-bit division do not work hebisch at math dot uni dot wroc dot pl
2004-05-14 14:00 ` [Bug target/15425] " pinskia at gcc dot gnu dot org
2005-06-19 22:58 ` pinskia at gcc dot gnu dot org
@ 2005-06-19 23:39 ` hebisch at math dot uni dot wroc dot pl
2005-06-19 23:42 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: hebisch at math dot uni dot wroc dot pl @ 2005-06-19 23:39 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From hebisch at math dot uni dot wroc dot pl 2005-06-19 23:39 -------
Works fine with gcc-3.4.4 or gcc-4.0.0. IIRC gcc-3.4.0 also
worked. gcc-3.3.6 still fails.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15425
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug target/15425] 128-bit division do not work
2004-05-14 13:46 [Bug target/15425] New: 128-bit division do not work hebisch at math dot uni dot wroc dot pl
` (2 preceding siblings ...)
2005-06-19 23:39 ` hebisch at math dot uni dot wroc dot pl
@ 2005-06-19 23:42 ` pinskia at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-06-19 23:42 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-06-19 23:42 -------
Closing as fixed for 3.4.0 as 3.3.x branch is no longer maintained.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |3.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15425
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-06-19 23:42 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-14 13:46 [Bug target/15425] New: 128-bit division do not work hebisch at math dot uni dot wroc dot pl
2004-05-14 14:00 ` [Bug target/15425] " pinskia at gcc dot gnu dot org
2005-06-19 22:58 ` pinskia at gcc dot gnu dot org
2005-06-19 23:39 ` hebisch at math dot uni dot wroc dot pl
2005-06-19 23:42 ` pinskia 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).