[llvm-commits] [llvm-gcc-4.2] r62968 - /llvm-gcc-4.2/trunk/gcc/config/i386/i386.h
Torok Edwin
edwintorok at gmail.com
Sun Jan 25 09:59:41 PST 2009
Author: edwin
Date: Sun Jan 25 11:59:41 2009
New Revision: 62968
URL: http://llvm.org/viewvc/llvm-project?rev=62968&view=rev
Log:
If user explicitly asked not to use sse, convey that information to LLVM
codegen. This fixes the llvm-gcc part of PR3402.
Modified:
llvm-gcc-4.2/trunk/gcc/config/i386/i386.h
Modified: llvm-gcc-4.2/trunk/gcc/config/i386/i386.h
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/config/i386/i386.h?rev=62968&r1=62967&r2=62968&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/config/i386/i386.h (original)
+++ llvm-gcc-4.2/trunk/gcc/config/i386/i386.h Sun Jan 25 11:59:41 2009
@@ -3878,9 +3878,13 @@
F.setCPU(ix86_arch_string); \
if (TARGET_64BIT) F.AddFeature("64bit"); \
if (TARGET_MMX) F.AddFeature("mmx"); \
+ else if (target_flags_explicit & MASK_MMX) F.AddFeature("mmx", false); \
if (TARGET_SSE) F.AddFeature("sse"); \
+ else if (target_flags_explicit & MASK_SSE) F.AddFeature("sse", false); \
if (TARGET_SSE2) F.AddFeature("sse2"); \
+ else if (target_flags_explicit & MASK_SSE2) F.AddFeature("sse2", false); \
if (TARGET_SSE3) F.AddFeature("sse3"); \
+ else if (target_flags_explicit & MASK_SSE3) F.AddFeature("sse3", false); \
if (TARGET_SSSE3) F.AddFeature("ssse3"); \
if (TARGET_SSE4_1) F.AddFeature("sse41"); \
if (TARGET_SSE4_2) F.AddFeature("sse42"); \
More information about the llvm-commits
mailing list