From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3C2C63858D20; Tue, 30 May 2023 15:19:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3C2C63858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1685459980; bh=CJLQa9WRkmNIOYqOIV9obnVvk+cnCmg+52sMkjl8MD8=; h=From:To:Subject:Date:From; b=q3I/OGF0SVMcEln3p/Fu+bkHOeymNdQcB2scCueDQ9hngOCkVQCKyUjB3dTyrT4RZ PkmLxbswAe0xUNcNmBh76eKMT+935Il1df4pdLM84HO/O4CR6lbDj1n/xxZL9MAnvz nX1xvg8GE11wBBxZhDRQU0NSJ0N00LYvKXXZrim4= From: "jeevitha at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/110040] New: rs6000 port emits dead mfvsrd instruction for simple test case Date: Tue, 30 May 2023 15:19:39 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jeevitha at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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=3D110040 Bug ID: 110040 Summary: rs6000 port emits dead mfvsrd instruction for simple test case Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: jeevitha at gcc dot gnu.org Target Milestone: --- GCC Trunk generates a dead mfvsrd for the following test case. [jeevitha@ltcden2-lp1 ~]$ cat bug.c=20 #include void foo (signed long *dst, vector signed __int128 src) { *dst =3D (signed long) src[0]; } [jeevitha@ltcden2-lp1 ~]$ gcc bug.c -O2 -mcpu=3Dpower9 -S -o bug.s [jeevitha@ltcden2-lp1 ~]$ cat bug.s .file "bug.c" .machine power9 .abiversion 2 .section ".text" .align 2 .p2align 4,,15 .globl foo .type foo, @function foo: .LFB0: .cfi_startproc mfvsrd 11,34 #dead instruction mfvsrld 10,34 std 10,0(3) blr=