source: icGREP/icgrep-devel/llvm-3.8.0.src/test/CodeGen/ARM/Windows/chkstk.ll @ 5027

Last change on this file since 5027 was 5027, checked in by cameron, 3 years ago

Upgrade to llvm 3.8

File size: 828 bytes
Line 
1; RUN: llc -mtriple=thumbv7-windows -mcpu=cortex-a9 %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 %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
Note: See TracBrowser for help on using the repository browser.