[llvm-branch-commits] [clang] [clang] Define ptrauth_string_discriminator builtin. (PR #93903)
Daniil Kovalev via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Jun 3 12:23:02 PDT 2024
================
----------------
kovdan01 wrote:
It would be nice to also add a run line against `aarch64` or `aarch64-elf` generic triple in this and other tests (see code below). The logic tested is not apple-specific. The test would need a slight change since IR for ELF has functions marked as `dso_local` - you might probably want to use smth like `// CHECK-LABEL: define {{.*}}void @test_auth()` to match both MachO and ELF or, alternatively, use different check prefixes for function labels on MachO and ELF to avoid regex in match lines.
```
// RUN: %clang_cc1 -triple arm64-apple-ios -fptrauth-intrinsics -emit-llvm %s -o - | FileCheck %s
// RUN: %clang_cc1 -triple aarch64-elf -fptrauth-intrinsics -emit-llvm %s -o - | FileCheck %s
```
This is probably a subject for another tiny PR since the RUN line is not touched here and the test already existed.
https://github.com/llvm/llvm-project/pull/93903
More information about the llvm-branch-commits
mailing list