a17efc19d8
Related: rhbz#1890165
36 lines
1.1 KiB
Diff
36 lines
1.1 KiB
Diff
From 6e6453d16aed8ff6220f9933aa5c3f5832e8ff69 Mon Sep 17 00:00:00 2001
|
|
From: serge-sans-paille <sguelton@redhat.com>
|
|
Date: Fri, 11 Jun 2021 15:42:26 +0200
|
|
Subject: [PATCH][clang] 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)
|
|
---
|
|
clang/lib/Basic/Targets/X86.cpp | 3 ---
|
|
1 file changed, 3 deletions(-)
|
|
|
|
diff --git a/clang/lib/Basic/Targets/X86.cpp b/clang/lib/Basic/Targets/X86.cpp
|
|
index 694a809..80e160b 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:
|
|
--
|
|
1.8.3.1
|
|
|