This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: Handle SSE4.1 for -msse/-msse2/-msse3


I missed this one on my SSE4.1 patch.


H.J.
----
2007-05-23  H.J. Lu  <hongjiu.lu@intel.com>

	* config/i386/i386.c (ix86_handle_option): Handle SSE4.1 for
	-msse/-msse2/-msse3.

--- gcc/config/i386/i386.c.explicit	2007-05-23 05:28:18.000000000 -0700
+++ gcc/config/i386/i386.c	2007-05-23 10:17:23.000000000 -0700
@@ -1571,25 +1571,28 @@ ix86_handle_option (size_t code, const c
       if (!value)
 	{
 	  target_flags &= ~(MASK_SSE2 | MASK_SSE3 | MASK_SSSE3
-			    | MASK_SSE4A);
+			    | MASK_SSE4_1 | MASK_SSE4A);
 	  target_flags_explicit |= (MASK_SSE2 | MASK_SSE3 | MASK_SSSE3
-				    | MASK_SSE4A);
+				    | MASK_SSE4_1| MASK_SSE4A);
 	}
       return true;
 
     case OPT_msse2:
       if (!value)
 	{
-	  target_flags &= ~(MASK_SSE3 | MASK_SSSE3 | MASK_SSE4A);
-	  target_flags_explicit |= MASK_SSE3 | MASK_SSSE3 | MASK_SSE4A;
+	  target_flags &= ~(MASK_SSE3 | MASK_SSSE3 | MASK_SSE4_1
+			    | MASK_SSE4A);
+	  target_flags_explicit |= (MASK_SSE3 | MASK_SSSE3
+				    | MASK_SSE4_1 | MASK_SSE4A);
 	}
       return true;
 
     case OPT_msse3:
       if (!value)
 	{
-	  target_flags &= ~(MASK_SSSE3 | MASK_SSE4A);
-	  target_flags_explicit |= MASK_SSSE3 | MASK_SSE4A;
+	  target_flags &= ~(MASK_SSSE3 | MASK_SSE4_1 | MASK_SSE4A);
+	  target_flags_explicit |= (MASK_SSSE3 | MASK_SSE4_1
+				    | MASK_SSE4A);
 	}
       return true;
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]