Home | History | Annotate | Download | only in Windows
      1 ; RUN: llc -mtriple thumbv7-windows -mcpu cortex-a9 -o - %s \
      2 ; RUN:     | FileCheck %s -check-prefix CHECK-DEFAULT-CODE-MODEL
      3 
      4 ; RUN: llc -mtriple thumbv7-windows -mcpu cortex-a9 -code-model large -o - %s \
      5 ; RUN:     | FileCheck %s -check-prefix CHECK-LARGE-CODE-MODEL
      6 
      7 declare dllimport arm_aapcs_vfpcc void @initialise(i8*)
      8 
      9 define dllexport arm_aapcs_vfpcc signext i8 @function(i32 %offset) #0 {
     10 entry:
     11   %buffer = alloca [4096 x i8], align 1
     12   %0 = getelementptr inbounds [4096 x i8], [4096 x i8]* %buffer, i32 0, i32 0
     13   call arm_aapcs_vfpcc void @initialise(i8* %0)
     14   %arrayidx = getelementptr inbounds [4096 x i8], [4096 x i8]* %buffer, i32 0, i32 %offset
     15   %1 = load i8, i8* %arrayidx, align 1
     16   ret i8 %1
     17 }
     18 
     19 attributes #0 = { "stack-probe-size"="8096" }
     20 
     21 ; CHECK-DEFAULT-CODE-MODEL-NOT: __chkstk
     22 ; CHECK-DEFAULT-CODE-MODEL: sub.w sp, sp, #4096
     23 
     24 ; CHECK-LARGE-CODE-MODEL-NOT: movw r12, :lower16:__chkstk
     25 ; CHECK-LARGE-CODE-MODEL-NOT: movt r12, :upper16:__chkstk
     26 ; CHECK-LARGE-CODE-MODEL: sub.w sp, sp, #4096
     27 
     28