• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc -mtriple=thumbv7-windows -mcpu=cortex-a9 -verify-machineinstrs %s -o - \
2; RUN:  | FileCheck -check-prefix CHECK-DEFAULT-CODE-MODEL %s
3
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
6
7define arm_aapcs_vfpcc void @check_watermark() {
8entry:
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: 	movw r4, #1024
15; CHECK-DEFAULT-CODE-MODEL: 	bl __chkstk
16; CHECK-DEFAULT-CODE-MODEL: 	sub.w sp, sp, r4
17
18; CHECK-LARGE-CODE-MODEL: check_watermark:
19; CHECK-LARGE-CODE-MODEL: 	movw r12, :lower16:__chkstk
20; CHECK-LARGE-CODE-MODEL: 	movt r12, :upper16:__chkstk
21; CHECK-LARGE-CODE-MODEL: 	movw r4, #1024
22; CHECK-LARGE-CODE-MODEL: 	blx r12
23; CHECK-LARGE-CODE-MODEL: 	sub.w sp, sp, r4
24
25