Author: Vy Nguyen Date: 2021-06-23T12:40:16-04:00 New Revision: 1a9f4b3a3890786dbee252e542338f906da98b3c
URL: https://github.com/llvm/llvm-project/commit/1a9f4b3a3890786dbee252e542338f906da98b3c DIFF: https://github.com/llvm/llvm-project/commit/1a9f4b3a3890786dbee252e542338f906da98b3c.diff LOG: [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 64d2c326b7f01942f0179fb797070e5cefbba303) Added: Modified: llvm/lib/Support/Host.cpp Removed: ################################################################################ diff --git a/llvm/lib/Support/Host.cpp b/llvm/lib/Support/Host.cpp index 79482dfacd298..09146c47ff2c4 100644 --- a/llvm/lib/Support/Host.cpp +++ b/llvm/lib/Support/Host.cpp @@ -509,11 +509,11 @@ VendorSignatures getVendorSignature(unsigned *MaxLeaf) { return VendorSignatures::UNKNOWN; // "Genu ineI ntel" - if (EBX == 0x756e6547 && ECX == 0x6c65746e && EDX == 0x49656e69) + if (EBX == 0x756e6547 && EDX == 0x49656e69 && ECX == 0x6c65746e) return VendorSignatures::GENUINE_INTEL; // "Auth enti cAMD" - if (EBX == 0x68747541 && ECX == 0x69746e65 && EDX == 0x444d4163) + if (EBX == 0x68747541 && EDX == 0x69746e65 && ECX == 0x444d4163) return VendorSignatures::AUTHENTIC_AMD; return VendorSignatures::UNKNOWN; _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits