Bug 229

Summary: Add more addq optimisations
Product: RMAC Reporter: ggn <ggnkua>
Component: CoreAssignee: Shamus Hammons <jlhamm>
Status: UNCONFIRMED ---    
Severity: enhancement CC: jlhamm
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: All   

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!