This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]