2018-03-20 02:06:29 +01:00
|
|
|
; RUN: llc < %s -mtriple=armv7-linux -stack-size-section | FileCheck %s
|
|
|
|
|
|
|
|
; CHECK-LABEL: func1:
|
2018-03-26 22:40:22 +02:00
|
|
|
; CHECK-NEXT: .Lfunc_begin0:
|
2018-06-22 12:53:47 +02:00
|
|
|
; CHECK: .section .stack_sizes,"o",%progbits,.text,unique,0
|
2018-03-26 22:40:22 +02:00
|
|
|
; CHECK-NEXT: .long .Lfunc_begin0
|
2018-03-20 02:06:29 +01:00
|
|
|
; CHECK-NEXT: .byte 8
|
|
|
|
define void @func1(i32, i32) #0 {
|
|
|
|
alloca i32, align 4
|
|
|
|
alloca i32, align 4
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; CHECK-LABEL: func2:
|
2018-03-26 22:40:22 +02:00
|
|
|
; CHECK-NEXT: .Lfunc_begin1:
|
2018-06-22 12:53:47 +02:00
|
|
|
; CHECK: .section .stack_sizes,"o",%progbits,.text,unique,0
|
2018-03-26 22:40:22 +02:00
|
|
|
; CHECK-NEXT: .long .Lfunc_begin1
|
2018-03-20 02:06:29 +01:00
|
|
|
; CHECK-NEXT: .byte 16
|
|
|
|
define void @func2() #0 {
|
|
|
|
alloca i32, align 4
|
|
|
|
call void @func1(i32 1, i32 2)
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
; CHECK-LABEL: dynalloc:
|
|
|
|
; CHECK-NOT: .section .stack_sizes
|
|
|
|
define void @dynalloc(i32 %N) #0 {
|
|
|
|
alloca i32, i32 %N
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
attributes #0 = { "no-frame-pointer-elim"="true" }
|