public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Seeking suggestion
@ 2009-05-23  0:04 Jamie Prescott
  2009-05-23 13:41 ` Jamie Prescott
  0 siblings, 1 reply; 16+ messages in thread
From: Jamie Prescott @ 2009-05-23  0:04 UTC (permalink / raw)
  To: gcc


Suppose you're writing the backend for a VM supporting two architectures, in which
one of them clobbers the CC registers for certain instructions, while the other does not.
The instructions themselves are exactly the same.
What is the best/shortest/more-elegant way to write this, possibly w/out duplicating the
instructions?
I know I can write a define_expand and redirect, based on the TARGET, to two different
instructions (one with "clobber", the other w/out), but that's basically three declarations
for each insns. Is there a shorter way?


 - Jamie



      

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

end of thread, other threads:[~2009-05-27 19:28 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-23  0:04 Seeking suggestion Jamie Prescott
2009-05-23 13:41 ` Jamie Prescott
2009-05-23 14:17   ` Ian Lance Taylor
2009-05-23 17:09     ` Jamie Prescott
2009-05-24  0:35       ` Georg-Johann Lay
2009-05-24  2:18         ` Jamie Prescott
2009-05-24 10:23           ` Georg-Johann Lay
2009-05-27 14:42           ` Jim Wilson
2009-05-27 18:56             ` Jamie Prescott
2009-05-27 19:11               ` Jamie Prescott
2009-05-27 19:28               ` Eric Botcazou
2009-05-28  4:56                 ` Jamie Prescott
2009-05-28  5:16                   ` Georg-Johann Lay
2009-05-28  5:33                     ` Jamie Prescott
2009-05-25  3:23   ` Michael Meissner
2009-05-25 22:52     ` Jamie Prescott

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