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: [ARM] Implementing doloop pattern


Hello,

>
> @@ -162,6 +175,7 @@ doloop_condition_get (rtx doloop_pat)
>      return 0;
>
>    if ((XEXP (condition, 0) == reg)
> +      || (REGNO (XEXP (condition, 0)) == CC_REGNUM)
>        || (GET_CODE (XEXP (condition, 0)) == PLUS
>                    && XEXP (XEXP (condition, 0), 0) == reg))
>
> You can't depend on CC_REGNUM in generic code.  That's part of the
> private machine description for ARM.  Other cores have different ways of
> representing condition codes.
>
> R.

Yes, thanks, I found that out when testing the patch on PowerPC.
Attached is a newer version of the patch which is currently
under testing.

Thanks,
Revital


(See attached file: patch_arm_doloop_5.txt)

Attachment: patch_arm_doloop_5.txt
Description: Text document


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