From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30780 invoked by alias); 19 Oct 2011 13:22:14 -0000 Received: (qmail 30772 invoked by uid 22791); 19 Oct 2011 13:22:13 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-gy0-f175.google.com (HELO mail-gy0-f175.google.com) (209.85.160.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 19 Oct 2011 13:21:51 +0000 Received: by gyc15 with SMTP id 15so1863446gyc.20 for ; Wed, 19 Oct 2011 06:21:50 -0700 (PDT) MIME-Version: 1.0 Received: by 10.236.129.228 with SMTP id h64mr9671230yhi.101.1319030510471; Wed, 19 Oct 2011 06:21:50 -0700 (PDT) Received: by 10.147.116.13 with HTTP; Wed, 19 Oct 2011 06:21:50 -0700 (PDT) In-Reply-To: References: Date: Wed, 19 Oct 2011 14:38:00 -0000 Message-ID: Subject: Re: [PATCH, i386, PR50766] Fix incorrect mem/reg operands order From: Uros Bizjak To: Kirill Yukhin Cc: "H.J. Lu" , gcc-patches List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 X-SW-Source: 2011-10/txt/msg01728.txt.bz2 On Wed, Oct 19, 2011 at 3:07 PM, Kirill Yukhin wr= ote: > Here is (almost obvous) patch, which fixes PR50766. > > ChangeLog =A0entry: > 2011-10-19 =A0Kirill Yukhin =A0 > > =A0 =A0 =A0 =A0* config/i386/i386.md (bmi_bextr_): Update register/ > =A0 =A0 =A0 =A0memory operand order. > =A0 =A0 =A0 =A0(bmi2_bzhi_3): Ditto. > =A0 =A0 =A0 =A0(bmi2_pdep_3): Ditto. > =A0 =A0 =A0 =A0(bmi2_pext_3): Ditto. > > Bootstrapped, test (from bug) passing. > > Could you please have a look? Please also add the testcase from the PR. You can use { dg-do assemble }, but you have to check for BMI2 effective target support. BTW: I can't find BMI2 instruction reference documentation, so I'm just rubberstamping the patch as obvious. So, OK with the testcase. Thanks, Uros.