From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22268 invoked by alias); 8 Oct 2013 14:42:15 -0000 Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org Received: (qmail 22259 invoked by uid 89); 8 Oct 2013 14:42:14 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.2 X-HELO: nat28.tlf.novell.com Received: from nat28.tlf.novell.com (HELO nat28.tlf.novell.com) (130.57.49.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Tue, 08 Oct 2013 14:42:14 +0000 Received: from EMEA1-MTA by nat28.tlf.novell.com with Novell_GroupWise; Tue, 08 Oct 2013 15:42:10 +0100 Message-Id: <525435E002000078000F9A55@nat28.tlf.novell.com> Date: Tue, 08 Oct 2013 14:42:00 -0000 From: "Jan Beulich" To: "H.J. Lu" Cc: , Subject: [PATCH 3/6] x86/MPX: suppress base/index swapping in Intel mode for bndmk, bndldx, and bndstx References: <5254349502000078000F9A3D@nat28.tlf.novell.com> In-Reply-To: <5254349502000078000F9A3D@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__PartA794ACD0.2__=" X-SW-Source: 2013-10/txt/msg00071.txt.bz2 This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__PartA794ACD0.2__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Content-length: 810 bndmk, bndldx, and bndstx assign special meaning to base and index registers, and hence silently swapping the registers should be suppressed. gas/ 2013-10-08 Jan Beulich * tc-i386.c (i386_intel_simplify_register): Suppress base/index swapping for bndmk, bndldx, and bndstx. --- 2013-10-07/gas/config/tc-i386-intel.c +++ 2013-10-07/gas/config/tc-i386-intel.c @@ -291,6 +291,8 @@ i386_intel_simplify_register (expression else if (!intel_state.index) { if (intel_state.in_scale + || current_templates->start->base_opcode =3D=3D 0xf30f1b /* bndm= k */ + || (current_templates->start->base_opcode & ~1) =3D=3D 0x0f1a /*= bnd{ld,st}x */ || i386_regtab[reg_num].reg_type.bitfield.baseindex) intel_state.index =3D i386_regtab + reg_num; else --=__PartA794ACD0.2__= Content-Type: text/plain; name="binutils-mainline-x86-MPX-intel-no-swap.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="binutils-mainline-x86-MPX-intel-no-swap.patch" Content-length: 807 bndmk, bndldx, and bndstx assign special meaning to base and index registers, and hence silently swapping the registers should be suppressed. gas/ 2013-10-08 Jan Beulich * tc-i386.c (i386_intel_simplify_register): Suppress base/index swapping for bndmk, bndldx, and bndstx. --- 2013-10-07/gas/config/tc-i386-intel.c +++ 2013-10-07/gas/config/tc-i386-intel.c @@ -291,6 +291,8 @@ i386_intel_simplify_register (expression else if (!intel_state.index) { if (intel_state.in_scale + || current_templates->start->base_opcode =3D=3D 0xf30f1b /* bndm= k */ + || (current_templates->start->base_opcode & ~1) =3D=3D 0x0f1a /*= bnd{ld,st}x */ || i386_regtab[reg_num].reg_type.bitfield.baseindex) intel_state.index =3D i386_regtab + reg_num; else --=__PartA794ACD0.2__=--