[PATCH] D98322: [llvm] Fix thinko in getVendorSignature(), where expected values of ECX and EDX were flipped for the AMD case.

Vy Nguyen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 9 23:44:11 PST 2021


oontvoo created this revision.
oontvoo added reviewers: ppenzin, ondrasej.
Herald added subscribers: dexonsmith, hiraditya.
oontvoo requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Follow up to D97504 <https://reviews.llvm.org/D97504>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D98322

Files:
  llvm/lib/Support/Host.cpp


Index: llvm/lib/Support/Host.cpp
===================================================================
--- llvm/lib/Support/Host.cpp
+++ llvm/lib/Support/Host.cpp
@@ -516,7 +516,7 @@
     return VendorSignatures::GENUINE_INTEL;
 
   // "Auth enti cAMD"
-  if (EBX == 0x68747541 && ECX == 0x69746e65 && EDX == 0x444d4163)
+  if (EBX == 0x68747541 && ECX == 0x444d4163 && EDX == 0x69746e65)
     return VendorSignatures::AUTHENTIC_AMD;
 
   return VendorSignatures::UNKNOWN;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98322.329549.patch
Type: text/x-patch
Size: 471 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210310/f42430c5/attachment.bin>


More information about the llvm-commits mailing list