Changeset View
Changeset View
Standalone View
Standalone View
llvm/test/CodeGen/ARM/2012-10-04-AAPCS-byval-align8.ll
Show All 36 Lines | entry: | ||||
call void (i32, ...) @test_byval_8_bytes_alignment(i32 555, %struct_t* byval @static_val) | call void (i32, ...) @test_byval_8_bytes_alignment(i32 555, %struct_t* byval @static_val) | ||||
ret i32 0 | ret i32 0 | ||||
} | } | ||||
declare void @f(double); | declare void @f(double); | ||||
; CHECK-LABEL: test_byval_8_bytes_alignment_fixed_arg: | ; CHECK-LABEL: test_byval_8_bytes_alignment_fixed_arg: | ||||
; CHECK-NOT: str r1 | ; CHECK-NOT: str r1 | ||||
; CHECK: str r3, [sp, #12] | ; CHECK-DAG: str r3, [sp, #12] | ||||
; CHECK: str r2, [sp, #8] | ; CHECK-DAG: str r2, [sp, #8] | ||||
; CHECK-NOT: str r1 | ; CHECK-NOT: str r1 | ||||
define void @test_byval_8_bytes_alignment_fixed_arg(i32 %n1, %struct_t* byval %val) nounwind { | define void @test_byval_8_bytes_alignment_fixed_arg(i32 %n1, %struct_t* byval %val) nounwind { | ||||
entry: | entry: | ||||
%a = getelementptr inbounds %struct_t, %struct_t* %val, i32 0, i32 0 | %a = getelementptr inbounds %struct_t, %struct_t* %val, i32 0, i32 0 | ||||
%0 = load double, double* %a | %0 = load double, double* %a | ||||
call void (double) @f(double %0) | call void (double) @f(double %0) | ||||
ret void | ret void | ||||
} | } | ||||
Show All 12 Lines |