Fix some mistakes I made when I tried to decipher the Intel documentation of the MXCSR register
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@64290 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Headers/xmmintrin.h b/lib/Headers/xmmintrin.h
index 4ef5f7e..978afa9 100644
--- a/lib/Headers/xmmintrin.h
+++ b/lib/Headers/xmmintrin.h
@@ -712,22 +712,27 @@
#define _MM_SHUFFLE(z, y, x, w) (((z) << 6) | ((y) << 4) | ((x) << 2) | (w))
-#define _MM_MASK_INVALID (0x0001)
-#define _MM_MASK_DENORM (0x0002)
-#define _MM_MASK_DIV_ZERO (0x0004)
-#define _MM_MASK_OVERFLOW (0x0008)
-#define _MM_MASK_UNDERFLOW (0x0010)
-#define _MM_MASK_INEXACT (0x0020)
+#define _MM_EXCEPT_INVALID (0x0001)
+#define _MM_EXCEPT_DENORM (0x0002)
+#define _MM_EXCEPT_DIV_ZERO (0x0004)
+#define _MM_EXCEPT_OVERFLOW (0x0008)
+#define _MM_EXCEPT_UNDERFLOW (0x0010)
+#define _MM_EXCEPT_INEXACT (0x0020)
#define _MM_EXCEPT_MASK (0x003f)
+
#define _MM_MASK_INVALID (0x0080)
#define _MM_MASK_DENORM (0x0100)
+#define _MM_EXCEPT_DIV_ZERO (0x0200)
+#define _MM_EXCEPT_OVERFLOW (0x0400)
+#define _MM_EXCEPT_UNDERFLOW (0x0800)
+#define _MM_EXCEPT_INEXACT (0x1000)
#define _MM_MASK_MASK (0x1f80)
-#define _MM_ROUND_MASK (0x6000)
#define _MM_ROUND_NEAREST (0x0000)
#define _MM_ROUND_DOWN (0x2000)
#define _MM_ROUND_UP (0x4000)
#define _MM_ROUND_TOWARD_ZERO (0x6000)
+#define _MM_ROUND_MASK (0x6000)
#define _MM_FLUSH_ZERO_MASK (0x8000)
#define _MM_FLUSH_ZERO_ON (0x8000)