[clang] [PAC][clang] Use cc1 instead of driver in init-fini codegen test (PR #109247)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 18 23:54:59 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Daniil Kovalev (kovdan01)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/109247.diff
1 Files Affected:
- (modified) clang/test/CodeGen/ptrauth-init-fini.c (+10-10)
``````````diff
diff --git a/clang/test/CodeGen/ptrauth-init-fini.c b/clang/test/CodeGen/ptrauth-init-fini.c
index d51ed1d98e81eb..1e8953961d64ef 100644
--- a/clang/test/CodeGen/ptrauth-init-fini.c
+++ b/clang/test/CodeGen/ptrauth-init-fini.c
@@ -1,19 +1,19 @@
// REQUIRES: aarch64-registered-target
-// RUN: %clang -target aarch64-elf -march=armv8.3-a+pauth -fptrauth-calls -fptrauth-init-fini \
-// RUN: -S -emit-llvm %s -o - | FileCheck --check-prefix=SIGNED %s
+// RUN: %clang_cc1 -triple aarch64-elf -target-feature +pauth -fptrauth-calls -fptrauth-init-fini \
+// RUN: -emit-llvm %s -o - | FileCheck --check-prefix=SIGNED %s
-// RUN: %clang -target aarch64-elf -march=armv8.3-a+pauth -fptrauth-calls -fptrauth-init-fini \
-// RUN: -fptrauth-init-fini-address-discrimination -S -emit-llvm %s -o - | FileCheck --check-prefix=ADDRDISC %s
+// RUN: %clang_cc1 -triple aarch64-elf -target-feature +pauth -fptrauth-calls -fptrauth-init-fini \
+// RUN: -fptrauth-init-fini-address-discrimination -emit-llvm %s -o - | FileCheck --check-prefix=ADDRDISC %s
-// RUN: %clang -target aarch64-elf -march=armv8.3-a+pauth -fptrauth-calls -fno-ptrauth-init-fini \
-// RUN: -S -emit-llvm %s -o - | FileCheck --check-prefix=UNSIGNED %s
+// RUN: %clang_cc1 -triple aarch64-elf -target-feature +pauth -fptrauth-calls \
+// RUN: -emit-llvm %s -o - | FileCheck --check-prefix=UNSIGNED %s
-// RUN: %clang -target aarch64-elf -march=armv8.3-a+pauth -fptrauth-calls -fptrauth-init-fini-address-discrimination \
-// RUN: -S -emit-llvm %s -o - | FileCheck --check-prefix=UNSIGNED %s
+// RUN: %clang_cc1 -triple aarch64-elf -target-feature +pauth -fptrauth-calls -fptrauth-init-fini-address-discrimination \
+// RUN: -emit-llvm %s -o - | FileCheck --check-prefix=UNSIGNED %s
-// RUN: %clang -target aarch64-elf -march=armv8.3-a+pauth -fptrauth-init-fini \
-// RUN: -S -emit-llvm %s -o - | FileCheck --check-prefix=UNSIGNED %s
+// RUN: %clang_cc1 -triple aarch64-elf -target-feature +pauth -fptrauth-init-fini \
+// RUN: -emit-llvm %s -o - | FileCheck --check-prefix=UNSIGNED %s
// 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 }]
// 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 }]
``````````
</details>
https://github.com/llvm/llvm-project/pull/109247
More information about the cfe-commits
mailing list