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] |
dje wrote: > Is there a simple way to, for example, modify bit 2 in (reg h-cr 2), > or do I have to mask and or it into place? The appropriate rtx fns need only be created ... Yes, these would be extremely useful. As would a pair rtl expressions for testing if a particular bit is set or clear. Here are two pmacros I have used for this in the past: (define-pmacro (bitset? value bit-num) (and value (sll 1 bit-num))) (define-pmacro (bitclear? value bit-num) (not (bitset? value bit-num))) Ben
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |