Changeset View
Changeset View
Standalone View
Standalone View
llvm/test/CodeGen/PowerPC/ppc64-byval-align.ll
Show All 28 Lines | |||||
define i64 @callee2(%struct.pad* byval nocapture readnone %x, i32 signext %y, %struct.test* byval align 16 nocapture readonly %z) { | define i64 @callee2(%struct.pad* byval nocapture readnone %x, i32 signext %y, %struct.test* byval align 16 nocapture readonly %z) { | ||||
entry: | entry: | ||||
%x1 = getelementptr inbounds %struct.test, %struct.test* %z, i64 0, i32 0 | %x1 = getelementptr inbounds %struct.test, %struct.test* %z, i64 0, i32 0 | ||||
%0 = load i64, i64* %x1, align 16 | %0 = load i64, i64* %x1, align 16 | ||||
ret i64 %0 | ret i64 %0 | ||||
} | } | ||||
; CHECK-LABEL: @callee2 | ; CHECK-LABEL: @callee2 | ||||
; CHECK: ld 3, 128(1) | ; CHECK: ld {{[0-9]+}}, 128(1) | ||||
; CHECK: blr | ; CHECK: blr | ||||
declare i64 @test2(%struct.pad* byval, i32 signext, %struct.test* byval align 16) | declare i64 @test2(%struct.pad* byval, i32 signext, %struct.test* byval align 16) | ||||
define void @caller2(i64 %z) { | define void @caller2(i64 %z) { | ||||
entry: | entry: | ||||
%tmp = alloca %struct.test, align 16 | %tmp = alloca %struct.test, align 16 | ||||
%.compoundliteral.sroa.0.0..sroa_idx = getelementptr inbounds %struct.test, %struct.test* %tmp, i64 0, i32 0 | %.compoundliteral.sroa.0.0..sroa_idx = getelementptr inbounds %struct.test, %struct.test* %tmp, i64 0, i32 0 | ||||
store i64 %z, i64* %.compoundliteral.sroa.0.0..sroa_idx, align 16 | store i64 %z, i64* %.compoundliteral.sroa.0.0..sroa_idx, align 16 | ||||
Show All 11 Lines |