[PATCH] D131134: [X86] Report error if the amx enabled on the non-64-bits target

Craig Topper via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 8 10:46:51 PDT 2022


craig.topper added inline comments.


================
Comment at: clang/lib/Driver/ToolChains/Arch/X86.cpp:133
+        for (auto &F : HostFeatures) {
+          if (F.first().startswith("amx") && F.second && !Is64bitTarget)
+            D.Diag(diag::err_feature_unsupported_on_target)
----------------
This looks like it would trigger an error with `-march=native -m32` on a cpu with amx? Why is that a desirable behavior? The compiler user has done nothing wrong. What are they supposed to do to avoid the error?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D131134



More information about the cfe-commits mailing list