Skip to content

Commit f80f4bd

Browse files
committed
Enhance tests
1 parent 9924f57 commit f80f4bd

File tree

2 files changed

+25
-25
lines changed

2 files changed

+25
-25
lines changed

clang/test/CodeGen/aarch64-elf-pauthabi.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
// RUN: %clang -target aarch64-linux -S -emit-llvm -o - \
1+
// REQUIRES: aarch64-registered-target
2+
3+
// RUN: %clang --target=aarch64-linux -S -emit-llvm -o - \
24
// RUN: -fptrauth-intrinsics \
35
// RUN: -fptrauth-calls \
46
// RUN: -fptrauth-returns \
@@ -8,32 +10,30 @@
810
// RUN: -fptrauth-init-fini %s | \
911
// RUN: FileCheck %s --check-prefix=ALL
1012

11-
// RUN: %clang -target aarch64-linux -S -emit-llvm -o - \
13+
// RUN: %clang --target=aarch64-linux -S -emit-llvm -o - \
1214
// RUN: -fptrauth-intrinsics %s | FileCheck %s --check-prefix=INTRIN
1315

14-
// RUN: %clang -target aarch64-linux -S -emit-llvm -o - \
16+
// RUN: %clang --target=aarch64-linux -S -emit-llvm -o - \
1517
// RUN: -fptrauth-calls %s | FileCheck %s --check-prefix=CALL
1618

17-
// RUN: %clang -target aarch64-linux -S -emit-llvm -o - \
19+
// RUN: %clang --target=aarch64-linux -S -emit-llvm -o - \
1820
// RUN: -fptrauth-returns %s | FileCheck %s --check-prefix=RET
1921

20-
// RUN: %clang -target aarch64-linux -S -emit-llvm -o - \
22+
// RUN: %clang --target=aarch64-linux -S -emit-llvm -o - \
2123
// RUN: -fptrauth-auth-traps %s | FileCheck %s --check-prefix=TRAP
2224

23-
// RUN: %clang -target aarch64-linux -S -emit-llvm -o - \
25+
// RUN: %clang --target=aarch64-linux -S -emit-llvm -o - \
2426
// RUN: -fptrauth-calls -fptrauth-vtable-pointer-address-discrimination %s | \
2527
// RUN: FileCheck %s --check-prefix=VPTRADDR
2628

27-
// RUN: %clang -target aarch64-linux -S -emit-llvm -o - \
29+
// RUN: %clang --target=aarch64-linux -S -emit-llvm -o - \
2830
// RUN: -fptrauth-calls -fptrauth-vtable-pointer-type-discrimination %s | \
2931
// RUN: FileCheck %s --check-prefix=VPTRTYPE
3032

31-
// RUN: %clang -target aarch64-linux -S -emit-llvm -o - \
33+
// RUN: %clang --target=aarch64-linux -S -emit-llvm -o - \
3234
// RUN: -fptrauth-calls -fptrauth-init-fini %s | \
3335
// RUN: FileCheck %s --check-prefix=INITFINI
3436

35-
// REQUIRES: aarch64-registered-target
36-
3737
// ALL: !{i32 1, !"aarch64-elf-pauthabi-platform", i32 268435458}
3838
// ALL: !{i32 1, !"aarch64-elf-pauthabi-version", i32 127}
3939

clang/test/Driver/ptrauth.c

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Check that we can manually enable specific ptrauth features.
22

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
44
// NONE: "-cc1"
55
// NONE-NOT: "-fptrauth-intrinsics"
66
// NONE-NOT: "-fptrauth-calls"
@@ -10,23 +10,23 @@
1010
// NONE-NOT: "-fptrauth-vtable-pointer-type-discrimination"
1111
// NONE-NOT: "-fptrauth-init-fini"
1212

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"
1515

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"
1818

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"
2121

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"
2424

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"
2727

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"
3030

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

Comments
 (0)