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]

Re: Incrementing volatiles?


> Maybe gcc should have some rtxs for incrementing/decrementing a pseudo
> (both ++/-- and +=/-=, so that even unoptimised code gets the
> `optimised' version).  Actualy, rtxs should be defined for *ALL* <op>=

We already have POST_INC, so if we wrap it in something with a mode,
we could express it, e.g.:

(use:QI (post_inc:SI (reg:SI 123)))

However, handling this properly in all the passes would probably be a major
amount of work - maybe more than it's worth.


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