28 lines · plain
1;; Testing that nest uses x15 on all calling conventions (except Arm64EC)2 3; RUN: llc < %s -mtriple=aarch64-pc-windows-msvc | FileCheck %s4; RUN: llc < %s -mtriple=aarch64-linux-gnu | FileCheck %s5; RUN: llc < %s -mtriple=aarch64-apple-darwin- | FileCheck %s6 7define dso_local i64 @other(ptr nest %p) #0 {8; CHECK-LABEL: other:9; CHECK: ldr x0, [x15]10; CHECK: ret11 %r = load i64, ptr %p12 ret i64 %r13}14 15define dso_local void @func() #0 {16; CHECK-LABEL: func:17; CHECK: add x15, sp, #818; CHECK: bl {{_?other}}19; CHECK: ret20entry:21 %p = alloca i6422 store i64 1, ptr %p23 call void @other(ptr nest %p)24 ret void25}26 27attributes #0 = { nounwind }28