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