|
1 | 1 | // Check that we can manually enable specific ptrauth features.
|
2 | 2 |
|
3 |
| -// RUN: %clang -target aarch64 -c %s -### 2>&1 | FileCheck %s --check-prefix NONE |
| 3 | +// RUN: %clang --target=aarch64 -c %s -### 2>&1 | FileCheck %s --check-prefix NONE |
4 | 4 | // NONE: "-cc1"
|
5 | 5 | // NONE-NOT: "-fptrauth-intrinsics"
|
6 | 6 | // NONE-NOT: "-fptrauth-calls"
|
|
10 | 10 | // NONE-NOT: "-fptrauth-vtable-pointer-type-discrimination"
|
11 | 11 | // NONE-NOT: "-fptrauth-init-fini"
|
12 | 12 |
|
13 |
| -// RUN: %clang -target aarch64 -fptrauth-intrinsics -c %s -### 2>&1 | FileCheck %s --check-prefix INTRIN |
14 |
| -// INTRIN: "-cc1"{{.*}} {{.*}} "-fptrauth-intrinsics" |
| 13 | +// RUN: %clang --target=aarch64 -fptrauth-intrinsics -c %s -### 2>&1 | FileCheck %s --check-prefix INTRIN |
| 14 | +// INTRIN: "-cc1"{{.*}} "-fptrauth-intrinsics" |
15 | 15 |
|
16 |
| -// RUN: %clang -target aarch64 -fptrauth-calls -c %s -### 2>&1 | FileCheck %s --check-prefix CALL |
17 |
| -// CALL: "-cc1"{{.*}} {{.*}} "-fptrauth-calls" |
| 16 | +// RUN: %clang --target=aarch64 -fptrauth-calls -c %s -### 2>&1 | FileCheck %s --check-prefix CALL |
| 17 | +// CALL: "-cc1"{{.*}} "-fptrauth-calls" |
18 | 18 |
|
19 |
| -// RUN: %clang -target aarch64 -fptrauth-returns -c %s -### 2>&1 | FileCheck %s --check-prefix RETURN |
20 |
| -// RETURN: "-cc1"{{.*}} {{.*}} "-fptrauth-returns" |
| 19 | +// RUN: %clang --target=aarch64 -fptrauth-returns -c %s -### 2>&1 | FileCheck %s --check-prefix RETURN |
| 20 | +// RETURN: "-cc1"{{.*}} "-fptrauth-returns" |
21 | 21 |
|
22 |
| -// RUN: %clang -target aarch64 -fptrauth-auth-traps -c %s -### 2>&1 | FileCheck %s --check-prefix TRAPS |
23 |
| -// TRAPS: "-cc1"{{.*}} {{.*}} "-fptrauth-auth-traps" |
| 22 | +// RUN: %clang --target=aarch64 -fptrauth-auth-traps -c %s -### 2>&1 | FileCheck %s --check-prefix TRAPS |
| 23 | +// TRAPS: "-cc1"{{.*}} "-fptrauth-auth-traps" |
24 | 24 |
|
25 |
| -// RUN: %clang -target aarch64 -fptrauth-vtable-pointer-address-discrimination -c %s -### 2>&1 | FileCheck %s --check-prefix VPTR_ADDR_DISCR |
26 |
| -// VPTR_ADDR_DISCR: "-cc1"{{.*}} {{.*}} "-fptrauth-vtable-pointer-address-discrimination" |
| 25 | +// RUN: %clang --target=aarch64 -fptrauth-vtable-pointer-address-discrimination -c %s -### 2>&1 | FileCheck %s --check-prefix VPTR_ADDR_DISCR |
| 26 | +// VPTR_ADDR_DISCR: "-cc1"{{.*}} "-fptrauth-vtable-pointer-address-discrimination" |
27 | 27 |
|
28 |
| -// RUN: %clang -target aarch64 -fptrauth-vtable-pointer-type-discrimination -c %s -### 2>&1 | FileCheck %s --check-prefix VPTR_TYPE_DISCR |
29 |
| -// VPTR_TYPE_DISCR: "-cc1"{{.*}} {{.*}} "-fptrauth-vtable-pointer-type-discrimination" |
| 28 | +// RUN: %clang --target=aarch64 -fptrauth-vtable-pointer-type-discrimination -c %s -### 2>&1 | FileCheck %s --check-prefix VPTR_TYPE_DISCR |
| 29 | +// VPTR_TYPE_DISCR: "-cc1"{{.*}} "-fptrauth-vtable-pointer-type-discrimination" |
30 | 30 |
|
31 |
| -// RUN: %clang -target aarch64 -fptrauth-init-fini -c %s -### 2>&1 | FileCheck %s --check-prefix INITFINI |
32 |
| -// INITFINI: "-cc1"{{.*}} {{.*}} "-fptrauth-init-fini" |
| 31 | +// RUN: %clang --target=aarch64 -fptrauth-init-fini -c %s -### 2>&1 | FileCheck %s --check-prefix INITFINI |
| 32 | +// INITFINI: "-cc1"{{.*}} "-fptrauth-init-fini" |
0 commit comments