[clang] [Clang][ARM][AArch64] Alway emit protection attributes for functions. (PR #82819)

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Sat Feb 24 14:21:38 PST 2024


================
@@ -0,0 +1,16 @@
+// REQUIRES: arm-registered-target
+
+// RUN: %clang -flto -target thumbv7m-unknown-unknown-eabi -mbranch-protection=pac-ret %s -S -o - 2>&1 | FileCheck %s
----------------
MaskRay wrote:

prefer  `--target=` for new tests

For codegen tests we prefer `%clang_cc1` to `%clang`

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


More information about the cfe-commits mailing list