[flang-commits] [flang] [clang] [llvm] [AArch64][Driver] Better handling of target feature dependencies (PR #78270)

via flang-commits flang-commits at lists.llvm.org
Wed Jan 17 06:40:05 PST 2024


================
@@ -1,8 +1,9 @@
 // RUN: %clang -### --target=aarch64-none-elf -march=armv8a+predres     %s 2>&1 | FileCheck %s
+// RUN: %clang -### --target=aarch64-none-elf -mcpu=cortex-a520         %s 2>&1 | FileCheck %s
 // CHECK: "-target-feature" "+predres"
 // CHECK-NOT: "-target-feature" "-predres"
 
-// RUN: %clang -### --target=aarch64-none-elf -march=armv8.5a+nopredres %s 2>&1 | FileCheck %s --check-prefix=NOPR
+// RUN: %clang -### --target=aarch64-none-elf -mcpu=cortex-a520+nopredres %s 2>&1 | FileCheck %s --check-prefix=NOPR
----------------
ostannard wrote:

Because `armv8.5a` doesn't have the `predres` feature by default, adding `+nopredres` doesn't cause it to appear in the `-###` output. `cortex-a520` does have `predres` by default, so it does.

https://github.com/llvm/llvm-project/pull/78270


More information about the flang-commits mailing list