Skip to content

Commit 1a9f4b3

Browse files
oontvootstellar
authored andcommitted
[llvm] Fix thinko in getVendorSignature(), where expected values of ECX and EDX were flipped for the AMD case.
Follow up to D97504 Differential Revision: https://reviews.llvm.org/D98322 (cherry picked from commit 64d2c32)
1 parent 88c6773 commit 1a9f4b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Support/Host.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -509,11 +509,11 @@ VendorSignatures getVendorSignature(unsigned *MaxLeaf) {
509509
return VendorSignatures::UNKNOWN;
510510

511511
// "Genu ineI ntel"
512-
if (EBX == 0x756e6547 && ECX == 0x6c65746e && EDX == 0x49656e69)
512+
if (EBX == 0x756e6547 && EDX == 0x49656e69 && ECX == 0x6c65746e)
513513
return VendorSignatures::GENUINE_INTEL;
514514

515515
// "Auth enti cAMD"
516-
if (EBX == 0x68747541 && ECX == 0x69746e65 && EDX == 0x444d4163)
516+
if (EBX == 0x68747541 && EDX == 0x69746e65 && ECX == 0x444d4163)
517517
return VendorSignatures::AUTHENTIC_AMD;
518518

519519
return VendorSignatures::UNKNOWN;

0 commit comments

Comments
 (0)