This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PowerPC - user variables referring to CRs


	Instead of declaring the variable with a mode, could you use the
GCC local register variable extension associating the variable with
register cr0?

	The more general case is something that John Carr once mentioned
and is recommended by IBM for compiler implementations: use PowerPC
condition registers for booleans and small bitfields.  Instead of
comparing the bitfield with a mask, reload the value into a condition
register and synthesize the appropriate type of comparison operator to
test the bits of interest directly.

David


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