1;PR15293: ARM codegen ice - expected larger existing stack allocation 2;RUN: llc -mtriple=arm-linux-gnueabihf < %s | FileCheck %s 3 4%struct4bytes = type { i32 } 5%struct20bytes = type { i32, i32, i32, i32, i32 } 6 7define void @foo(%struct4bytes* byval %p0, ; --> R0 8 %struct20bytes* byval %p1 ; --> R1,R2,R3, [SP+0 .. SP+8) 9) { 10;CHECK: sub sp, sp, #16 11;CHECK: push {r11, lr} 12;CHECK: add r12, sp, #8 13;CHECK: stm r12, {r0, r1, r2, r3} 14;CHECK: add r0, sp, #12 15;CHECK: bl useInt 16;CHECK: pop {r11, lr} 17;CHECK: add sp, sp, #16 18 19 %1 = ptrtoint %struct20bytes* %p1 to i32 20 tail call void @useInt(i32 %1) 21 ret void 22} 23 24declare void @useInt(i32) 25 26