[Lldb-commits] [PATCH] D41962: Fix TestYMMRegisters for older machines without AVX2

Roman Lebedev via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Jan 11 13:30:06 PST 2018


lebedev.ri added inline comments.


================
Comment at: packages/Python/lldbsuite/test/functionalities/register/intel_avx/main.c:21
+  static volatile unsigned haveAVX2;
+  haveAVX2 = __builtin_cpu_supports("avx2");
   unsigned int ymmallones = 0xFFFFFFFF;
----------------
Note that you need to call `__builtin_cpu_init()` before calling `__builtin_cpu_supports()`.
Or maybe it is already called before this?


Repository:
  rL LLVM

https://reviews.llvm.org/D41962





More information about the lldb-commits mailing list