This is the mail archive of the
cgen@sources.redhat.com
mailing list for the CGEN project.
setting BI operands
- To: cgen development <cgen at sources dot redhat dot com>
- Subject: setting BI operands
- From: Ben Elliston <bje at cygnus dot com>
- Date: Fri, 3 Nov 2000 10:56:34 +1100 (EST)
I noticed that it's possible to assign operands of BI modes to non-boolean
values. I'm assuming this is because the generated code stores this in a
byte quantity.
If the appropriate setter method for BI operands were altered to include
something like (newval > 0) rather than (newval), we could ensure that these
operands only ever equal zero or one.
Thoughts?
Ben