THURSDAY, APRIL 2, 2026
gcc — Impact 5 / 10
Fix incorrect length for __builtin_bswap16.
Corrects the instruction length attribute for `__builtin_bswap16` on Microblaze to prevent scheduling errors.
The bswaphi pattern, corresponding to __builtin_bswap16, was missing the length attribute, causing the compiler to assume a default length of 8 bytes. On Microblaze, this could lead to the 8-byte bswaphi instruction being incorrectly scheduled into a branch instruction’s delay slot, which only accommodates 4-byte instructions. This patch corrects the length attribute, preventing this scheduling error.