2013-05-20 08:01:34 +00:00
|
|
|
;PR15293: ARM codegen ice - expected larger existing stack allocation
|
|
|
|
;RUN: llc -mtriple=arm-linux-gnueabihf < %s | FileCheck %s
|
|
|
|
|
|
|
|
%struct.S227 = type { [49 x i32], i32 }
|
|
|
|
|
|
|
|
define void @check227(
|
2015-03-11 18:54:22 +00:00
|
|
|
i32 %b,
|
2013-05-20 08:01:34 +00:00
|
|
|
%struct.S227* byval nocapture %arg0,
|
|
|
|
%struct.S227* %arg1) {
|
|
|
|
; b --> R0
|
|
|
|
; arg0 --> [R1, R2, R3, SP+0 .. SP+188)
|
|
|
|
; arg1 --> SP+188
|
|
|
|
|
|
|
|
entry:
|
|
|
|
|
2015-03-11 18:54:22 +00:00
|
|
|
;CHECK: sub sp, sp, #12
|
2013-05-20 08:01:34 +00:00
|
|
|
;CHECK: push {r11, lr}
|
2015-03-11 18:54:22 +00:00
|
|
|
;CHECK: sub sp, sp, #4
|
2013-05-20 08:01:34 +00:00
|
|
|
;CHECK: add r0, sp, #12
|
|
|
|
;CHECK: stm r0, {r1, r2, r3}
|
|
|
|
;CHECK: ldr r0, [sp, #212]
|
|
|
|
;CHECK: bl useInt
|
2015-03-11 18:54:22 +00:00
|
|
|
;CHECK: add sp, sp, #4
|
2013-05-20 08:01:34 +00:00
|
|
|
;CHECK: pop {r11, lr}
|
2015-03-11 18:54:22 +00:00
|
|
|
;CHECK: add sp, sp, #12
|
2013-05-20 08:01:34 +00:00
|
|
|
|
|
|
|
%0 = ptrtoint %struct.S227* %arg1 to i32
|
|
|
|
tail call void @useInt(i32 %0)
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
declare void @useInt(i32)
|
|
|
|
|