public inbox for cgen@sourceware.org
 help / color / mirror / Atom feed
From: Doug Evans <dje@transmeta.com>
To: Ben Elliston <bje@redhat.com>
Cc: cgen@sources.redhat.com
Subject: operating on individual register bits
Date: Fri, 18 May 2001 07:54:00 -0000	[thread overview]
Message-ID: <15109.14229.904787.96141@casey.transmeta.com> (raw)
In-Reply-To: <15108.51009.551848.162882@scooby.apac.redhat.com>

Ben Elliston writes:
 > Frequently, I find myself wanting to set and clear individual bits of
 > hardware registers in rtl.  Perhaps such a mechanism already exists.
 > If it does, I'm not aware of it.  Here is the canonical example:
 > 
 > 	 (set cc.z 1)
 > 
 > versus:
 > 
 > 	(set cc (or cc (sll SI 1 10))),
 > 
 > which makes much less sense to the reader.
 > 
 > Is it sensible to extend cgen to give names to individual bits of a
 > register such that operands on registers can adopt this C/Pascal-style
 > syntax for accessing individual bits?

There's comments regarding this in the code and/or docs.
I wasn't sure how I wanted to go (e.g. follow gcc's rtl support
for this or not) so I punted until there was a need and more thought
could be put in.

It's a reasonable thing to add but it needs to be thought about
(try to find lots of architectures with such support and see what
works best to describe them).

      parent reply	other threads:[~2001-05-18  7:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-17 23:55 Ben Elliston
2001-05-18  5:00 ` Johan Rydberg
2001-05-18  7:54 ` Doug Evans [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=15109.14229.904787.96141@casey.transmeta.com \
    --to=dje@transmeta.com \
    --cc=bje@redhat.com \
    --cc=cgen@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).