From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23024 invoked by alias); 19 Dec 2013 00:07:41 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 22919 invoked by uid 48); 19 Dec 2013 00:07:08 -0000 From: "thiago at kde dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/59539] Missed optimisation: VEX-prefixed operations don't need aligned data Date: Thu, 19 Dec 2013 00:07:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: thiago at kde dot org X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-12/txt/msg01704.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59539 --- Comment #13 from Thiago Macieira --- I can't confirm. trunk@206091: $ ~/gcc4.9/bin/gcc -mavx -S -o - -O3 -xc - <<<'#include int f(void *p1, void *p2) { __m128i d1 = _mm_loadu_si128((__m128i*)p1); __m128i d2 = _mm_loadu_si128((__m128i*)p2); __m128i result = _mm_cmpeq_epi16(d1, d2); return _mm_movemask_epi8(result); } ' .file "" .section .text.unlikely,"ax",@progbits .LCOLDB0: .text .LHOTB0: .p2align 4,,15 .globl f .type f, @function f: .LFB1073: .cfi_startproc vmovdqu (%rdi), %xmm0 vmovdqu (%rsi), %xmm1 vpcmpeqw %xmm1, %xmm0, %xmm0 vpmovmskb %xmm0, %eax ret .cfi_endproc .LFE1073: .size f, .-f .section .text.unlikely .LCOLDE0: .text .LHOTE0: .ident "GCC: (GNU) 4.9.0 20131121 (experimental)" .section .note.GNU-stack,"",@progbits