This is the mail archive of the cgen@sources.redhat.com mailing list for the CGEN project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: setting BI operands


Hi -

On Fri, Nov 03, 2000 at 02:12:46PM +1100, Ben Elliston wrote:
: A port I've worked on had frequently did this:
:    (set cbit (if QI newc 1 0))
: It should be possible to just use:
:    (set cbit newc)
: and for newc to be coerced to BI, based on the convention you've mentioned.

Right, but does this not already work this way?  Does the negativeness
of newc have anything to do with the truthness of cbit?

(I do see a potential problem when a BI value is used an an rvalue, being
cast to an integral type.)

- FChE

PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]