This is the mail archive of the gcc-patches@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] |
I think it's because the second else-if clause exchanges base_reg (which is here known to be a constant) and XEXP(src,1), the latter becoming the new "base reg" below. So reg_mode[REGNO(XEXP(src,1))] is what matters here.
I think that reg_mode should be checked whenever reg_offset is used as a replacement, so the first check is correct and the second should be changed.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |