public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/26505] New: Storing float to int into two different pointers requires stack space
@ 2006-03-01 5:21 pinskia at gcc dot gnu dot org
2006-03-01 5:22 ` [Bug target/26505] " pinskia at gcc dot gnu dot org
2006-03-06 14:20 ` pinskia at gcc dot gnu dot org
0 siblings, 2 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-01 5:21 UTC (permalink / raw)
To: gcc-bugs
Testcase (modified from testcase which Chris Latter was looking at):
void foo(float a, int *b) { b[0] = b[1] = a; }
----
Currently we get:
fctiwz f0,f1
addi r2,r1,-24
stfiwx f0,0,r2
lwz r0,-24(r1)
stw r0,0(r4)
stw r0,4(r4)
------
We should be able to get:
fctiwz f0,f1
stfiwx f0,0,r4
li r2, 4
stfiwx f0,r2,r4
---- or -----
fctiwz f0,f1
stfiwx f0,0,r4
addi r4, r4, 4
stfiwx f0,0,r4
Depending on a lot of stuff
I don't know how much this shows up in real code.
--
Summary: Storing float to int into two different pointers
requires stack space
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Keywords: missed-optimization
Severity: enhancement
Priority: P3
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
GCC target triplet: powerpc-darwin
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26505
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug target/26505] Storing float to int into two different pointers requires stack space
2006-03-01 5:21 [Bug target/26505] New: Storing float to int into two different pointers requires stack space pinskia at gcc dot gnu dot org
@ 2006-03-01 5:22 ` pinskia at gcc dot gnu dot org
2006-03-06 14:20 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-01 5:22 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-03-01 05:22 -------
s/Latter/Lattner/
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26505
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug target/26505] Storing float to int into two different pointers requires stack space
2006-03-01 5:21 [Bug target/26505] New: Storing float to int into two different pointers requires stack space pinskia at gcc dot gnu dot org
2006-03-01 5:22 ` [Bug target/26505] " pinskia at gcc dot gnu dot org
@ 2006-03-06 14:20 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-06 14:20 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2006-03-06 14:20 -------
Confirmed. Also happens on x86 too.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-03-06 14:20:02
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26505
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-03-06 14:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-01 5:21 [Bug target/26505] New: Storing float to int into two different pointers requires stack space pinskia at gcc dot gnu dot org
2006-03-01 5:22 ` [Bug target/26505] " pinskia at gcc dot gnu dot org
2006-03-06 14:20 ` 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).