Bug 229 - Add more addq optimisations
Summary: Add more addq optimisations
Alias: None
Product: RMAC
Classification: Unclassified
Component: Core (show other bugs)
Version: unspecified
Hardware: All All
: Normal enhancement
Assignee: Shamus Hammons
Depends on:
Reported: 2024-03-17 09:23 CDT by ggn
Modified: 2024-03-17 09:23 CDT (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description ggn 2024-03-17 09:23:02 CDT
Right now there's

o4: lea size(An),An to addq #size,An
o8: adda.w/l #x,Dy to addq.w/l #x,Dy

Both only work in a subset of addq/subq optimisation cases (for example, they don't cover addi.w #2,<ea>).

Two thoughts:

a) Add a third switch, so everything works as before for old sources
b) Consolidate o4 and o8 in one switch, and extend it to more cases.

My take: most people will use +Oall anyway, so nobody will notice either way!