brintos

brintos / llvm-project-archived public Read only

0
0
Text · 602 B · efdecce Raw
23 lines · plain
1;PR15293: ARM codegen ice - expected larger existing stack allocation2;RUN: llc -mtriple=arm-linux-gnueabihf < %s | FileCheck %s3 4%struct4bytes = type { i32 }5%struct20bytes = type { i32, i32, i32, i32, i32 }6 7define void @foo(ptr byval(%struct4bytes) %p0, ; --> R08                 ptr byval(%struct20bytes) %p1 ; --> R1,R2,R3, [SP+0 .. SP+8)9) {10;CHECK:  sub     sp, sp, #1611;CHECK:  stm     sp, {r0, r1, r2, r3}12;CHECK:  add     r0, sp, #413;CHECK:  add     sp, sp, #1614;CHECK:  b       useInt15 16  %1 = ptrtoint ptr %p1 to i3217  tail call void @useInt(i32 %1)18  ret void19}20 21declare void @useInt(i32)22 23