This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/7061] Alpha: Access of bytes in struct parameters
- From: "dhazeghi at yahoo dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Jun 2003 05:11:49 -0000
- Subject: [Bug optimization/7061] Alpha: Access of bytes in struct parameters
- References: <20020617164601.7061.falk.hueffner@student.uni-tuebingen.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=7061
dhazeghi@yahoo.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
------- Additional Comments From dhazeghi@yahoo.com 2003-06-08 05:11 -------
Falk,
I don't know Alpha assembly, but here's what gcc 3.3 branch produces. I take it this is still not
optimal? Thanks,
Dara
.set noat
.set noreorder
.arch pca56
.text
.align 2
.align 4
.globl f1
.ent f1
$f1..ng:
f1:
.frame $30,0,$26,0
lda $30,-16($30)
.prologue 0
stw $16,0($30)
ldbu $2,0($30)
ldbu $3,1($30)
addl $2,$3,$0
lda $30,16($30)
ret $31,($26),1
.end f1
.align 2
.align 4
.globl f2
.ent f2
$f2..ng:
f2:
.frame $30,0,$26,0
.prologue 0
bis $31,$16,$1
and $16,0xff,$2
extbl $1,1,$3
addl $2,$3,$0
ret $31,($26),1
.end f2
.ident "GCC: (GNU) 3.3.1 20030608 (prerelease)"