[llvm-branch-commits] [clang] 9be9215 - AMD k8 family does not support SSE4.x which are required by x86-64-v2+
Tom Stellard via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Jun 21 10:55:12 PDT 2021
Author: serge-sans-paille
Date: 2021-06-21T13:54:43-04:00
New Revision: 9be9215b27196c52177c4fc6edebd31a8f4b7e49
URL: https://github.com/llvm/llvm-project/commit/9be9215b27196c52177c4fc6edebd31a8f4b7e49
DIFF: https://github.com/llvm/llvm-project/commit/9be9215b27196c52177c4fc6edebd31a8f4b7e49.diff
LOG: AMD k8 family does not support SSE4.x which are required by x86-64-v2+
So don't define __tune__k8__ for these micro architecture.
SSE, SSE2 and SSE3 appear in https://www.amd.com/system/files/TechDocs/25112.PDF
but not SSE4.x.
Differential Revision: https://reviews.llvm.org/D104116
(cherry picked from commit 092c303955cd18be6c0b923b1c0a1b96e2c91893)
Added:
Modified:
clang/lib/Basic/Targets/X86.cpp
Removed:
################################################################################
diff --git a/clang/lib/Basic/Targets/X86.cpp b/clang/lib/Basic/Targets/X86.cpp
index 694a8095e3365..80e160bd9190f 100644
--- a/clang/lib/Basic/Targets/X86.cpp
+++ b/clang/lib/Basic/Targets/X86.cpp
@@ -513,9 +513,6 @@ void X86TargetInfo::getTargetDefines(const LangOptions &Opts,
case CK_K8:
case CK_K8SSE3:
case CK_x86_64:
- case CK_x86_64_v2:
- case CK_x86_64_v3:
- case CK_x86_64_v4:
defineCPUMacros(Builder, "k8");
break;
case CK_AMDFAM10:
More information about the llvm-branch-commits
mailing list