[cfe-commits] r140690 - in /cfe/trunk: lib/Basic/Targets.cpp test/Preprocessor/predefined-arch-macros.c
Chandler Carruth
chandlerc at gmail.com
Wed Sep 28 02:54:11 PDT 2011
Author: chandlerc
Date: Wed Sep 28 04:54:11 2011
New Revision: 140690
URL: http://llvm.org/viewvc/llvm-project?rev=140690&view=rev
Log:
Fix a think-o on my part that got enshrined in a FIXME by setting up the
__tune_...__ define as well.
Modified:
cfe/trunk/lib/Basic/Targets.cpp
cfe/trunk/test/Preprocessor/predefined-arch-macros.c
Modified: cfe/trunk/lib/Basic/Targets.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Basic/Targets.cpp?rev=140690&r1=140689&r2=140690&view=diff
==============================================================================
--- cfe/trunk/lib/Basic/Targets.cpp (original)
+++ cfe/trunk/lib/Basic/Targets.cpp Wed Sep 28 04:54:11 2011
@@ -1799,8 +1799,10 @@
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:
Modified: cfe/trunk/test/Preprocessor/predefined-arch-macros.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Preprocessor/predefined-arch-macros.c?rev=140690&r1=140689&r2=140690&view=diff
==============================================================================
--- cfe/trunk/test/Preprocessor/predefined-arch-macros.c (original)
+++ cfe/trunk/test/Preprocessor/predefined-arch-macros.c Wed Sep 28 04:54:11 2011
@@ -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
More information about the cfe-commits
mailing list