https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56766 --- Comment #11 from UroÅ¡ Bizjak --- (In reply to Richard Biener from comment #10) > So it works with > > (define_insn "sse3_addsubv2df3" > [(set (match_operand:V2DF 0 "register_operand" "=x,x") > (vec_select:V2DF > (vec_concat:V4DF > (plus:V2DF > (match_operand:V2DF 1 "register_operand" "0,x") > (match_operand:V2DF 2 "nonimmediate_operand" "xm,xm")) > (minus:V2DF (match_dup 2) (match_dup 1))) > (parallel [(const_int 0) (const_int 3)])))] You swapped non-commutative part of the insn. This should be: (define_insn "*sse3_addsubv2df3_1" [(set (match_operand:V2DF 0 "register_operand" "=x,x") (vec_select:V2DF (vec_concat:V4DF (plus:V2DF (match_operand:V2DF 2 "nonimmediate_operand" "xm,xm") (match_operand:V2DF 1 "register_operand" "0,x")) (minus:V2DF (match_dup 1) (match_dup 2))) (parallel [(const_int 0) (const_int 3)])))] "TARGET_SSE3" >From gcc-bugs-return-488732-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jun 11 11:14:27 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 29950 invoked by alias); 11 Jun 2015 11:14:27 -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 29622 invoked by uid 55); 11 Jun 2015 11:14:23 -0000 From: "rguenther at suse dot de" 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 11:14: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: rguenther at suse dot de 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/msg01064.txt.bz2 Content-length: 1400 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56766 --- Comment #12 from rguenther at suse dot de --- On Thu, 11 Jun 2015, ubizjak at gmail dot com wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56766 > > --- Comment #11 from UroÅ¡ Bizjak --- > (In reply to Richard Biener from comment #10) > > So it works with > > > > (define_insn "sse3_addsubv2df3" > > [(set (match_operand:V2DF 0 "register_operand" "=x,x") > > (vec_select:V2DF > > (vec_concat:V4DF > > (plus:V2DF > > (match_operand:V2DF 1 "register_operand" "0,x") > > (match_operand:V2DF 2 "nonimmediate_operand" "xm,xm")) > > (minus:V2DF (match_dup 2) (match_dup 1))) > > (parallel [(const_int 0) (const_int 3)])))] > > You swapped non-commutative part of the insn. This should be: > > (define_insn "*sse3_addsubv2df3_1" > [(set (match_operand:V2DF 0 "register_operand" "=x,x") > (vec_select:V2DF > (vec_concat:V4DF > (plus:V2DF > (match_operand:V2DF 2 "nonimmediate_operand" "xm,xm") > (match_operand:V2DF 1 "register_operand" "0,x")) > (minus:V2DF (match_dup 1) (match_dup 2))) > (parallel [(const_int 0) (const_int 3)])))] > "TARGET_SSE3" As it is just 'naming' it shouldn't matter, no? >From gcc-bugs-return-488733-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jun 11 11:14:51 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 30842 invoked by alias); 11 Jun 2015 11:14: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 30809 invoked by uid 48); 11 Jun 2015 11:14:46 -0000 From: "admin at maniacsvault dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug objc++/66504] New: ICE using C++ exceptions in Objective-C++ Date: Thu, 11 Jun 2015 11:14:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: objc++ X-Bugzilla-Version: 5.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: major X-Bugzilla-Who: admin at maniacsvault dot net 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/msg01065.txt.bz2 Content-length: 1172 https://gcc.gnu.org/bugzilla/show_bug.cgi?idf504 Bug ID: 66504 Summary: ICE using C++ exceptions in Objective-C++ Product: gcc Version: 5.1.0 Status: UNCONFIRMED Severity: major Priority: P3 Component: objc++ Assignee: unassigned at gcc dot gnu.org Reporter: admin at maniacsvault dot net Target Milestone: --- Created attachment 35756 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id5756&actioníit Minimal example A rather simple program using C++ exceptions in Objective-C++ can generate an ICE. exceptionice.mm: In function 'void Problem()': exceptionice.mm:1:6: internal compiler error: in objc_eh_runtime_type, at objc/objc-next-runtime-abi-01.c:2804 void Problem() ^ Compiled on Mac OS X 10.4 on a PowerMac G4 with the following configuration: CC=gcc-4.2 CXX=g++-4.2 AS=/opt/cctools/usr/bin/as AS_FOR_TARGET=/opt/cctools/usr/bin/as ../GCC/configure --prefix=/opt/gcc/5 --disable-nls --enable-languages=c,c++,objc,obj-c++,lto --disable-multilib --with-dwarf2 Command line used to get the error is: /opt/gcc/5/bin/g++ exceptionice.mm