From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4579 invoked by alias); 19 Oct 2011 15:46:20 -0000 Received: (qmail 4569 invoked by uid 22791); 19 Oct 2011 15:46:19 -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,TW_ZJ X-Spam-Check-By: sourceware.org Received: from mail-qy0-f175.google.com (HELO mail-qy0-f175.google.com) (209.85.216.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 19 Oct 2011 15:45:53 +0000 Received: by qyk35 with SMTP id 35so3462961qyk.20 for ; Wed, 19 Oct 2011 08:45:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.67.95 with SMTP id q31mr1559666qci.170.1319039152867; Wed, 19 Oct 2011 08:45:52 -0700 (PDT) Received: by 10.229.83.146 with HTTP; Wed, 19 Oct 2011 08:45:52 -0700 (PDT) In-Reply-To: References: Date: Wed, 19 Oct 2011 16:34:00 -0000 Message-ID: Subject: Re: [PATCH, i386, PR50766] Fix incorrect mem/reg operands order From: "H.J. Lu" To: Uros Bizjak Cc: Kirill Yukhin , gcc-patches List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes 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/msg01745.txt.bz2 On Wed, Oct 19, 2011 at 6:21 AM, Uros Bizjak wrote: > On Wed, Oct 19, 2011 at 3:07 PM, Kirill Yukhin = wrote: > >> 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. Please mention PR #. >> Bootstrapped, test (from bug) passing. >> >> Could you please have a look? > > Please also add the testcase from the PR. You can use =A0{ 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 It is in Intel AVX spec: http://software.intel.com/en-us/avx/ > just rubberstamping the patch as obvious. > --=20 H.J.