public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* condition codes question
@ 2002-10-29 10:24 Dmitry
  2002-10-31 11:41 ` Richard Henderson
  0 siblings, 1 reply; 2+ messages in thread
From: Dmitry @ 2002-10-29 10:24 UTC (permalink / raw)
  To: gcc

Fellows,
My arch has no SImode comparison instructions. So, I have to perform them as 
subsi and then branch. In this case a scratch register required. But, if the 
CC is NE or EQ, sub insn and scratch are not required. 
I can define two insn patterns - one for ne/eq comparisons and another for 
others. Then call them from expander. But there I have to know a condition 
code. 
Therefore the question is:
Is it possible to get a condition code in CC expander?


Thanks in advance,
Dmitry.

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

* Re: condition codes question
  2002-10-29 10:24 condition codes question Dmitry
@ 2002-10-31 11:41 ` Richard Henderson
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Henderson @ 2002-10-31 11:41 UTC (permalink / raw)
  To: Dmitry; +Cc: gcc

On Tue, Oct 29, 2002 at 02:21:02PM +0300, Dmitry wrote:
> Is it possible to get a condition code in CC expander?

Nope.  See how this is handled in the x86 backend.


r~

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

end of thread, other threads:[~2002-10-31 18:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-29 10:24 condition codes question Dmitry
2002-10-31 11:41 ` Richard Henderson

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