summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorGeoffrey Mainland <mainland@apeiron.net>2013-08-02 17:55:55 +0100
committerGeoffrey Mainland <mainland@apeiron.net>2013-08-06 09:00:47 +0100
commit253a5b753f9592e63344eff6c71298f566928e4d (patch)
tree8df6907230aac69f08b26bcf890897f4d94da0a6 /includes
parent0daee297e3c44c00f54d2be15f13eabdddc6b62f (diff)
downloadhaskell-253a5b753f9592e63344eff6c71298f566928e4d.tar.gz
Rename SSE -> XMM for consistency.
We were using SSE is some places and XMM in others. Better to keep a consistent naming scheme.
Diffstat (limited to 'includes')
-rw-r--r--includes/CodeGen.Platform.hs8
-rw-r--r--includes/rts/Constants.h2
-rw-r--r--includes/stg/MachRegs.h32
3 files changed, 21 insertions, 21 deletions
diff --git a/includes/CodeGen.Platform.hs b/includes/CodeGen.Platform.hs
index beff19601d..8007574b10 100644
--- a/includes/CodeGen.Platform.hs
+++ b/includes/CodeGen.Platform.hs
@@ -381,7 +381,7 @@ activeStgRegs = [
#ifdef REG_SpLim
,SpLim
#endif
-#if MAX_REAL_SSE_REG != 0
+#if MAX_REAL_XMM_REG != 0
#ifdef REG_F1
,FloatReg 1
#endif
@@ -436,7 +436,7 @@ activeStgRegs = [
#ifdef REG_XMM6
,XmmReg 6
#endif
-#else /* MAX_REAL_SSE_REG == 0 */
+#else /* MAX_REAL_XMM_REG == 0 */
#ifdef REG_F1
,FloatReg 1
#endif
@@ -473,7 +473,7 @@ activeStgRegs = [
#ifdef REG_D6
,DoubleReg 6
#endif
-#endif /* MAX_REAL_SSE_REG == 0 */
+#endif /* MAX_REAL_XMM_REG == 0 */
]
haveRegBase :: Bool
@@ -587,7 +587,7 @@ globalRegMaybe (DoubleReg 6) =
Just (RealRegSingle REG_D6)
# endif
# endif
-#if MAX_REAL_SSE_REG != 0
+#if MAX_REAL_XMM_REG != 0
globalRegMaybe (XmmReg 1) = Just (RealRegSingle REG_XMM1)
globalRegMaybe (XmmReg 2) = Just (RealRegSingle REG_XMM2)
globalRegMaybe (XmmReg 3) = Just (RealRegSingle REG_XMM3)
diff --git a/includes/rts/Constants.h b/includes/rts/Constants.h
index 4739e3ad1a..494abe2b22 100644
--- a/includes/rts/Constants.h
+++ b/includes/rts/Constants.h
@@ -84,7 +84,7 @@
#define MAX_FLOAT_REG 6
#define MAX_DOUBLE_REG 6
#define MAX_LONG_REG 1
-#define MAX_SSE_REG 6
+#define MAX_XMM_REG 6
/* -----------------------------------------------------------------------------
Semi-Tagging constants
diff --git a/includes/stg/MachRegs.h b/includes/stg/MachRegs.h
index 76bdb1fc21..a8f2215578 100644
--- a/includes/stg/MachRegs.h
+++ b/includes/stg/MachRegs.h
@@ -107,7 +107,7 @@
#define MAX_REAL_FLOAT_REG 0
#define MAX_REAL_DOUBLE_REG 0
#define MAX_REAL_LONG_REG 0
-#define MAX_REAL_SSE_REG 0
+#define MAX_REAL_XMM_REG 0
/* -----------------------------------------------------------------------------
The x86-64 register mapping
@@ -212,7 +212,7 @@
#define MAX_REAL_FLOAT_REG 6
#define MAX_REAL_DOUBLE_REG 6
#define MAX_REAL_LONG_REG 0
-#define MAX_REAL_SSE_REG 6
+#define MAX_REAL_XMM_REG 6
/* -----------------------------------------------------------------------------
The PowerPC register mapping
@@ -565,21 +565,21 @@
# endif
#endif
-#ifndef MAX_REAL_SSE_REG
-# if defined(REG_SSE6)
-# define MAX_REAL_SSE_REG 6
-# elif defined(REG_SSE5)
-# define MAX_REAL_SSE_REG 5
-# elif defined(REG_SSE4)
-# define MAX_REAL_SSE_REG 4
-# elif defined(REG_SSE3)
-# define MAX_REAL_SSE_REG 3
-# elif defined(REG_SSE2)
-# define MAX_REAL_SSE_REG 2
-# elif defined(REG_SSE1)
-# define MAX_REAL_SSE_REG 1
+#ifndef MAX_REAL_XMM_REG
+# if defined(REG_XMM6)
+# define MAX_REAL_XMM_REG 6
+# elif defined(REG_XMM5)
+# define MAX_REAL_XMM_REG 5
+# elif defined(REG_XMM4)
+# define MAX_REAL_XMM_REG 4
+# elif defined(REG_XMM3)
+# define MAX_REAL_XMM_REG 3
+# elif defined(REG_XMM2)
+# define MAX_REAL_XMM_REG 2
+# elif defined(REG_XMM1)
+# define MAX_REAL_XMM_REG 1
# else
-# define MAX_REAL_SSE_REG 0
+# define MAX_REAL_XMM_REG 0
# endif
#endif