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 tree-optimization/37101] [4.2/4.3 Regression] wrong code: tree vectorizer omits bogus movq/movlps construct



------- Comment #5 from christophe at saout dot de  2008-08-14 00:08 -------
Created an attachment (id=16068)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16068&action=view)
Remove broken alternatives using movlps for vec_concatv2di(_rex) insn

causes gcc to emit the following valid sequence instead
(which is the sequence it always produced when I tried to build a standalone
test case):

        movq    56(%rsp), %rax
        addq    $8, %rax
        movq    56(%rsp), %xmm1
        movd    %rax, %xmm2
        punpcklqdq      %xmm2, %xmm1
        movdqa  %xmm1, %xmm0

BTW: that last move seems redundant...


-- 


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


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