https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93459

            Bug ID: 93459
           Summary: ix86_fold_builtin should handle
                    __builtin_ia32_pcmpeqd128_mask and similar builtins
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jakub at gcc dot gnu.org
  Target Milestone: ---

Just noticed we don't fold e.g.
#include <x86intrin.h>

void link_error (void);

void
foo (void)
{
  __m128i a = _mm_setr_epi32 (0xffff0000U, 0x80000000U, 0, 0xfffffff8U);
  if (_mm_cmpeq_epi32_mask (a, a) != 15)
    link_error ();
}

with -O2 -mavx512vl, neither at GIMPLE time (ix86_fold_builtin), nor at RTL opt
time.

Reply via email to