From bdbf75372c9ca027ceb6d75da22c7d37b7e7ced9 Mon Sep 17 00:00:00 2001 From: Greg King Date: Mon, 14 Dec 2015 11:50:43 -0500 Subject: [PATCH] Added another op-code to the test pattern for a right-shift optimizer in cc65. --- src/cc65/coptshift.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cc65/coptshift.c b/src/cc65/coptshift.c index d6af13b76..92210ebb5 100644 --- a/src/cc65/coptshift.c +++ b/src/cc65/coptshift.c @@ -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 && -- 2.39.5