Add AMD CPU Ryzen target
Original Reporter info from Mantis: urhen
-
Reporter name: NoName
Original Reporter info from Mantis: urhen
- Reporter name: NoName
Description:
The XCHG optimisation (https://bugs.freepascal.org/view.php?id=36511 - thx J. Gareth Moreton!) makes assumptions on the CPU target but unfortunately there is no AMD Ryzen target.
Might also makes sense for other optimizations as AMD != Intel and therefore several instructions are faster/slower or should be avoided (e.g. RDRAND on unpatched CPU firmwares).
Steps to reproduce:
According to https://www.agner.org/optimize/instruction_tables.pdf the XCHG is as fast as the MOV operation (tested on first gen of AMD Ryzen).
Mantis conversion info:
- Mantis ID: 36517
- Version: 3.3.1