[PATCH] D116159: [ARM][AArch64] clang support for Armv9.3-A
Nick Desaulniers via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 28 11:33:24 PST 2021
nickdesaulniers added inline comments.
================
Comment at: clang/test/Driver/arm-cortex-cpus.c:445
+// RUN: %clang -target armv9.3a -mlittle-endian -### -c %s 2>&1 | FileCheck -check-prefix=CHECK-V93A %s
+// RUN: %clang -target arm -march=armv9.3a -mlittle-endian -### -c %s 2>&1 | FileCheck -check-prefix=CHECK-V93A %s
+// RUN: %clang -target arm -mlittle-endian -march=armv9.3-a -mlittle-endian -### -c %s 2>&1 | FileCheck -check-prefix=CHECK-V93A %s
----------------
Is this `RUN` line a duplicate of L443? Maybe you meant to test a hyphen in the `march`?
================
Comment at: clang/test/Driver/arm-cortex-cpus.c:446
+// RUN: %clang -target arm -march=armv9.3a -mlittle-endian -### -c %s 2>&1 | FileCheck -check-prefix=CHECK-V93A %s
+// RUN: %clang -target arm -mlittle-endian -march=armv9.3-a -mlittle-endian -### -c %s 2>&1 | FileCheck -check-prefix=CHECK-V93A %s
+// CHECK-V93A: "-cc1"{{.*}} "-triple" "armv9.3{{.*}}" "-target-cpu" "generic"
----------------
how about thumb targets? I recognize this test doesn't already do so for older extensions.
================
Comment at: clang/test/Driver/arm-cortex-cpus.c:446
+// RUN: %clang -target arm -march=armv9.3a -mlittle-endian -### -c %s 2>&1 | FileCheck -check-prefix=CHECK-V93A %s
+// RUN: %clang -target arm -mlittle-endian -march=armv9.3-a -mlittle-endian -### -c %s 2>&1 | FileCheck -check-prefix=CHECK-V93A %s
+// CHECK-V93A: "-cc1"{{.*}} "-triple" "armv9.3{{.*}}" "-target-cpu" "generic"
----------------
nickdesaulniers wrote:
> how about thumb targets? I recognize this test doesn't already do so for older extensions.
This test sets `-mlittle-endian` twice. Is that intentional? Should the aarch64 test above `clang/test/Driver/aarch64-cpus.c` also have such a test, or should this `RUN` line be removed? Or was something else meant to be tested?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D116159/new/
https://reviews.llvm.org/D116159
More information about the cfe-commits
mailing list