1 ; RUN: llc < %s -mtriple=armv7-linux-gnueabi | FileCheck %s
3 %struct.s = type { [4 x i32] }
4 @v = constant %struct.s zeroinitializer;
6 declare void @f(ptr %p);
9 define void @t(i32 %a, ptr byval(%struct.s) %s) nounwind {
12 ; Here we need to only check proper start address of restored %s argument.
13 ; CHECK: sub sp, sp, #12
14 ; CHECK: push {r11, lr}
15 ; CHECK: sub sp, sp, #4
16 ; CHECK: add r0, sp, #12
17 ; CHECK: stm r0, {r1, r2, r3}
18 ; CHECK: add r0, sp, #12
24 ; CHECK-LABEL: caller:
25 define void @caller() {
27 ; CHECK: ldm r{{[0-9]+}}, {r1, r2, r3}
28 call void @t(i32 0, ptr byval(%struct.s) @v);