mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
21 lines
493 B
C
21 lines
493 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(%SimdDouble4x4* noalias sret(%SimdDouble4x4) align 32 %0, %SimdDouble4x4* byval(%SimdDouble4x4) align 32 %1) #0 {
|
|
entry:
|
|
%2 = bitcast %SimdDouble4x4* %0 to i8*
|
|
%3 = bitcast %SimdDouble4x4* %1 to i8*
|
|
call void @llvm.memcpy.p0i8.p0i8.i32(i8* align 32 %2, i8* align 32 %3, i32 128, i1 false)
|
|
ret void
|
|
}
|