Home | History | Annotate | Download | only in Thumb2
      1 ; RUN: llc < %s -march=thumb -mattr=+thumb2 -mtriple=arm-apple-darwin | FileCheck %s -check-prefix=DARWIN
      2 ; RUN: llc < %s -march=thumb -mattr=+thumb2 -mtriple=arm-linux-gnueabi | FileCheck %s -check-prefix=LINUX
      3 
      4 define void @test1() {
      5 ; DARWIN: test1:
      6 ; DARWIN: sub sp, #256
      7 ; LINUX: test1:
      8 ; LINUX: sub sp, #256
      9     %tmp = alloca [ 64 x i32 ] , align 4
     10     ret void
     11 }
     12 
     13 define void @test2() {
     14 ; DARWIN: test2:
     15 ; DARWIN: sub.w sp, sp, #4160
     16 ; DARWIN: sub sp, #8
     17 ; LINUX: test2:
     18 ; LINUX: sub.w sp, sp, #4160
     19 ; LINUX: sub sp, #8
     20     %tmp = alloca [ 4168 x i8 ] , align 4
     21     ret void
     22 }
     23 
     24 define i32 @test3() {
     25 ; DARWIN: test3:
     26 ; DARWIN: push    {r4, r7, lr}
     27 ; DARWIN: sub.w sp, sp, #805306368
     28 ; DARWIN: sub sp, #20
     29 ; LINUX: test3:
     30 ; LINUX: push.w {r4, r7, r11, lr}
     31 ; LINUX: sub.w sp, sp, #805306368
     32 ; LINUX: sub sp, #16
     33     %retval = alloca i32, align 4
     34     %tmp = alloca i32, align 4
     35     %a = alloca [805306369 x i8], align 16
     36     store i32 0, i32* %tmp
     37     %tmp1 = load i32* %tmp
     38     ret i32 %tmp1
     39 }
     40