[X86] Add 'fxsr' feature to -march=pentium2 to match X86.td and gcc.

This commit is contained in:
Craig Topper 2019-11-06 10:27:53 -08:00
parent ba73aad4f6
commit a8ccb48f69
2 changed files with 3 additions and 1 deletions

View File

@ -246,10 +246,11 @@ SkylakeCommon:
case CK_Pentium3:
case CK_C3_2:
setFeatureEnabledImpl(Features, "sse", true);
LLVM_FALLTHROUGH;
case CK_Pentium2:
setFeatureEnabledImpl(Features, "fxsr", true);
LLVM_FALLTHROUGH;
case CK_PentiumMMX:
case CK_Pentium2:
case CK_K6:
case CK_WinChipC6:
setFeatureEnabledImpl(Features, "mmx", true);

View File

@ -184,6 +184,7 @@
// RUN: %clang -march=pentium2 -m32 -E -dM %s -o - 2>&1 \
// RUN: -target i386-unknown-linux \
// RUN: | FileCheck -match-full-lines %s -check-prefix=CHECK_PENTIUM2_M32
// CHECK_PENTIUM2_M32: #define __FXSR__ 1
// CHECK_PENTIUM2_M32: #define __MMX__ 1
// CHECK_PENTIUM2_M32: #define __i386 1
// CHECK_PENTIUM2_M32: #define __i386__ 1