This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH:[darwin] fix load of a misaligned double word
- From: David Edelsohn <dje at watson dot ibm dot com>
- To: Brad Lucier <lucier at math dot purdue dot edu>
- Cc: fjahanian at apple dot com (fj), gcc-patches at gcc dot gnu dot org, lucier at mailhost dot math dot purdue dot edu (Bradley Lucier)
- Date: Mon, 22 Dec 2003 22:30:43 -0500
- Subject: Re: PATCH:[darwin] fix load of a misaligned double word
- References: <200312230243.hBN2hlVa025343@banach.math.purdue.edu>
DImode and DFmode need to be treated different (similarly TImode
and TFmode), but DImode can fit in FPR and DFmode can fit in GPR so movdi
and movdf support those loads and stores. If GCC picks the wrong register
class, ... oops.
GCC takes into account the numbers of registers used for a move in
the cost of register preferences, but it could take alignment into account
more effectively.
David