[Patch] Minor fix to OptPass1CMP
Original Reporter info from Mantis: CuriousKit @CuriousKit
-
Reporter name: J. Gareth Moreton
Original Reporter info from Mantis: CuriousKit @CuriousKit
- Reporter name: J. Gareth Moreton
Description:
This patch seeks to fix a bug in a peephole optimisation for CMP. The routine checks the wrong instructions, hence the overall combination can never return True.
Steps to reproduce:
Apply patches and confirm correct compilation and successful regression testing under i386 and x86_64 platforms.
Additional information:
Lazarus under i386-win32 doesn't seem to have code where this optimisation can be used. Any code examples would be appreciated.
Mantis conversion info:
- Mantis ID: 36505
- OS: Microsoft Windows
- OS Build: 10 Professional
- Build: r43826
- Platform: i386 and x86_64
- Version: 3.3.1