1 ; RUN: llc -mtriple=arm64ec-pc-windows-msvc < %s | FileCheck %s
3 ; Validates when local linkage functions get a thunk generated.
5 ; Being called does not cause a thunk to be generated.
6 ; CHECK-NOT: $ientry_thunk$cdecl$v$f;
7 define internal void @does_not_have_addr_taken(float) nounwind {
10 define void @calls_does_not_have_addr_taken() nounwind {
11 call void @does_not_have_addr_taken(float 0.0)
15 ; Having an address taken does cause a thunk to be generated.
16 ; CHECK: $ientry_thunk$cdecl$v$i8;
17 define internal void @has_addr_taken(i64) nounwind {
20 @points_to_has_addr_taken = global ptr @has_addr_taken