1 ; RUN: llc -mtriple aarch64-windows -verify-machineinstrs -filetype asm -o - %s | FileCheck %s
3 define void @func(i64 %a) "no-stack-arg-probe" {
5 %0 = alloca i8, i64 %a, align 16
6 call void @func2(ptr nonnull %0)
10 declare void @func2(ptr)
12 ; CHECK: add [[REG1:x[0-9]+]], x0, #15
13 ; CHECK-NOT: bl __chkstk
14 ; CHECK: mov [[REG2:x[0-9]+]], sp
15 ; CHECK: and [[REG1]], [[REG1]], #0xfffffffffffffff0
16 ; CHECK: sub [[REG3:x[0-9]+]], [[REG2]], [[REG1]]
17 ; CHECK: mov sp, [[REG3]]