]> git.sur5r.net Git - cc65/commitdiff
Added another op-code to the test pattern for a right-shift optimizer in cc65. 246/head
authorGreg King <gregdk@users.sf.net>
Mon, 14 Dec 2015 16:50:43 +0000 (11:50 -0500)
committerGreg King <gregdk@users.sf.net>
Mon, 14 Dec 2015 16:50:43 +0000 (11:50 -0500)
src/cc65/coptshift.c

index d6af13b76e5961fdb3423dcd15a9a4be3b41d80e..92210ebb5504d5d4eff7a83dd6eea0afe8827aa4 100644 (file)
@@ -341,7 +341,7 @@ unsigned OptShift2 (CodeSeg* S)
         L[0] = CS_GetEntry (S, I);
 
         /* Check for the sequence */
-        if (L[0]->OPC == OP65_BPL                                       &&
+        if ((L[0]->OPC == OP65_BPL || L[0]->OPC == OP65_BCC)            &&
             L[0]->JumpTo != 0                                           &&
             CS_GetEntries (S, L+1, I+1, 3)                              &&
             L[1]->OPC == OP65_DEX                                       &&