https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122320
--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by hongtao Liu <[email protected]>: https://gcc.gnu.org/g:06129071b510e29b437d2644c16ca3505a912d31 commit r16-4547-g06129071b510e29b437d2644c16ca3505a912d31 Author: liuhongt <[email protected]> Date: Mon Oct 20 01:42:32 2025 -0700 Simplify avx512 vector integer comparison when 2 operands are known equal For comparison NEQ/LT/NLE, it's simplified to 0. For comparison LE/EQ/NLT, it's simplied to (1u << nelt) - 1 gcc/ChangeLog: PR target/122320 * config/i386/sse.md (*<avx512>_cmp<mode>3_dup_op): New define_insn_and_split. gcc/testsuite/ChangeLog: * gcc.target/i386/pr122320-mask16.c: New test. * gcc.target/i386/pr122320-mask2.c: New test. * gcc.target/i386/pr122320-mask32.c: New test. * gcc.target/i386/pr122320-mask4.c: New test. * gcc.target/i386/pr122320-mask64.c: New test. * gcc.target/i386/pr122320-mask8.c: New test.
