mirror of
https://github.com/cc65/cc65.git
synced 2024-12-25 17:29:50 +00:00
Enable optimization for arithmetic right shift. NOTE: There's a bug lingering
in the shift code optimization which needs fixing. git-svn-id: svn://svn.cc65.org/cc65/trunk@5780 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
6cdd8e7281
commit
44f965c462
@ -840,7 +840,7 @@ static unsigned Opt_tosshift (StackOpData* D, const char* Name)
|
|||||||
/* Store the value into the zeropage instead of pushing it */
|
/* Store the value into the zeropage instead of pushing it */
|
||||||
ReplacePushByStore (D);
|
ReplacePushByStore (D);
|
||||||
|
|
||||||
/* Inline the compare */
|
/* Inline the shift */
|
||||||
D->IP = D->OpIndex+1;
|
D->IP = D->OpIndex+1;
|
||||||
|
|
||||||
/* tay */
|
/* tay */
|
||||||
@ -1645,10 +1645,7 @@ static const OptFuncDesc FuncTable[] = {
|
|||||||
{ "tosaddax", Opt_tosaddax, REG_NONE, OP_NONE },
|
{ "tosaddax", Opt_tosaddax, REG_NONE, OP_NONE },
|
||||||
{ "tosandax", Opt_tosandax, REG_NONE, OP_NONE },
|
{ "tosandax", Opt_tosandax, REG_NONE, OP_NONE },
|
||||||
{ "tosaslax", Opt_tosaslax, REG_NONE, OP_NONE },
|
{ "tosaslax", Opt_tosaslax, REG_NONE, OP_NONE },
|
||||||
#if 0
|
|
||||||
/* Library routine missing */
|
|
||||||
{ "tosasrax", Opt_tosasrax, REG_NONE, OP_NONE },
|
{ "tosasrax", Opt_tosasrax, REG_NONE, OP_NONE },
|
||||||
#endif
|
|
||||||
{ "toseqax", Opt_toseqax, REG_NONE, OP_NONE },
|
{ "toseqax", Opt_toseqax, REG_NONE, OP_NONE },
|
||||||
{ "tosgeax", Opt_tosgeax, REG_NONE, OP_RHS_LOAD_DIRECT },
|
{ "tosgeax", Opt_tosgeax, REG_NONE, OP_RHS_LOAD_DIRECT },
|
||||||
{ "tosltax", Opt_tosltax, REG_NONE, OP_RHS_LOAD_DIRECT },
|
{ "tosltax", Opt_tosltax, REG_NONE, OP_RHS_LOAD_DIRECT },
|
||||||
|
Loading…
Reference in New Issue
Block a user