llvm-project/llvm/test/CodeGen/ARM/cmse-entry-alias.ll
Folkert de Vries fdd0d53430
cmse: emit __acle_se_ symbol for aliases to entry functions (#162109)
Emitting the symbol in `emitGlobalAlias` seemed most efficient,
otherwise I think you'd have to traverse all aliases. I have verified
that the additional symbol is picked up by `arm-none-eabi-ld` and
correctly generates an entry in `veneers.o`.

Fixes #162084
2025-12-08 17:26:21 +00:00

18 lines
365 B
LLVM

; RUN: llc -mtriple=thumbv8.1m.main %s -o - | FileCheck %s
@foo = unnamed_addr alias void (), ptr @bar
; CHECK: .globl bar
; CHECK: .globl __acle_se_bar @ @bar
; CHECK: .globl foo
; CHECK: foo = bar
; CHECK: __acle_se_foo = __acle_se_bar
define dso_local void @bar() unnamed_addr #0 {
start:
ret void
}
attributes #0 = { nounwind "cmse_nonsecure_entry" }