public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* clarification question
@ 2022-10-22 18:12 Péntek Imre
  2022-10-22 18:38 ` Marc Glisse
  0 siblings, 1 reply; 3+ messages in thread
From: Péntek Imre @ 2022-10-22 18:12 UTC (permalink / raw)
  To: gcc

Hi,

https://gcc.gnu.org/backends.html

by "Architecture does not have a single condition code register" do you 
mean it has none or do you mean it has multiple?

Thank you in advance for the clarification.
-- 
With regards: Imre PÉNTEK
Üdvözlettel: PÉNTEK Imre
E-mail: pentek.imre@gmail.com

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

* Re: clarification question
  2022-10-22 18:12 clarification question Péntek Imre
@ 2022-10-22 18:38 ` Marc Glisse
  2022-10-23 14:59   ` Paul Koning
  0 siblings, 1 reply; 3+ messages in thread
From: Marc Glisse @ 2022-10-22 18:38 UTC (permalink / raw)
  To: Péntek Imre; +Cc: gcc

On Sat, 22 Oct 2022, Péntek Imre via Gcc wrote:

> https://gcc.gnu.org/backends.html
>
> by "Architecture does not have a single condition code register" do you mean 
> it has none or do you mean it has multiple?

Either.

If you look at the examples below, there is a C for riscv, which has 0, 
and one for sparc, which has several.

-- 
Marc Glisse

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

* Re: clarification question
  2022-10-22 18:38 ` Marc Glisse
@ 2022-10-23 14:59   ` Paul Koning
  0 siblings, 0 replies; 3+ messages in thread
From: Paul Koning @ 2022-10-23 14:59 UTC (permalink / raw)
  To: GCC Development; +Cc: Péntek Imre, Marc Glisse



> On Oct 22, 2022, at 2:38 PM, Marc Glisse via Gcc <gcc@gcc.gnu.org> wrote:
> 
> On Sat, 22 Oct 2022, Péntek Imre via Gcc wrote:
> 
>> https://gcc.gnu.org/backends.html
>> 
>> by "Architecture does not have a single condition code register" do you mean it has none or do you mean it has multiple?
> 
> Either.
> 
> If you look at the examples below, there is a C for riscv, which has 0, and one for sparc, which has several.

Also pdp11, which has two: one for floating point, one for integers, and conditional branches act only on the integer CC register.  So the MD has to describe a "move float CC to integer CC" operation.

GCC supports all these strange things quite nicely -- this is one of several things that the newer CCmode machinery does well and the old "cc0" stuff doesn't.

	paul



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

end of thread, other threads:[~2022-10-23 14:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-22 18:12 clarification question Péntek Imre
2022-10-22 18:38 ` Marc Glisse
2022-10-23 14:59   ` Paul Koning

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