Skip to content

Commit b0e68a9

Browse files
authored
[PAC][clang] Use cc1 instead of driver in init-fini codegen test (#109247)
1 parent e8a7390 commit b0e68a9

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

clang/test/CodeGen/ptrauth-init-fini.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
// REQUIRES: aarch64-registered-target
22

3-
// RUN: %clang -target aarch64-elf -march=armv8.3-a+pauth -fptrauth-calls -fptrauth-init-fini \
4-
// RUN: -S -emit-llvm %s -o - | FileCheck --check-prefix=SIGNED %s
3+
// RUN: %clang_cc1 -triple aarch64-elf -target-feature +pauth -fptrauth-calls -fptrauth-init-fini \
4+
// RUN: -emit-llvm %s -o - | FileCheck --check-prefix=SIGNED %s
55

6-
// RUN: %clang -target aarch64-elf -march=armv8.3-a+pauth -fptrauth-calls -fptrauth-init-fini \
7-
// RUN: -fptrauth-init-fini-address-discrimination -S -emit-llvm %s -o - | FileCheck --check-prefix=ADDRDISC %s
6+
// RUN: %clang_cc1 -triple aarch64-elf -target-feature +pauth -fptrauth-calls -fptrauth-init-fini \
7+
// RUN: -fptrauth-init-fini-address-discrimination -emit-llvm %s -o - | FileCheck --check-prefix=ADDRDISC %s
88

9-
// RUN: %clang -target aarch64-elf -march=armv8.3-a+pauth -fptrauth-calls -fno-ptrauth-init-fini \
10-
// RUN: -S -emit-llvm %s -o - | FileCheck --check-prefix=UNSIGNED %s
9+
// RUN: %clang_cc1 -triple aarch64-elf -target-feature +pauth -fptrauth-calls \
10+
// RUN: -emit-llvm %s -o - | FileCheck --check-prefix=UNSIGNED %s
1111

12-
// RUN: %clang -target aarch64-elf -march=armv8.3-a+pauth -fptrauth-calls -fptrauth-init-fini-address-discrimination \
13-
// RUN: -S -emit-llvm %s -o - | FileCheck --check-prefix=UNSIGNED %s
12+
// RUN: %clang_cc1 -triple aarch64-elf -target-feature +pauth -fptrauth-calls -fptrauth-init-fini-address-discrimination \
13+
// RUN: -emit-llvm %s -o - | FileCheck --check-prefix=UNSIGNED %s
1414

15-
// RUN: %clang -target aarch64-elf -march=armv8.3-a+pauth -fptrauth-init-fini \
16-
// RUN: -S -emit-llvm %s -o - | FileCheck --check-prefix=UNSIGNED %s
15+
// RUN: %clang_cc1 -triple aarch64-elf -target-feature +pauth -fptrauth-init-fini \
16+
// RUN: -emit-llvm %s -o - | FileCheck --check-prefix=UNSIGNED %s
1717

1818
// SIGNED: @llvm.global_ctors = appending global [1 x { i32, ptr, ptr }] [{ i32, ptr, ptr } { i32 65535, ptr ptrauth (ptr @foo, i32 0, i64 55764), ptr null }]
1919
// SIGNED: @llvm.global_dtors = appending global [1 x { i32, ptr, ptr }] [{ i32, ptr, ptr } { i32 65535, ptr ptrauth (ptr @bar, i32 0, i64 55764), ptr null }]

0 commit comments

Comments
 (0)