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 Mon, Nov 06, 2000 at 08:55:53AM +1100, Ben Elliston wrote:
: No, it doesn't work as expected.  If I set a BI to the value of newc, I get
: the 8-bit value of newc, not a 0 or a 1.  This leads to unpredictable
: results when later interrogating cbit.

In other words, it is the use of a BI variable as an rvalue that is the
problem.  Perhaps the right approach then is to forbid coercion from BI
to *INT, or to define it formally (such as "int foo = ! ! bar;").

- FChE

PGP signature


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