From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id F39C13858D34; Mon, 12 Aug 2024 10:18:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F39C13858D34 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1723457888; bh=vcHHP+/q5Bea2C+z+4MS1dwxVGqegCQP2lOJUjKFCQU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=YQwtHry+mBQAX3Tyn2N1UPwt6P5d9wLTNwbS4SurFPY4O58uyKCCzi3amtf6W5+as O7s8PdAxwED3/GogWjStj9Brz/3WG+IbinR7Vti13DAF6+tOeOXhMVm4VSXJo0+N0q IiormxTByDhqy6/3qFFpzMpR2WVmXQN7AjGGhQC0= From: "liuhongt at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/116274] [14/15 Regression] x86: poor code generation with 16 byte function arguments and addition Date: Mon, 12 Aug 2024 10:18:07 +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: 14.2.1 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: liuhongt at gcc dot gnu.org 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: 13.4 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D116274 --- Comment #6 from Hongtao Liu --- (In reply to Hongtao Liu from comment #5) > For non-avx case, looks like it hits here >=20 > 748 /* Special case TImode to 128-bit vector conversions via V2DI. */= =20=20=20 >=20 Prevent that in reload, we get .file "test.c" .text .p2align 4 .globl testq .type testq, @function testq: .LFB0: .cfi_startproc movq %rdi, %xmm1 pinsrq $1, %rsi, %xmm1 movdqa %xmm1, %xmm0 psrldq $8, %xmm0 paddq %xmm1, %xmm0 movq %xmm0, %rax ret .cfi_endproc .LFE0: .size testq, .-testq .p2align 4 .globl testw .type testw, @function testw: .LFB1: .cfi_startproc movq %rdi, %xmm1 pinsrq $1, %rsi, %xmm1 movdqa %xmm1, %xmm0 psrldq $8, %xmm0 paddw %xmm1, %xmm0 movdqa %xmm0, %xmm1 psrldq $4, %xmm1 paddw %xmm1, %xmm0 movdqa %xmm0, %xmm1 psrldq $2, %xmm1 paddw %xmm1, %xmm0 pextrw $0, %xmm0, %eax ret .cfi_endproc .LFE1: .size testw, .-testw .p2align 4 .globl testd .type testd, @function testd: .LFB2: .cfi_startproc movq %rdi, %xmm1 pinsrq $1, %rsi, %xmm1 movdqa %xmm1, %xmm0 psrldq $8, %xmm0 paddd %xmm1, %xmm0 movdqa %xmm0, %xmm1 psrldq $4, %xmm1 paddd %xmm1, %xmm0 movd %xmm0, %eax ret .cfi_endproc .LFE2:=