public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/7061] Alpha: Access of bytes in struct parameters
[not found] <bug-7061-695@http.gcc.gnu.org/bugzilla/>
@ 2005-11-02 8:06 ` rth at gcc dot gnu dot org
2005-11-02 8:09 ` [Bug rtl-optimization/7061] " rth at gcc dot gnu dot org
2006-02-08 21:10 ` pluto at agmk dot net
2 siblings, 0 replies; 4+ messages in thread
From: rth at gcc dot gnu dot org @ 2005-11-02 8:06 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from rth at gcc dot gnu dot org 2005-11-02 08:06 -------
Still present in 4.1.
As a guess, we're creating a BLKmode register (because alignof(struct s1)
is less than alignof(HImode)), and assign_parm_setup_block forces the data
into the stack. It's possible this can be bypassed for some structures,
but I havn't given it much thought.
--
rth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2005-09-07 17:37:09 |2005-11-02 08:06:36
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=7061
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug rtl-optimization/7061] Access of bytes in struct parameters
[not found] <bug-7061-695@http.gcc.gnu.org/bugzilla/>
2005-11-02 8:06 ` [Bug rtl-optimization/7061] Alpha: Access of bytes in struct parameters rth at gcc dot gnu dot org
@ 2005-11-02 8:09 ` rth at gcc dot gnu dot org
2006-02-08 21:10 ` pluto at agmk dot net
2 siblings, 0 replies; 4+ messages in thread
From: rth at gcc dot gnu dot org @ 2005-11-02 8:09 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from rth at gcc dot gnu dot org 2005-11-02 08:09 -------
And there is nothing Alpha specific about this. Any target which passes
structures in registers can show it. For instance, ia64:
f1:
.prologue
.body
.mmi
st2 [r12] = r32
nop 0
mov r14 = r12
;;
.mmi
ld1 r15 = [r14], 1
;;
ld1 r8 = [r14]
nop 0
;;
.mib
nop 0
add r8 = r8, r15
br.ret.sptk.many b0
.endp f1#
.align 16
.global f2#
.proc f2#
f2:
.prologue
.body
.mii
nop 0
extr.u r8 = r32, 8, 8
zxt1 r32 = r32
;;
.mib
nop 0
add r8 = r8, r32
br.ret.sptk.many b0
--
rth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
GCC host triplet|alphapca56-*-linux-gnu |
GCC target triplet|alphapca56-*-linux-gnu |
Summary|Alpha: Access of bytes in |Access of bytes in struct
|struct parameters |parameters
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=7061
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug rtl-optimization/7061] Access of bytes in struct parameters
[not found] <bug-7061-695@http.gcc.gnu.org/bugzilla/>
2005-11-02 8:06 ` [Bug rtl-optimization/7061] Alpha: Access of bytes in struct parameters rth at gcc dot gnu dot org
2005-11-02 8:09 ` [Bug rtl-optimization/7061] " rth at gcc dot gnu dot org
@ 2006-02-08 21:10 ` pluto at agmk dot net
2 siblings, 0 replies; 4+ messages in thread
From: pluto at agmk dot net @ 2006-02-08 21:10 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from pluto at agmk dot net 2006-02-08 21:10 -------
one more testcase from x86-64 / gcc-4.1:
float re(float _Complex a) { return __real__ a; }
is compiled to:
re: movq %xmm0, -8(%rsp)
movss -8(%rsp), %xmm0
ret
but can be optimized to `movss %xmm0, %xmm0`.
--
pluto at agmk dot net changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pluto at agmk dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=7061
^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <20020617164601.7061.falk.hueffner@student.uni-tuebingen.de>]
end of thread, other threads:[~2006-02-08 21:10 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-7061-695@http.gcc.gnu.org/bugzilla/>
2005-11-02 8:06 ` [Bug rtl-optimization/7061] Alpha: Access of bytes in struct parameters rth at gcc dot gnu dot org
2005-11-02 8:09 ` [Bug rtl-optimization/7061] " rth at gcc dot gnu dot org
2006-02-08 21:10 ` pluto at agmk dot net
[not found] <20020617164601.7061.falk.hueffner@student.uni-tuebingen.de>
2005-01-16 1:40 ` [Bug rtl-optimization/7061] Alpha: " 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).