mirror of
https://github.com/cc65/cc65.git
synced 2025-01-12 02:30:44 +00:00
Merge pull request #138 from spiro-trikaliotis/equality-error-uz
Equality problem (Ullrich von Bassewitz)
This commit is contained in:
commit
1673a40a77
@ -766,8 +766,12 @@ static unsigned Opt_toseqax_tosneax (StackOpData* D, const char* BoolTransformer
|
|||||||
InsertEntry (D, X, D->IP++);
|
InsertEntry (D, X, D->IP++);
|
||||||
|
|
||||||
/* Lhs load entries can be removed */
|
/* Lhs load entries can be removed */
|
||||||
D->Lhs.X.Flags |= LI_REMOVE;
|
if (LoadX->AM != AM65_IMM) {
|
||||||
D->Lhs.A.Flags |= LI_REMOVE;
|
D->Lhs.X.Flags |= LI_REMOVE;
|
||||||
|
}
|
||||||
|
if (LoadA->AM != AM65_IMM) {
|
||||||
|
D->Lhs.A.Flags |= LI_REMOVE;
|
||||||
|
}
|
||||||
|
|
||||||
} else if ((D->Rhs.A.Flags & (LI_DIRECT | LI_RELOAD_Y)) == LI_DIRECT &&
|
} else if ((D->Rhs.A.Flags & (LI_DIRECT | LI_RELOAD_Y)) == LI_DIRECT &&
|
||||||
(D->Rhs.X.Flags & (LI_DIRECT | LI_RELOAD_Y)) == LI_DIRECT) {
|
(D->Rhs.X.Flags & (LI_DIRECT | LI_RELOAD_Y)) == LI_DIRECT) {
|
||||||
@ -790,8 +794,12 @@ static unsigned Opt_toseqax_tosneax (StackOpData* D, const char* BoolTransformer
|
|||||||
InsertEntry (D, X, D->IP++);
|
InsertEntry (D, X, D->IP++);
|
||||||
|
|
||||||
/* Rhs load entries can be removed */
|
/* Rhs load entries can be removed */
|
||||||
D->Rhs.X.Flags |= LI_REMOVE;
|
if (LoadX->AM != AM65_IMM) {
|
||||||
D->Rhs.A.Flags |= LI_REMOVE;
|
D->Rhs.X.Flags |= LI_REMOVE;
|
||||||
|
}
|
||||||
|
if (LoadA->AM != AM65_IMM) {
|
||||||
|
D->Rhs.A.Flags |= LI_REMOVE;
|
||||||
|
}
|
||||||
|
|
||||||
} else if ((D->Rhs.A.Flags & LI_DIRECT) != 0 &&
|
} else if ((D->Rhs.A.Flags & LI_DIRECT) != 0 &&
|
||||||
(D->Rhs.X.Flags & LI_DIRECT) != 0) {
|
(D->Rhs.X.Flags & LI_DIRECT) != 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user