Commit 66da42bc by H.J. Lu Committed by H.J. Lu

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

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

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

From-SVN: r125023
parent 5691b85a
2007-05-24 H.J. Lu <hongjiu.lu@intel.com> 2007-05-24 H.J. Lu <hongjiu.lu@intel.com>
* config/i386/i386.c (ix86_handle_option): Handle SSE4.1 for
-msse/-msse2/-msse3.
2007-05-24 H.J. Lu <hongjiu.lu@intel.com>
* config/i386/i386.c (ix86_init_mmx_sse_builtins): Mark * config/i386/i386.c (ix86_init_mmx_sse_builtins): Mark
__builtin_ia32_vec_set_v2di with MASK_64BIT. __builtin_ia32_vec_set_v2di with MASK_64BIT.
......
...@@ -1571,25 +1571,28 @@ ix86_handle_option (size_t code, const char *arg ATTRIBUTE_UNUSED, int value) ...@@ -1571,25 +1571,28 @@ ix86_handle_option (size_t code, const char *arg ATTRIBUTE_UNUSED, int value)
if (!value) if (!value)
{ {
target_flags &= ~(MASK_SSE2 | MASK_SSE3 | MASK_SSSE3 target_flags &= ~(MASK_SSE2 | MASK_SSE3 | MASK_SSSE3
| MASK_SSE4A); | MASK_SSE4_1 | MASK_SSE4A);
target_flags_explicit |= (MASK_SSE2 | MASK_SSE3 | MASK_SSSE3 target_flags_explicit |= (MASK_SSE2 | MASK_SSE3 | MASK_SSSE3
| MASK_SSE4A); | MASK_SSE4_1 | MASK_SSE4A);
} }
return true; return true;
case OPT_msse2: case OPT_msse2:
if (!value) if (!value)
{ {
target_flags &= ~(MASK_SSE3 | MASK_SSSE3 | MASK_SSE4A); target_flags &= ~(MASK_SSE3 | MASK_SSSE3 | MASK_SSE4_1
target_flags_explicit |= MASK_SSE3 | MASK_SSSE3 | MASK_SSE4A; | MASK_SSE4A);
target_flags_explicit |= (MASK_SSE3 | MASK_SSSE3
| MASK_SSE4_1 | MASK_SSE4A);
} }
return true; return true;
case OPT_msse3: case OPT_msse3:
if (!value) if (!value)
{ {
target_flags &= ~(MASK_SSSE3 | MASK_SSE4A); target_flags &= ~(MASK_SSSE3 | MASK_SSE4_1 | MASK_SSE4A);
target_flags_explicit |= MASK_SSSE3 | MASK_SSE4A; target_flags_explicit |= (MASK_SSSE3 | MASK_SSE4_1
| MASK_SSE4A);
} }
return true; return true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment