forked from OSchip/llvm-project
Fix a think-o on my part that got enshrined in a FIXME by setting up the
__tune_...__ define as well. llvm-svn: 140690
This commit is contained in:
parent
3f7ed950fd
commit
5d0feef373
|
@ -1799,8 +1799,10 @@ void X86TargetInfo::getTargetDefines(const LangOptions &Opts,
|
|||
Builder.defineMacro("__athlon");
|
||||
Builder.defineMacro("__athlon__");
|
||||
Builder.defineMacro("__tune_athlon__");
|
||||
if (SSELevel != NoSSE)
|
||||
if (SSELevel != NoSSE) {
|
||||
Builder.defineMacro("__athlon_sse__");
|
||||
Builder.defineMacro("__tune_athlon_sse__");
|
||||
}
|
||||
break;
|
||||
case CK_K8:
|
||||
case CK_K8SSE3:
|
||||
|
|
|
@ -441,8 +441,7 @@
|
|||
// CHECK_ATHLON_4_M32: #define __i386 1
|
||||
// CHECK_ATHLON_4_M32: #define __i386__ 1
|
||||
// CHECK_ATHLON_4_M32: #define __tune_athlon__ 1
|
||||
// FIXME: This should be defined!
|
||||
// CHECK_ATHLON_4_M32-NOT: #define __tune_athlon_sse__ 1
|
||||
// CHECK_ATHLON_4_M32: #define __tune_athlon_sse__ 1
|
||||
// CHECK_ATHLON_4_M32: #define i386 1
|
||||
// RUN: %clang -march=athlon-4 -m64 -E -dM %s -o - 2>&1 \
|
||||
// RUN: | FileCheck %s -check-prefix=CHECK_ATHLON_4_M64
|
||||
|
@ -456,8 +455,7 @@
|
|||
// CHECK_ATHLON_XP_M32: #define __i386 1
|
||||
// CHECK_ATHLON_XP_M32: #define __i386__ 1
|
||||
// CHECK_ATHLON_XP_M32: #define __tune_athlon__ 1
|
||||
// FIXME: This should be defined!
|
||||
// CHECK_ATHLON_XP_M32-NOT: #define __tune_athlon_sse__ 1
|
||||
// CHECK_ATHLON_XP_M32: #define __tune_athlon_sse__ 1
|
||||
// CHECK_ATHLON_XP_M32: #define i386 1
|
||||
// RUN: %clang -march=athlon-xp -m64 -E -dM %s -o - 2>&1 \
|
||||
// RUN: | FileCheck %s -check-prefix=CHECK_ATHLON_XP_M64
|
||||
|
@ -471,8 +469,7 @@
|
|||
// CHECK_ATHLON_MP_M32: #define __i386 1
|
||||
// CHECK_ATHLON_MP_M32: #define __i386__ 1
|
||||
// CHECK_ATHLON_MP_M32: #define __tune_athlon__ 1
|
||||
// FIXME: This should be defined!
|
||||
// CHECK_ATHLON_MP_M32-NOT: #define __tune_athlon_sse__ 1
|
||||
// CHECK_ATHLON_MP_M32: #define __tune_athlon_sse__ 1
|
||||
// CHECK_ATHLON_MP_M32: #define i386 1
|
||||
// RUN: %clang -march=athlon-mp -m64 -E -dM %s -o - 2>&1 \
|
||||
// RUN: | FileCheck %s -check-prefix=CHECK_ATHLON_MP_M64
|
||||
|
|
Loading…
Reference in New Issue