Home | History | Annotate | Download | only in AArch64
      1 ; RUN: llc -mtriple aarch64-windows -verify-machineinstrs -filetype asm -o - %s | FileCheck %s
      2 
      3 define void @func(i64 %a) "no-stack-arg-probe" {
      4 entry:
      5   %0 = alloca i8, i64 %a, align 16
      6   call void @func2(i8* nonnull %0)
      7   ret void
      8 }
      9 
     10 declare void @func2(i8*)
     11 
     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]]
     18