blob: 34af9026b52e57993966b4780185e121e7dc0eea [file] [log] [blame]
Stepan Dyatkovskiyf13dbb82012-10-10 11:37:36 +00001; RUN: llc < %s -mtriple=armv7-none-linux-gnueabi | FileCheck %s
2
3@.str = private unnamed_addr constant [12 x i8] c"val.a = %f\0A\00"
4%struct_t = type { double, double, double }
5@static_val = constant %struct_t { double 1.0, double 2.0, double 3.0 }
6
7declare i32 @printf(i8*, ...)
8
Stephen Linf799e3f2013-07-13 20:38:47 +00009; CHECK-LABEL: test_byval_usage_scheduling:
Stepan Dyatkovskiyf13dbb82012-10-10 11:37:36 +000010; CHECK: str r3, [sp, #12]
11; CHECK: str r2, [sp, #8]
12; CHECK: vldr d16, [sp, #8]
13define void @test_byval_usage_scheduling(i32 %n1, i32 %n2, %struct_t* byval %val) nounwind {
14entry:
David Blaikie79e6c742015-02-27 19:29:02 +000015 %a = getelementptr inbounds %struct_t, %struct_t* %val, i32 0, i32 0
David Blaikiea79ac142015-02-27 21:17:42 +000016 %0 = load double, double* %a
David Blaikie23af6482015-04-16 23:24:18 +000017 %call = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i32 0, i32 0), double %0)
Stepan Dyatkovskiyf13dbb82012-10-10 11:37:36 +000018 ret void
19}