[clang] [AArch64][PAC][clang][ELF] Support PAuth ABI compatibility tag (PR #85235)

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 19 20:50:19 PDT 2024


================
@@ -0,0 +1,32 @@
+// Check that we can manually enable specific ptrauth features.
+
+// RUN: %clang -target aarch64 -c %s -### 2>&1 | FileCheck %s --check-prefix NONE
+// NONE: "-cc1"
+// NONE-NOT: "-fptrauth-intrinsics"
+// NONE-NOT: "-fptrauth-calls"
+// NONE-NOT: "-fptrauth-returns"
+// NONE-NOT: "-fptrauth-auth-traps"
+// NONE-NOT: "-fptrauth-vtable-pointer-address-discrimination"
+// NONE-NOT: "-fptrauth-vtable-pointer-type-discrimination"
+// NONE-NOT: "-fptrauth-init-fini"
+
+// RUN: %clang -target aarch64 -fptrauth-intrinsics -c %s -### 2>&1 | FileCheck %s --check-prefix INTRIN
+// INTRIN: "-cc1"{{.*}} {{.*}} "-fptrauth-intrinsics"
----------------
MaskRay wrote:

`{{.*}} {{.*}} ` => ` {{.*}}`

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


More information about the cfe-commits mailing list