public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* reload in incompatible constraints
@ 2011-06-23  8:35 Aurelien Buhrig
  2011-06-23 17:58 ` Ian Lance Taylor
  0 siblings, 1 reply; 6+ messages in thread
From: Aurelien Buhrig @ 2011-06-23  8:35 UTC (permalink / raw)
  To: gcc-help

Hi,

I would like some advice to figure out what is the correct way to
hande my movhi insn.

My target has general registers (natural mode HI, constraint r), and
base registers, which are not GENERAL_REG class(natural mode PSI, may
contain HI, contraint A).

My main problem is when defining a *movhi insn whose
constraints/predicates only support r registers, GCC may reload some r
register into A subreg:HI register, and complains because the insn
*movhi does not satisfy its constraints (r). How to prevent this ?

BTW, to handle movhi from subreg:HI A to subreg:HI A, which is not
supported by the target: should I define a define_expand movhi whose
predicates supports such an operation, and then, provide a
define_split to froce passing through a r reg ? Is there a more
efficient way to do this ?


Thanks
Aurélien

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-06-28 14:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-23  8:35 reload in incompatible constraints Aurelien Buhrig
2011-06-23 17:58 ` Ian Lance Taylor
2011-06-27 21:46   ` Aurelien Buhrig
2011-06-28  6:01     ` Ian Lance Taylor
2011-06-28 17:57       ` Aurelien Buhrig
2011-06-28 18:55         ` Ian Lance Taylor

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).