https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114528
--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Wilco Dijkstra <[email protected]>: https://gcc.gnu.org/g:a1bcce749cf2347820956d9f6bdaa03951421b15 commit r16-6775-ga1bcce749cf2347820956d9f6bdaa03951421b15 Author: Wilco Dijkstra <[email protected]> Date: Mon Jan 12 14:19:46 2026 +0000 AArch64: Improve immediate generation [PR 114528] Improve immediate generation to support 2-instruction MOV+ADD/SUB of 12-bit shifted immediate. Eg. long f1 (void) { return 0x123400567000; } now generates: mov x0, 20014547599360 add x0, x0, 5664768 ret gcc: PR target/114528 * config/aarch64/aarch64.cc (aarch64_check_mov_add_imm12): New function to check and emit MOV+ADD/SUB immediates. (aarch64_internal_mov_immediate): Add support for MOV+ADD/SUB immediates. gcc/testsuite: PR target/114528 * gcc.target/aarch64/pr114528.c: New test.
