AMD k8 family does not support SSE4.x which are required by x86-64-v2+
authorserge-sans-paille <sguelton@redhat.com>
Fri, 11 Jun 2021 13:42:26 +0000 (15:42 +0200)
committerserge-sans-paille <sguelton@redhat.com>
Mon, 14 Jun 2021 05:17:30 +0000 (07:17 +0200)
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

clang/lib/Basic/Targets/X86.cpp

index ee5b6cb..8f7749b 100644 (file)
@@ -514,9 +514,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: