https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124280
--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Xi Ruoyao <[email protected]>: https://gcc.gnu.org/g:5a76b4f528a654f0158aa6d9c43ef8bbf8d660f5 commit r16-7758-g5a76b4f528a654f0158aa6d9c43ef8bbf8d660f5 Author: Xi Ruoyao <[email protected]> Date: Fri Feb 27 16:54:40 2026 +0800 middle-end: allow expand_vector_broadcast to broadcast QImode to BImode vector [PR 124280] A boolean value is in QImode, but a vector of booleans is in VxxBImode. And both AArch64 SVE and RISC-V V have vec_duplicatevXXbi accepting a QI scalar. Allow this case. PR middle-end/124280 gcc/ * optabs.cc (expand_vector_broadcast): Allow broadcasting QImode to BImode vector. gcc/testsuite/ * gcc.c-torture/compile/pr124280.c: New test.
