From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 55953 invoked by alias); 11 Nov 2015 15:24:14 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 55941 invoked by uid 89); 11 Nov 2015 15:24:13 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: smtprelay.synopsys.com Received: from smtprelay2.synopsys.com (HELO smtprelay.synopsys.com) (198.182.60.111) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 11 Nov 2015 15:24:13 +0000 Received: from dc8secmta2.synopsys.com (dc8secmta2.synopsys.com [10.13.218.202]) by smtprelay.synopsys.com (Postfix) with ESMTP id 2214410C164A; Wed, 11 Nov 2015 07:24:11 -0800 (PST) Received: from dc8secmta2.internal.synopsys.com (dc8secmta2.internal.synopsys.com [127.0.0.1]) by dc8secmta2.internal.synopsys.com (Service) with ESMTP id 00FF3A411C; Wed, 11 Nov 2015 07:24:11 -0800 (PST) Received: from mailhost.synopsys.com (unknown [10.13.184.66]) by dc8secmta2.internal.synopsys.com (Service) with ESMTP id BC8FCA411A; Wed, 11 Nov 2015 07:24:10 -0800 (PST) Received: from mailhost.synopsys.com (localhost [127.0.0.1]) by mailhost.synopsys.com (Postfix) with ESMTP id A9DA51EF; Wed, 11 Nov 2015 07:24:10 -0800 (PST) Received: from us01wehtc1.internal.synopsys.com (us01wehtc1.internal.synopsys.com [10.12.239.235]) by mailhost.synopsys.com (Postfix) with ESMTP id 8F3E41ED; Wed, 11 Nov 2015 07:24:10 -0800 (PST) Received: from DE02WEHTCB.internal.synopsys.com (10.225.19.94) by us01wehtc1.internal.synopsys.com (10.12.239.235) with Microsoft SMTP Server (TLS) id 14.3.195.1; Wed, 11 Nov 2015 07:23:01 -0800 Received: from DE02WEMBXA.internal.synopsys.com ([fe80::a014:7216:77d:d55c]) by DE02WEHTCB.internal.synopsys.com ([::1]) with mapi id 14.03.0195.001; Wed, 11 Nov 2015 16:22:58 +0100 From: Claudiu Zissulescu To: "gcc-patches@gcc.gnu.org" , "gnu@amylaar.uk" CC: Francois Bedard Subject: [PATCH][ARC] Fix ARC backend ICE on pr29921-2 Date: Wed, 11 Nov 2015 15:24:00 -0000 Message-ID: <098ECE41A0A6114BB2A07F1EC238DE8966169AE2@de02wembxa.internal.synopsys.com> Content-Type: multipart/mixed; boundary="_002_098ECE41A0A6114BB2A07F1EC238DE8966169AE2de02wembxainter_" MIME-Version: 1.0 X-SW-Source: 2015-11/txt/msg01391.txt.bz2 --_002_098ECE41A0A6114BB2A07F1EC238DE8966169AE2de02wembxainter_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-length: 410 Please find attached a patch that fixes the ARC backend ICE on pr29921-2 te= st from gcc.dg (dg.exp).=20 The patch will allow generating conditional move also outside expand scope.= The error was triggered during if-conversion. Ok to apply? Claudiu ChangeLog: 2015-11-11 Claudiu Zissulescu * config/arc/arc.c (gen_compare_reg): Swap operands also when we do not expand to rtl. --_002_098ECE41A0A6114BB2A07F1EC238DE8966169AE2de02wembxainter_ Content-Type: application/octet-stream; name="00-fixpr29921-2.patch" Content-Description: 00-fixpr29921-2.patch Content-Disposition: attachment; filename="00-fixpr29921-2.patch"; size=1467; creation-date="Wed, 11 Nov 2015 15:20:56 GMT"; modification-date="Wed, 11 Nov 2015 15:20:31 GMT" Content-Transfer-Encoding: base64 Content-length: 1989 RnJvbSA5ZjM4MGI4YjEzNjlmOTJkMWU0NWY0YzUwOWYyMzk4OGMxOWYwNWMz IE1vbiBTZXAgMTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBDbG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PSB0bXA7CisJICBz d2FwID0gdHJ1ZTsKIAkgIGJyZWFrOwogCWRlZmF1bHQ6CiAJICBnY2NfdW5y ZWFjaGFibGUgKCk7CiAJfQogICAgICAgaWYgKGN1cnJlbnRseV9leHBhbmRp bmdfdG9fcnRsKQogCXsKKwkgIGlmIChzd2FwKQorCSAgICB7CisJICAgICAg dG1wID0geDsKKwkgICAgICB4ID0geTsKKwkgICAgICB5ID0gdG1wOworCSAg ICB9CiAJICBlbWl0X21vdmVfaW5zbiAob3AwLCB4KTsKIAkgIGVtaXRfbW92 ZV9pbnNuIChvcDEsIHkpOwogCX0KQEAgLTE3MTQsNiArMTcxOSwxMSBAQCBn ZW5fY29tcGFyZV9yZWcgKHJ0eCBjb21wYXJpc29uLCBtYWNoaW5lX21vZGUg b21vZGUpCiAJewogCSAgZ2NjX2Fzc2VydCAocnR4X2VxdWFsX3AgKG9wMCwg eCkpOwogCSAgZ2NjX2Fzc2VydCAocnR4X2VxdWFsX3AgKG9wMSwgeSkpOwor CSAgaWYgKHN3YXApCisJICAgIHsKKwkgICAgICBvcDAgPSB5OworCSAgICAg IG9wMSA9IHg7CisJICAgIH0KIAl9CiAgICAgICBlbWl0X2luc24gKGdlbl9j bXBfZmxvYXQgKGNjX3JlZywgZ2VuX3J0eF9DT01QQVJFIChtb2RlLCBvcDAs IG9wMSkpKTsKICAgICB9Ci0tIAoxLjkuMQoK --_002_098ECE41A0A6114BB2A07F1EC238DE8966169AE2de02wembxainter_--