> Maybe I should reserve a special register for this usage (say r0).

That might be the only way, yes.

Note that reload also assumes that such adds don't change the flags
(i.e.  a compare/jump pair must not have a flag-modifying add between
them).

Reply via email to