Re: [fpc-devel] ARM: AND/CMP -> TST optimisation produces incorrect results

2024-02-19 Thread J. Gareth Moreton via fpc-devel
Thanks for the report and especially your investigative work. Ii'll take a look to see what's going on. Gareth aka. Kit On 20/02/2024 01:30, Garry Wood via fpc-devel wrote: Hello, Commit 6b2e4fa4 (main) entitled “* arm: "OpCmp2OpS" moved to Pass 2 so it doesn't conflict with AND; CMP ->

[fpc-devel] ARM: AND/CMP -> TST optimisation produces incorrect results

2024-02-19 Thread Garry Wood via fpc-devel
Hello, Commit 6b2e4fa4 (main) entitled "* arm: "OpCmp2OpS" moved to Pass 2 so it doesn't conflict with AND; CMP -> TST optimisation" by Gareth from Feb 11 2024 produces incorrect assembler in certain cases.