[PATCH] D78874: [clang] Add vendor identity for Hygon Dhyana processor

Jinke Fan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Apr 25 23:57:06 PDT 2020


fanjinke created this revision.
Herald added subscribers: cfe-commits, cryptoad.
Herald added a project: clang.
fanjinke added a reviewer: clayborg.
fanjinke added a comment.

Hi Clayborg,

  Please help with the patch review.

Thanks!


The vendor id is used to determine whether the processor
supports hardware CRC32 in the Scudo code. The previous
discussion about the patch is in [1], and more information
about Hygon Dhyana processor is in[2].

Result of "make check":
Testing Time: 1339.56s

  Unsupported Tests:   317
  Expected Passes  : 36674
  Expected Failures:   161

[100%] Built target check-llvm
[100%] Built target check

[1]: https://reviews.llvm.org/D62368
[2]: https://git.kernel.org/torvalds/c/c9661c1e80b609cd038db7c908e061f0535804ef

Signed-off-by: Jinke Fan <fanjinke51 at yeah.net>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D78874

Files:
  clang/lib/Headers/cpuid.h


Index: clang/lib/Headers/cpuid.h
===================================================================
--- clang/lib/Headers/cpuid.h
+++ clang/lib/Headers/cpuid.h
@@ -24,6 +24,10 @@
 #define signature_CYRIX_ebx 0x69727943
 #define signature_CYRIX_edx 0x736e4978
 #define signature_CYRIX_ecx 0x64616574
+/* HYGON:   "HygonGenuine" */
+#define signature_HYGON_ebx 0x6f677948
+#define signature_HYGON_edx 0x6e65476e
+#define signature_HYGON_ecx 0x656e6975
 /* INTEL:   "GenuineIntel" */
 #define signature_INTEL_ebx 0x756e6547
 #define signature_INTEL_edx 0x49656e69


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78874.260147.patch
Type: text/x-patch
Size: 562 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200426/3094266a/attachment.bin>


More information about the cfe-commits mailing list