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)