[clang] [AArch64][PAC][clang][ELF] Support PAuth ABI core info (PR #85235)

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Sat May 4 16:50:07 PDT 2024


================
@@ -1,5 +1,37 @@
+// RUN: %clang -### -c --target=aarch64 %s 2>&1 | FileCheck %s --check-prefix NONE
+// NONE: "-cc1"
+// NONE-NOT: "-fptrauth-
+
 // RUN: %clang -### -c --target=aarch64 -fno-ptrauth-intrinsics -fptrauth-intrinsics %s 2>&1 | FileCheck %s --check-prefix=INTRIN
 // INTRIN: "-cc1"{{.*}} "-fptrauth-intrinsics"
 
-// RUN: not %clang -### -c --target=x86_64 -fptrauth-intrinsics %s 2>&1 | FileCheck %s --check-prefix=ERR
-// ERR: error: unsupported option '-fptrauth-intrinsics' for target '{{.*}}'
+// RUN: %clang -### -c --target=aarch64 -fno-ptrauth-calls -fptrauth-calls %s 2>&1 | FileCheck %s --check-prefix=CALL
----------------
MaskRay wrote:

The overhead of additional RUN lines perhaps overweigh 
the additional value testing each `-fptrauth-*` individually. Perhaps pack more on the same `%clang` RUN line?

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


More information about the cfe-commits mailing list