From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 67102 invoked by alias); 11 Jun 2015 13:03:21 -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 67038 invoked by uid 48); 11 Jun 2015 13:03:17 -0000 From: "ubizjak at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/56766] Fails to combine (vec_select (vec_concat ...)) to (vec_merge ...) Date: Thu, 11 Jun 2015 13:03:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: ubizjak 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: attachments.created 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-SW-Source: 2015-06/txt/msg01082.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D56766 --- Comment #15 from Uro=C5=A1 Bizjak --- Created attachment 35758 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D35758&action=3Dedit Patch that adds additional ADDSUB patterns using vec_select/vec_concat >>From gcc-bugs-return-488751-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jun 11 13:05:52 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 125584 invoked by alias); 11 Jun 2015 13:05:51 -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 Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 125484 invoked by uid 48); 11 Jun 2015 13:05:43 -0000 From: "ubizjak at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/56766] Fails to combine (vec_select (vec_concat ...)) to (vec_merge ...) Date: Thu, 11 Jun 2015 13:05:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: ubizjak 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-SW-Source: 2015-06/txt/msg01083.txt.bz2 Content-length: 423 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D56766 --- Comment #16 from Uro=C5=A1 Bizjak --- (In reply to Richard Biener from comment #8) > No. [...] > That was why I was suggesting to add additional patterns rather than > replacing the existing ones... So, there is no other way than using "the ugly" patch that adds missing patterns. Please try the patch, attached in the message above. >>From gcc-bugs-return-488752-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jun 11 13:15:03 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 7568 invoked by alias); 11 Jun 2015 13:15:03 -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 Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 7457 invoked by uid 48); 11 Jun 2015 13:14:58 -0000 From: "howarth.at.gcc at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/66509] New: the new clang-based assembler in Xcode 7 on 10.11 fails on the libjava/java/lang/reflect/natArray.cc file from FSF gcc 5.1 at -m32 Date: Thu, 11 Jun 2015 13:15:00 -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: 5.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: howarth.at.gcc at gmail dot com 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 attachments.created Message-ID: 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: 2015-06/txt/msg01084.txt.bz2 Content-length: 2952 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66509 Bug ID: 66509 Summary: the new clang-based assembler in Xcode 7 on 10.11 fails on the libjava/java/lang/reflect/natArray.cc file from FSF gcc 5.1 at -m32 Product: gcc Version: 5.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: howarth.at.gcc at gmail dot com Target Milestone: --- Created attachment 35759 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35759&action=edit assembly for ibjava/java/lang/reflect/natArray.cc at -m32 on x86_64 darwin The public Xcode 7 beta and associated Command Line Tools (available on 10.10 from https://developer.apple.com/xcode/downloads/ and https://developer.apple.com/downloads/) replace the legacy GNU assembler with a clang-based assembler. The new clang-based assembler fails to compile libjava/java/lang/reflect/natArray.cc at -m32 in the multilib build of libjava due to the assembler errors... natArray.s:1110:2: error: ambiguous instructions require an explicit suffix (could be 'filds', or 'fildl') fild 8(%esi,%edi,2) ^ natArray.s:1120:2: error: ambiguous instructions require an explicit suffix (could be 'filds', or 'fildl') fild 10(%esp) ^ natArray.s:1267:2: error: ambiguous instructions require an explicit suffix (could be 'filds', or 'fildl') fild 8(%esi,%edi,2) ^ natArray.s:1277:2: error: ambiguous instructions require an explicit suffix (could be 'filds', or 'fildl') fild 14(%esp) ^ natArray.s:1830:2: error: ambiguous instructions require an explicit suffix (could be 'filds', or 'fildl') fild 14(%esp) ^ natArray.s:1907:2: error: ambiguous instructions require an explicit suffix (could be 'filds', or 'fildl') fild 14(%esp) ^ natArray.s:1988:2: error: ambiguous instructions require an explicit suffix (could be 'filds', or 'fildl') fild 14(%esp) ^ natArray.s:2047:2: error: ambiguous instructions require an explicit suffix (could be 'filds', or 'fildl') fild 14(%esp) ^ This issue can be reproduced with the attached natArray.s assembly file using the command... as -arch i386 -force_cpusubtype_ALL -o natArray.o natArray.s against the new clang-based assembler. The same file is processed without errors using the legacy GNU-based assembler from Xcode 6.2 on 10.9 or Xcode 6.3 on 10.10. Can the FSF gcc i386 maintainers comment on whether there is anything in the Intel/AMD instruction specifications that merits this strict behavior for the assembler with regard to ambiguous fild instructions? Note that this compilation failure is limited to -m32 and that the -m64 build of libjava is processed without errors by the new clang-based assembler.