mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
19 lines
383 B
C
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
|
|
}
|