[PATCH] D82948: [Driver][ARM] Disable unsupported features when nofp arch extension is used

David Spickett via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 2 01:34:10 PDT 2020


DavidSpickett added inline comments.


================
Comment at: clang/lib/Driver/ToolChains/Arch/ARM.cpp:296
+    return llvm::any_of(
+        Split, [](const StringRef &Extension) { return Extension == "nofp"; });
+  };
----------------
I would check what this does:
$ ./bin/clang -target arm-arm-none-eabi /tmp/test.c -c -march=armv8.1-a+nofp+fp -###

I'm not sure if by this point we've resolved "+nofp+fp" to simply "+fp". (perhaps you'd end up with a bunch of "-<feature>" followed by the same as "+<feature>". Either way I'd expect +fp to win.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D82948





More information about the cfe-commits mailing list