This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/7061] Access of bytes in struct parameters
- From: "rth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Nov 2005 08:09:29 -0000
- Subject: [Bug rtl-optimization/7061] Access of bytes in struct parameters
- References: <bug-7061-695@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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