[PATCH] D103184: [AArch64] handle -Wa,-march=

Jian Cai via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 1 18:20:08 PDT 2021


jcai19 marked an inline comment as done.
jcai19 added inline comments.


================
Comment at: clang/test/Driver/aarch64-target-as-march.s:4
+
+/// The last -march wins, and is handled before -Wa,march. All the values of -Wa,march options are added.
+// RUN: %clang --target=aarch64-linux-gnueabi -### -c -Wa,-march=armv8.1-a -march=armv8.2-a -Wa,-march=armv8.3-a -Wa,-march=armv8.4-a %s 2>&1 | \
----------------
nickdesaulniers wrote:
> https://reviews.llvm.org/D95872 tests were pretty extensive.  We don't need `-mcpu` tests like https://reviews.llvm.org/D95872 had, but I think it might be interesting to add more tests, particularly one that verifies `-Wa,-march` is overriding `-march`.
Sounds good! I've added more tests which covered the above-mentioned case.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D103184



More information about the cfe-commits mailing list