diff mbox

[x32] PATCH: Move A in config/i386/i386.md

Message ID 20110213011345.GA30145@intel.com
State New
Headers show

Commit Message

H.J. Lu Feb. 13, 2011, 1:13 a.m. UTC
Hi,

I checked in this patch to move A closer to P.

H.J.
---
From c7ae2cbb577cb5569947f28afc040ab6a88fd240 Mon Sep 17 00:00:00 2001
From: H.J. Lu <hjl.tools@gmail.com>
Date: Sat, 12 Feb 2011 15:53:36 -0800
Subject: [PATCH 1/2] Move A in config/i386/i386.md.

---
 gcc/ChangeLog.x32       |    4 ++++
 gcc/config/i386/i386.md |    9 ++++-----
 2 files changed, 8 insertions(+), 5 deletions(-)
diff mbox

Patch

diff --git a/gcc/ChangeLog.x32 b/gcc/ChangeLog.x32
index 12269d2..63b2526 100644
--- a/gcc/ChangeLog.x32
+++ b/gcc/ChangeLog.x32
@@ -1,5 +1,9 @@ 
 2011-02-12  H.J. Lu  <hongjiu.lu@intel.com>
 
+	* config/i386/i386.md (A): Moved.
+
+2011-02-12  H.J. Lu  <hongjiu.lu@intel.com>
+
 	PR middle-end/47383
 	* tree-ssa-address.c (addr_for_mem_ref): Use ptr_mode instead
 	of targetm.addr_space.address_mode.
diff --git a/gcc/config/i386/i386.md b/gcc/config/i386/i386.md
index f94bd38..09e90bc 100644
--- a/gcc/config/i386/i386.md
+++ b/gcc/config/i386/i386.md
@@ -933,6 +933,10 @@ 
 ;; This mode iterator allows :P to be used for patterns that operate on
 ;; pointer-sized quantities.  Exactly one of the two alternatives will match.
 (define_mode_iterator P [(SI "Pmode == SImode") (DI "Pmode == DImode")])
+
+;; This mode iterator allows :A to be used for patterns that operate on
+;; address-sized quantities.  Exactly one of the two alternatives will match.
+(define_mode_iterator A [(SI "TARGET_X32") (DI "!TARGET_X32")])
 
 ;; Scheduling descriptions
 
@@ -944,11 +948,6 @@ 
 (include "geode.md")
 (include "atom.md")
 (include "core2.md")
-
-;; This mode iterator allows :A to be used for patterns that operate on
-;; address-sized quantities.  Exactly one of the two alternatives will match.
-(define_mode_iterator A [(SI "TARGET_X32") (DI "!TARGET_X32")])
-
 
 ;; Operand and operator predicates and constraints