void copy44d33f(double *src, float *dst) {
  *(dst++) = (float)*(src++);
  *(dst++) = (float)*(src++);
  *(dst++) = (float)*(src++);
  src++;
  *(dst++) = (float)*(src++);
  *(dst++) = (float)*(src++);
  *(dst++) = (float)*(src++);
  src++;
  *(dst++) = (float)*(src++);
  *(dst++) = (float)*(src++);
  *(dst++) = (float)*(src++);
  src++;
}


x86 assembly (clang, -O0):
<copy44d33f>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x8(%rbp)
movsd  (%rax),%xmm0
cvtsd2ss %xmm0,%xmm0
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x4,%rcx
mov    %rcx,-0x10(%rbp)
movss  %xmm0,(%rax)
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x8(%rbp)
movsd  (%rax),%xmm0
cvtsd2ss %xmm0,%xmm0
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x4,%rcx
mov    %rcx,-0x10(%rbp)
movss  %xmm0,(%rax)
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x8(%rbp)
movsd  (%rax),%xmm0
cvtsd2ss %xmm0,%xmm0
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x4,%rcx
mov    %rcx,-0x10(%rbp)
movss  %xmm0,(%rax)
mov    -0x8(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x8(%rbp)
movsd  (%rax),%xmm0
cvtsd2ss %xmm0,%xmm0
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x4,%rcx
mov    %rcx,-0x10(%rbp)
movss  %xmm0,(%rax)
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x8(%rbp)
movsd  (%rax),%xmm0
cvtsd2ss %xmm0,%xmm0
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x4,%rcx
mov    %rcx,-0x10(%rbp)
movss  %xmm0,(%rax)
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x8(%rbp)
movsd  (%rax),%xmm0
cvtsd2ss %xmm0,%xmm0
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x4,%rcx
mov    %rcx,-0x10(%rbp)
movss  %xmm0,(%rax)
mov    -0x8(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x8(%rbp)
movsd  (%rax),%xmm0
cvtsd2ss %xmm0,%xmm0
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x4,%rcx
mov    %rcx,-0x10(%rbp)
movss  %xmm0,(%rax)
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x8(%rbp)
movsd  (%rax),%xmm0
cvtsd2ss %xmm0,%xmm0
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x4,%rcx
mov    %rcx,-0x10(%rbp)
movss  %xmm0,(%rax)
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x8(%rbp)
movsd  (%rax),%xmm0
cvtsd2ss %xmm0,%xmm0
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x4,%rcx
mov    %rcx,-0x10(%rbp)
movss  %xmm0,(%rax)
mov    -0x8(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x8(%rbp)
pop    %rbp
ret

x86 assembly (clang, -O2):
<copy44d33f>:
movupd (%rdi),%xmm0
movsd  0x10(%rdi),%xmm1
movhpd 0x20(%rdi),%xmm1
cvtpd2ps %xmm1,%xmm1
cvtpd2ps %xmm0,%xmm0
unpcklpd %xmm1,%xmm0
movupd %xmm0,(%rsi)
movupd 0x28(%rdi),%xmm0
movupd 0x40(%rdi),%xmm1
cvtpd2ps %xmm1,%xmm1
cvtpd2ps %xmm0,%xmm0
unpcklpd %xmm1,%xmm0
movupd %xmm0,0x10(%rsi)
movsd  0x50(%rdi),%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,0x20(%rsi)
ret

LLVM IR (-O0):
define void @copy44d33f(double* %0, float* %1) {
%3 = alloca double*
%4 = alloca float*
store double* %0, double** %3
store float* %1, float** %4
%5 = load double*, double** %3
%6 = getelementptr inbounds double, double* %5, i32 1
store double* %6, double** %3
%7 = load double, double* %5
%8 = fptrunc double %7 to float
%9 = load float*, float** %4
%10 = getelementptr inbounds float, float* %9, i32 1
store float* %10, float** %4
store float %8, float* %9
%11 = load double*, double** %3
%12 = getelementptr inbounds double, double* %11, i32 1
store double* %12, double** %3
%13 = load double, double* %11
%14 = fptrunc double %13 to float
%15 = load float*, float** %4
%16 = getelementptr inbounds float, float* %15, i32 1
store float* %16, float** %4
store float %14, float* %15
%17 = load double*, double** %3
%18 = getelementptr inbounds double, double* %17, i32 1
store double* %18, double** %3
%19 = load double, double* %17
%20 = fptrunc double %19 to float
%21 = load float*, float** %4
%22 = getelementptr inbounds float, float* %21, i32 1
store float* %22, float** %4
store float %20, float* %21
%23 = load double*, double** %3
%24 = getelementptr inbounds double, double* %23, i32 1
store double* %24, double** %3
%25 = load double*, double** %3
%26 = getelementptr inbounds double, double* %25, i32 1
store double* %26, double** %3
%27 = load double, double* %25
%28 = fptrunc double %27 to float
%29 = load float*, float** %4
%30 = getelementptr inbounds float, float* %29, i32 1
store float* %30, float** %4
store float %28, float* %29
%31 = load double*, double** %3
%32 = getelementptr inbounds double, double* %31, i32 1
store double* %32, double** %3
%33 = load double, double* %31
%34 = fptrunc double %33 to float
%35 = load float*, float** %4
%36 = getelementptr inbounds float, float* %35, i32 1
store float* %36, float** %4
store float %34, float* %35
%37 = load double*, double** %3
%38 = getelementptr inbounds double, double* %37, i32 1
store double* %38, double** %3
%39 = load double, double* %37
%40 = fptrunc double %39 to float
%41 = load float*, float** %4
%42 = getelementptr inbounds float, float* %41, i32 1
store float* %42, float** %4
store float %40, float* %41
%43 = load double*, double** %3
%44 = getelementptr inbounds double, double* %43, i32 1
store double* %44, double** %3
%45 = load double*, double** %3
%46 = getelementptr inbounds double, double* %45, i32 1
store double* %46, double** %3
%47 = load double, double* %45
%48 = fptrunc double %47 to float
%49 = load float*, float** %4
%50 = getelementptr inbounds float, float* %49, i32 1
store float* %50, float** %4
store float %48, float* %49
%51 = load double*, double** %3
%52 = getelementptr inbounds double, double* %51, i32 1
store double* %52, double** %3
%53 = load double, double* %51
%54 = fptrunc double %53 to float
%55 = load float*, float** %4
%56 = getelementptr inbounds float, float* %55, i32 1
store float* %56, float** %4
store float %54, float* %55
%57 = load double*, double** %3
%58 = getelementptr inbounds double, double* %57, i32 1
store double* %58, double** %3
%59 = load double, double* %57
%60 = fptrunc double %59 to float
%61 = load float*, float** %4
%62 = getelementptr inbounds float, float* %61, i32 1
store float* %62, float** %4
store float %60, float* %61
%63 = load double*, double** %3
%64 = getelementptr inbounds double, double* %63, i32 1
store double* %64, double** %3
ret void
}

LLVM IR (-O2):
define void @copy44d33f(double* nocapture %0, float* nocapture writeonly %1) {
%3 = getelementptr inbounds double, double* %0, i64 2
%4 = bitcast double* %0 to <2 x double>*
%5 = load <2 x double>, <2 x double>* %4
%6 = load double, double* %3
%7 = getelementptr inbounds double, double* %0, i64 4
%8 = getelementptr inbounds double, double* %0, i64 5
%9 = load double, double* %7
%10 = shufflevector <2 x double> %5, <2 x double> poison, <4 x i32> <i32 0, i32 1, i32 undef, i32 undef>
%11 = insertelement <4 x double> %10, double %6, i64 2
%12 = insertelement <4 x double> %11, double %9, i64 3
%13 = fptrunc <4 x double> %12 to <4 x float>
%14 = getelementptr inbounds float, float* %1, i64 4
%15 = bitcast float* %1 to <4 x float>*
store <4 x float> %13, <4 x float>* %15
%16 = bitcast double* %8 to <2 x double>*
%17 = load <2 x double>, <2 x double>* %16
%18 = getelementptr inbounds double, double* %0, i64 8
%19 = getelementptr inbounds double, double* %0, i64 10
%20 = bitcast double* %18 to <2 x double>*
%21 = load <2 x double>, <2 x double>* %20
%22 = shufflevector <2 x double> %17, <2 x double> %21, <4 x i32> <i32 0, i32 1, i32 2, i32 3>
%23 = fptrunc <4 x double> %22 to <4 x float>
%24 = getelementptr inbounds float, float* %1, i64 8
%25 = bitcast float* %14 to <4 x float>*
store <4 x float> %23, <4 x float>* %25
%26 = load double, double* %19
%27 = fptrunc double %26 to float
store float %27, float* %24
ret void
}