mosa / MOSA-Project

Managed Operating System Alliance Project
https://www.mosa-project.org/
Other
406 stars 82 forks source link

X86 Expanded LEA instruction #1173

Closed tgiphil closed 7 months ago

tgiphil commented 7 months ago

LEA can be expanded to:

  1. Provide scale (x 2, 4, 8) multiplier
  2. Addition of two registers plus a constant
  3. And 1 + 2 combined

The current compiler does not utilize LEA in the capacities listed above.