[MIParser] Set RegClassOrRegBank during instruction parsing
[llvm-complete.git] / test / CodeGen / ARM / Windows / chkstk.ll
blob8fd414614598613025de02169c29f5d9c964242d
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() {
8 entry:
9   %buffer = alloca [4096 x i8], align 1
10   ret void
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