pengfei added a comment.

Thanks @anna and @craig.topper 
I think we can dump the value with the simple code

  $ cat cpuid.c
  #include <stdio.h>
  #include <cpuid.h>
  
  int main() {
    unsigned int info[4];
    for (int i = 0; i < 2; ++i) {
      __get_cpuid_count(7, 1, info, info + 1, info + 2, info + 3);
      printf("%08x\n", info[0]);
      printf("%08x\n", info[1]);
      printf("%08x\n", info[2]);
      printf("%08x\n", info[3]);
    }
  }
  
  $ clang cpuid.c && ./a.out


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D155145/new/

https://reviews.llvm.org/D155145

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to