From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7E7D1385C331; Wed, 15 Jun 2022 08:10:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7E7D1385C331 From: "crazylht at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyBjLzEwNTkyM10gdW5zdXBwb3J0ZWQgcmV0dXJuIHR5cGUg?= =?UTF-8?B?4oCYY29tcGxleCBkb3VibGXigJkgZm9yIHNpbWQ=?= Date: Wed, 15 Jun 2022 08:10:41 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: ABI X-Bugzilla-Severity: enhancement X-Bugzilla-Who: crazylht at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned 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: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jun 2022 08:10:41 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105923 --- Comment #5 from Hongtao.liu --- after a rough hack to allow complex type in both omp-simd-clone and vectorizer(get_related_vectype_for_scalar_type), testcase in PR could be compiled to .L4: vmovapd a(%rbx), %ymm0 addq $32, %rbx call _ZGVdN4v_foo vmovapd %ymm0, b-32(%rbx) cmpq %rbx, %r13 jne .L4 movl %r12d, %ebx andl $-4, %ebx movl %ebx, %r13d cmpl %ebx, %r12d je .L20 vzeroupper .L3: subl %r13d, %r12d cmpl $1, %r12d je .L6 salq $4, %r13 vmovapd a(%r13), %xmm0 call _ZGVbN2v_foo vmovapd %xmm0, b(%r13) testb $1, %r12b je .L17 andl $-2, %r12d addl %r12d, %ebx .L6: movslq %ebx, %rbx salq $4, %rbx vmovsd a(%rbx), %xmm0 vmovsd a+8(%rbx), %xmm1 call foo vmovsd %xmm0, b(%rbx) vmovsd %xmm1, b+8(%rbx)=