https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95766
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 48849 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48849&action=edit gcc11-pr95766.patch For that, we could use something like this (even though: FAIL: gcc.target/i386/avx512cd-vpbroadcastmb2q-1.c scan-assembler-times vpbroadcastmb2q[ \\t]+[^{\n]*%k[0-7][^\n]*%zmm[0-9]+(?:\n|[ \\t]+#) 1 FAIL: gcc.target/i386/avx512cd-vpbroadcastmw2d-1.c scan-assembler-times vpbroadcastmw2d[ \\t]+[^{\n]*%k[0-7][^\n]*%zmm[0-9]+(?:\n|[ \\t]+#) 1 would need adjustment for that, so that we give the RA a choice. Or use UNSPEC for the patterns, so that it matches only the intrinsics and nothing else.