https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103383
--- Comment #17 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Michael Eager <[email protected]>: https://gcc.gnu.org/g:9e3e6ceb3b18c0dd57f49ef7eb28c9462575a282 commit r16-8745-g9e3e6ceb3b18c0dd57f49ef7eb28c9462575a282 Author: Gopi Kumar Bulusu <[email protected]> Date: Thu Apr 2 12:02:59 2026 +0530 Fix incorrect length for __builtin_bswap16 The bswaphi pattern generates 2 assembly instructions with a length of 8 bytes. The bswaphi pattern missed the length attribute, as a result the default of 8 bytes was assumed. This allowed the "8 byte" bswaphi pattern to be scheduled into the delay slot of a branch instruction where only a 4 byte instruction can be placed. This patch addresses the problem. 2026-04-18 Michael Eager <[email protected]> gcc/ChangeLog: PR target/103383 * config/microblaze/microblaze.md: bswaphi2: (set_attr length 8) gcc/testsuite/ChangeLog: PR target/103383 * gcc.target/microblaze/isa/pr103383.c: New test. Signed-off-by: Nagaraju Mekala <[email protected]> Signed-off-by: Gopi Kumar Bulusu <[email protected]> Signed-off-by: Michael J. Eager <[email protected]>
