Home | History | Annotate | Download | only in AArch64
      1 ; RUN: llc -mtriple=aarch64-windows -verify-machineinstrs %s -o - \
      2 ; RUN:  | FileCheck -check-prefix CHECK-DEFAULT-CODE-MODEL %s
      3 
      4 ; RUN: llc -mtriple=aarch64-windows -verify-machineinstrs -code-model=large %s -o - \
      5 ; RUN:  | FileCheck -check-prefix CHECK-LARGE-CODE-MODEL %s
      6 
      7 define void @check_watermark() {
      8 entry:
      9   %buffer = alloca [4096 x i8], align 1
     10   ret void
     11 }
     12 
     13 ; CHECK-DEFAULT-CODE-MODEL: check_watermark:
     14 ; CHECK-DEFAULT-CODE-MODEL-DAG: stp x29, x30, [sp
     15 ; CHECK-DEFAULT-CODE-MODEL-DAG: orr x15, xzr, #0x100
     16 ; CHECK-DEFAULT-CODE-MODEL:     bl __chkstk
     17 ; CHECK-DEFAULT-CODE-MODEL:     sub sp, sp, x15, lsl #4
     18 
     19 ; CHECK-LARGE-CODE-MODEL: check_watermark:
     20 ; CHECK-LARGE-CODE-MODEL-DAG: stp x29, x30, [sp
     21 ; CHECK-LARGE-CODE-MODEL-DAG: orr x15, xzr, #0x100
     22 ; CHECK-LARGE-CODE-MODEL-DAG: adrp x16, __chkstk
     23 ; CHECK-LARGE-CODE-MODEL-DAG: add x16, x16, __chkstk
     24 ; CHECK-LARGE-CODE-MODEL:     blr x16
     25 ; CHECK-LARGE-CODE-MODEL:     sub sp, sp, x15, lsl #4
     26