[Bug middle-end/40122] missed optimization when using union of __m128i and int[4]

rguenth at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon May 25 16:00:00 GMT 2009



------- Comment #5 from rguenth at gcc dot gnu dot org  2009-05-25 15:59 -------
I have some CCP / fold_stmt patches that produce

        movdqa  .LC1(%rip), %xmm0
        pcmpeqd %xmm0, %xmm0
        pmovmskb        %xmm0, %eax
        cmpl    $65535, %eax
        setne   %al
        movzbl  %al, %eax
        ret

as well.  The issue is that the CONSTRUCTOR from _mm_set1_epi32(1) is neither
marked TREE_CONSTANT nor folded to VECTOR_CST.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40122



More information about the Gcc-bugs mailing list