1 ; RUN: llc -mtriple=thumbv7-windows -mcpu=cortex-a9 -verify-machineinstrs %s -o - \
2 ; RUN: | FileCheck -check-prefix CHECK-DEFAULT-CODE-MODEL %s
4 ; RUN: llc -mtriple=thumbv7-windows -mcpu=cortex-a9 -code-model=large -verify-machineinstrs %s -o - \
5 ; RUN: | FileCheck -check-prefix CHECK-LARGE-CODE-MODEL %s
7 define arm_aapcs_vfpcc void @check_watermark() {
9 %buffer = alloca [4096 x i8], align 1
13 ; CHECK-DEFAULT-CODE-MODEL: check_watermark:
14 ; CHECK-DEFAULT-CODE-MODEL: movw r4, #1024
15 ; CHECK-DEFAULT-CODE-MODEL: bl __chkstk
16 ; CHECK-DEFAULT-CODE-MODEL: sub.w sp, sp, r4
18 ; CHECK-LARGE-CODE-MODEL: check_watermark:
19 ; CHECK-LARGE-CODE-MODEL-DAG: movw r12, :lower16:__chkstk
20 ; CHECK-LARGE-CODE-MODEL-DAG: movt r12, :upper16:__chkstk
21 ; CHECK-LARGE-CODE-MODEL-DAG: movw r4, #1024
22 ; CHECK-LARGE-CODE-MODEL: blx r12
23 ; CHECK-LARGE-CODE-MODEL: sub.w sp, sp, r4