Files
c3c/test/test_suite2/abi/darwin64_sret.c3t
2022-10-15 02:45:19 +02:00

19 lines
383 B
C

// #target: macos-x64
module foo;
struct SimdDouble4x4
{
double[<4>][4] columns;
}
fn SimdDouble4x4 ident(SimdDouble4x4 x) {
return x;
}
/* #expect: foo.ll
define void @foo_ident(ptr noalias sret(%SimdDouble4x4) align 32 %0, ptr byval(%SimdDouble4x4) align 32 %1) #0 {
entry:
call void @llvm.memcpy.p0.p0.i32(ptr align 32 %0, ptr align 32 %1, i32 128, i1 false)
ret void
}