[flang-commits] [clang] [flang] [flang][Driver] Support -print-supported-extensions (PR #117402)
Tarun Prabhu via flang-commits
flang-commits at lists.llvm.org
Mon Dec 2 07:29:41 PST 2024
================
@@ -0,0 +1,34 @@
+! REQUIRES: arm-registered-target
+
+! RUN: %flang --target=arm-linux-gnu --print-supported-extensions 2>&1 \
+! RUN: | FileCheck --strict-whitespace --implicit-check-not=FEAT_ %s
+
+! CHECK: All available -march extensions for ARM
----------------
tarunprabhu wrote:
It makes sense to shared these and I'll change this PR to do that. Sharing the `printSupportedCPUs` (which is currently duplicated) will be done separately.
Is `clang/lib/Driver/ToolChains/CommonArgs.cpp` an appropriate place for the shared code? Is it not intended to be "private" to the toolchains? I don't see anything more appropriate, but we're probably in uncharted territory here.
https://github.com/llvm/llvm-project/pull/117402
More information about the flang-commits
mailing list