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(ptr byval(%struct4bytes) %p0, ; --> R0 8 ptr byval(%struct20bytes) %p1 ; --> R1,R2,R3, [SP+0 .. SP+8) 9) { 10;CHECK: sub sp, sp, #16 11;CHECK: stm sp, {r0, r1, r2, r3} 12;CHECK: add r0, sp, #4 13;CHECK: add sp, sp, #16 14;CHECK: b useInt 15 16 %1 = ptrtoint ptr %p1 to i32 17 tail call void @useInt(i32 %1) 18 ret void 19} 20 21declare void @useInt(i32) 22 23