[PATCH] D89198: [X86] Define __LAHF_SAHF__ if feature 'sahf' is set

Craig Topper via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Oct 10 17:48:40 PDT 2020


craig.topper added inline comments.


================
Comment at: clang/lib/Basic/Targets/X86.cpp:564
+  if (HasLAHFSAHF)
+    Builder.defineMacro("__LAHF_SAHF__");
   if (HasLZCNT)
----------------
It looks like gcc may define this always in 32-bit mode?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D89198



More information about the cfe-commits mailing list