|
|
fab8f6 |
commit 30562e52396c7fbe2a404acda2b1b77f871005ea
|
|
|
fab8f6 |
Author: root <root@lenovo-x3950-01.khw.lab.eng.bos.redhat.com>
|
|
|
fab8f6 |
Date: Thu Jan 18 00:12:41 2018 -0500
|
|
|
fab8f6 |
|
|
|
fab8f6 |
Add FIRST_INT_REG, LAST_INT_REG, LEGACY_INT_REG_P , and LEGACY_INT_REGNO_P
|
|
|
fab8f6 |
|
|
|
fab8f6 |
diff --git a/gcc/config/i386/i386.h b/gcc/config/i386/i386.h
|
|
|
fab8f6 |
index e31c8d0..87fd381 100644
|
|
|
fab8f6 |
--- a/gcc/config/i386/i386.h
|
|
|
fab8f6 |
+++ b/gcc/config/i386/i386.h
|
|
|
fab8f6 |
@@ -1115,6 +1115,9 @@ extern const char *host_detect_local_cpu (int argc, const char **argv);
|
|
|
fab8f6 |
/* Base register for access to local variables of the function. */
|
|
|
fab8f6 |
#define FRAME_POINTER_REGNUM 20
|
|
|
fab8f6 |
|
|
|
fab8f6 |
+#define FIRST_INT_REG AX_REG
|
|
|
fab8f6 |
+#define LAST_INT_REG SP_REG
|
|
|
fab8f6 |
+
|
|
|
fab8f6 |
/* First floating point reg */
|
|
|
fab8f6 |
#define FIRST_FLOAT_REG 8
|
|
|
fab8f6 |
|
|
|
fab8f6 |
@@ -1317,6 +1320,9 @@ enum reg_class
|
|
|
fab8f6 |
#define QI_REG_P(X) (REG_P (X) && QI_REGNO_P (REGNO (X)))
|
|
|
fab8f6 |
#define QI_REGNO_P(N) IN_RANGE ((N), AX_REG, BX_REG)
|
|
|
fab8f6 |
|
|
|
fab8f6 |
+#define LEGACY_INT_REG_P(X) (REG_P (X) && LEGACY_INT_REGNO_P (REGNO (X)))
|
|
|
fab8f6 |
+#define LEGACY_INT_REGNO_P(N) (IN_RANGE ((N), FIRST_INT_REG, LAST_INT_REG))
|
|
|
fab8f6 |
+
|
|
|
fab8f6 |
#define GENERAL_REG_P(X) \
|
|
|
fab8f6 |
(REG_P (X) && GENERAL_REGNO_P (REGNO (X)))
|
|
|
fab8f6 |
#define GENERAL_REGNO_P(N) \
|