This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/40122] missed optimization when using union of __m128i and int[4]
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 May 2009 15:59:43 -0000
- Subject: [Bug middle-end/40122] missed optimization when using union of __m128i and int[4]
- References: <bug-40122-17603@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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