Re: [PATCH] aarch64: Improve immediate generation by using SUB instruction [PR114528]

2025-03-05 Thread Richard Sandiford
Thanks for the patch and sorry for the slow review. Eikansh Gupta writes: > Many of the constants which are generated using 3 `mov` instruction can be > generated using `mov` plus `sub` instruction. The patch uses following method > to add the mentioned functionality. If a constant `val` can not

[PATCH] aarch64: Improve immediate generation by using SUB instruction [PR114528]

2025-02-28 Thread Eikansh Gupta
Many of the constants which are generated using 3 `mov` instruction can be generated using `mov` plus `sub` instruction. The patch uses following method to add the mentioned functionality. If a constant `val` can not be generated using 1 or 2 `mov`, then find `val1` such that `(val + val1)` can be

Re: [PATCH] AArch64: Improve immediate generation

2023-10-20 Thread Richard Earnshaw
On 19/10/2023 13:43, Wilco Dijkstra wrote: Further improve immediate generation by adding support for 2-instruction MOV/EOR bitmask immediates. This reduces the number of 3/4-instruction immediates in SPECCPU2017 by ~2%. Passes regress, OK for commit? gcc/ChangeLog: * config/aarch64

[PATCH] AArch64: Improve immediate generation

2023-10-19 Thread Wilco Dijkstra
Further improve immediate generation by adding support for 2-instruction MOV/EOR bitmask immediates. This reduces the number of 3/4-instruction immediates in SPECCPU2017 by ~2%. Passes regress, OK for commit? gcc/ChangeLog: * config/aarch64/aarch64.cc (aarch64_internal_mov_immediate)