[Bug target/27619] wrong code for mixed-mode division with -mpowerpc64 -O1

2021-08-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=27619 Andrew Pinski changed: What|Removed |Added Resolution|INVALID |MOVED See Also|

[Bug target/27619] wrong code for mixed-mode division with -mpowerpc64 -O1

2021-08-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=27619 Andrew Pinski changed: What|Removed |Added CC||vincent-gcc at vinc17 dot net ---

[Bug target/27619] wrong code for mixed-mode division with -mpowerpc64 -O1

2012-10-28 Thread segher at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27619 Segher Boessenkool segher at gcc dot gnu.org changed: What|Removed |Added Status|ASSIGNED

[Bug target/27619] wrong code for mixed-mode division with -mpowerpc64 -O1

2012-10-25 Thread amodra at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27619 --- Comment #17 from Alan Modra amodra at gmail dot com 2012-10-26 03:51:35 UTC --- Fixed in gas and ld. I think the only thing that needs doing in gcc is fixing the lwa constraint.

[Bug target/27619] wrong code for mixed-mode division with -mpowerpc64 -O1

2012-10-23 Thread segher at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27619 Segher Boessenkool segher at gcc dot gnu.org changed: What|Removed |Added Status|NEW

[Bug target/27619] wrong code for mixed-mode division with -mpowerpc64 -O1

2012-10-23 Thread amodra at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27619 Alan Modra amodra at gmail dot com changed: What|Removed |Added CC||amodra at

[Bug target/27619] wrong code for mixed-mode division with -mpowerpc64 -O1

2008-08-27 Thread bergner at gcc dot gnu dot org
--- Comment #13 from bergner at gcc dot gnu dot org 2008-08-28 03:52 --- There are actually a subset of TARGET_POWERP64 instructions that are safe to use in 32-bit mode regardless of whether OS_MISSING_POWERPC64 is set or not (eg, fcfid). For example, given the code below: double

[Bug target/27619] wrong code for mixed-mode division with -mpowerpc64 -O1

2006-05-18 Thread dje at gcc dot gnu dot org
--- Comment #12 from dje at gcc dot gnu dot org 2006-05-18 15:56 --- Users are suppose to control the architecture and code generation through -mcpu=XXX, which sets the architecture options in self-consistent ways for the target. On Darwin, -mcpu=G5 sets -mpowerpc64; on Linux,

[Bug target/27619] wrong code for mixed-mode division with -mpowerpc64 -O1

2006-05-16 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2006-05-16 09:28 --- Confirmed. Works with -m64, though the docs say The 64-bit environment sets int to 32 bits and long and pointer to 64 bits, and generates code for PowerPC64, as for -mpowerpc64. for the -m64 option. -- rguenth

[Bug target/27619] wrong code for mixed-mode division with -mpowerpc64 -O1

2006-05-16 Thread pinskia at gcc dot gnu dot org
--- Comment #2 from pinskia at gcc dot gnu dot org 2006-05-16 17:03 --- This might turn out to be a kernel issue. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27619

[Bug target/27619] wrong code for mixed-mode division with -mpowerpc64 -O1

2006-05-16 Thread rguenth at gcc dot gnu dot org
--- Comment #3 from rguenth at gcc dot gnu dot org 2006-05-16 17:16 --- -m64 asm: .L.main: mflr %r0 std %r0,16(%r1) stdu %r1,-128(%r1) ld %r9,[EMAIL PROTECTED](%r2) lwa %r0,0(%r9) sradi %r9,%r0,53 rldicl %r11,%r0,0,53 addi

[Bug target/27619] wrong code for mixed-mode division with -mpowerpc64 -O1

2006-05-16 Thread olh at suse dot de
--- Comment #4 from olh at suse dot de 2006-05-16 17:24 --- Created an attachment (id=11478) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11478action=view) pr27619.s.diff gcc -Wall -o pr27619 -O2 -g --save-temps pr27619.c -m64 vs. gcc -Wall -o pr27619 -O2 -g --save-temps

[Bug target/27619] wrong code for mixed-mode division with -mpowerpc64 -O1

2006-05-16 Thread pinskia at gcc dot gnu dot org
--- Comment #5 from pinskia at gcc dot gnu dot org 2006-05-16 17:27 --- (In reply to comment #4) does -mpowerpc64 default to 32bit by any chance? see stdu vs. stwu in fn prologue. Well I bet you have 32bit as the default. Anyways -mpowerpc64 is the 64bit register in 32bit mode. And

[Bug target/27619] wrong code for mixed-mode division with -mpowerpc64 -O1

2006-05-16 Thread rguenth at gcc dot gnu dot org
--- Comment #6 from rguenth at gcc dot gnu dot org 2006-05-16 17:28 --- Yes it does: [EMAIL PROTECTED]:/tmp gcc -o t -O -mpowerpc64 t.c -mregnames [EMAIL PROTECTED]:/tmp file t t: ELF 32-bit MSB executable, PowerPC or cisco 4500, version 1 (SYSV), for GNU/Linux 2.6.4, dynamically

[Bug target/27619] wrong code for mixed-mode division with -mpowerpc64 -O1

2006-05-16 Thread olh at suse dot de
--- Comment #7 from olh at suse dot de 2006-05-16 17:30 --- yes, mpowerpc64 creates 32bit apps. -m64 (gdb) info float f0 274 (raw 0x40712000) f1 0(raw 0x) f2 0(raw 0x) f3 0

[Bug target/27619] wrong code for mixed-mode division with -mpowerpc64 -O1

2006-05-16 Thread pinskia at gcc dot gnu dot org
--- Comment #8 from pinskia at gcc dot gnu dot org 2006-05-16 17:34 --- The only thing I think we can do is warn that -mpowerpc64 might not work with Linux as the linux kernel does not save and restore the full register while doing a context switch (it is one reason why -mcpu=G5 -m32

[Bug target/27619] wrong code for mixed-mode division with -mpowerpc64 -O1

2006-05-16 Thread janis at gcc dot gnu dot org
--- Comment #9 from janis at gcc dot gnu dot org 2006-05-16 17:55 --- Good grief, if it might not work with Linux then it shouldn't be available for GNU/Linux targets. -- janis at gcc dot gnu dot org changed: What|Removed |Added

[Bug target/27619] wrong code for mixed-mode division with -mpowerpc64 -O1

2006-05-16 Thread janis at gcc dot gnu dot org
--- Comment #10 from janis at gcc dot gnu dot org 2006-05-16 18:26 --- By the way, I found this by running SPEC CPU2000, FreePOOMA, FTensor, and Blitz++ with several sets of options plus either -m32, -m64, or -m32 -mpowerpc64 and this was the only failure I saw. This failure happens

[Bug target/27619] wrong code for mixed-mode division with -mpowerpc64 -O1

2006-05-16 Thread janis at gcc dot gnu dot org
--- Comment #11 from janis at gcc dot gnu dot org 2006-05-16 22:42 --- As mentioned above, the Linux kernel does not provide context switching support needed for -m32 -mpowerpc64. I'm looking into disabling it for powerpc64-linux. --