void __attribute__((no, noclone))
sf_f4(float *__restrict a, float *__restrict b, float *__restrict c,
      float *__restrict d, float *__restrict e) {
  for (int i = 0; i < 1024; ++i) {
    a[i] = e[i * 4];
    b[i] = e[i * 4 + 1];
    c[i] = e[i * 4 + 2];
    d[i] = e[i * 4 + 3];
  }
}


x86 assembly (clang, -O0):
<sf_f4>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
cmpl   $0x400,-0x2c(%rbp)
jge    11bf <sf_f4+0xbf>
mov    -0x28(%rbp),%rax
mov    -0x2c(%rbp),%ecx
shl    $0x2,%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x28(%rbp),%rax
mov    -0x2c(%rbp),%ecx
shl    $0x2,%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x28(%rbp),%rax
mov    -0x2c(%rbp),%ecx
shl    $0x2,%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x28(%rbp),%rax
mov    -0x2c(%rbp),%ecx
shl    $0x2,%ecx
add    $0x3,%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    111f <sf_f4+0x1f>
pop    %rbp
ret

x86 assembly (clang, -O2):
<sf_f4>:
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movups (%r8,%rax,4),%xmm0
movups 0x10(%r8,%rax,4),%xmm1
movups 0x20(%r8,%rax,4),%xmm2
movups 0x30(%r8,%rax,4),%xmm3
movaps %xmm3,%xmm4
movlhps %xmm2,%xmm4
movaps %xmm0,%xmm5
unpcklps %xmm1,%xmm5
shufps $0x24,%xmm4,%xmm5
movaps %xmm2,%xmm4
unpcklps %xmm3,%xmm4
movaps %xmm1,%xmm6
shufps $0x11,%xmm0,%xmm6
shufps $0xe2,%xmm4,%xmm6
movaps %xmm3,%xmm4
unpckhpd %xmm2,%xmm4
movaps %xmm0,%xmm7
unpckhps %xmm1,%xmm7
shufps $0x24,%xmm4,%xmm7
unpckhps %xmm3,%xmm2
shufps $0x33,%xmm0,%xmm1
shufps $0xe2,%xmm2,%xmm1
movups %xmm5,(%rdi,%rax,1)
movups %xmm6,(%rsi,%rax,1)
movups %xmm7,(%rdx,%rax,1)
movups %xmm1,(%rcx,%rax,1)
movups 0x40(%r8,%rax,4),%xmm0
movups 0x50(%r8,%rax,4),%xmm1
movups 0x60(%r8,%rax,4),%xmm2
movups 0x70(%r8,%rax,4),%xmm3
movaps %xmm3,%xmm4
movlhps %xmm2,%xmm4
movaps %xmm0,%xmm5
unpcklps %xmm1,%xmm5
shufps $0x24,%xmm4,%xmm5
movaps %xmm2,%xmm4
unpcklps %xmm3,%xmm4
movaps %xmm1,%xmm6
shufps $0x11,%xmm0,%xmm6
shufps $0xe2,%xmm4,%xmm6
movaps %xmm3,%xmm4
unpckhpd %xmm2,%xmm4
movaps %xmm0,%xmm7
unpckhps %xmm1,%xmm7
shufps $0x24,%xmm4,%xmm7
unpckhps %xmm3,%xmm2
shufps $0x33,%xmm0,%xmm1
shufps $0xe2,%xmm2,%xmm1
movups %xmm5,0x10(%rdi,%rax,1)
movups %xmm6,0x10(%rsi,%rax,1)
movups %xmm7,0x10(%rdx,%rax,1)
movups %xmm1,0x10(%rcx,%rax,1)
add    $0x20,%rax
cmp    $0x1000,%rax
jne    1110 <sf_f4+0x10>
ret

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

LLVM IR (-O2):
define void @sf_f4(float* noalias nocapture writeonly %0, float* noalias nocapture writeonly %1, float* noalias nocapture writeonly %2, float* noalias nocapture writeonly %3, float* noalias nocapture %4) {
br label %6
6: ; preds = %6, %5
%7 = phi i64 [ 0, %5 ], [ %41, %6 ]
%8 = shl nuw nsw i64 %7, 2
%9 = getelementptr inbounds float, float* %4, i64 %8
%10 = bitcast float* %9 to <16 x float>*
%11 = load <16 x float>, <16 x float>* %10
%12 = shufflevector <16 x float> %11, <16 x float> poison, <4 x i32> <i32 0, i32 4, i32 8, i32 12>
%13 = shufflevector <16 x float> %11, <16 x float> poison, <4 x i32> <i32 1, i32 5, i32 9, i32 13>
%14 = shufflevector <16 x float> %11, <16 x float> poison, <4 x i32> <i32 2, i32 6, i32 10, i32 14>
%15 = shufflevector <16 x float> %11, <16 x float> poison, <4 x i32> <i32 3, i32 7, i32 11, i32 15>
%16 = getelementptr inbounds float, float* %0, i64 %7
%17 = bitcast float* %16 to <4 x float>*
store <4 x float> %12, <4 x float>* %17
%18 = getelementptr inbounds float, float* %1, i64 %7
%19 = bitcast float* %18 to <4 x float>*
store <4 x float> %13, <4 x float>* %19
%20 = getelementptr inbounds float, float* %2, i64 %7
%21 = bitcast float* %20 to <4 x float>*
store <4 x float> %14, <4 x float>* %21
%22 = getelementptr inbounds float, float* %3, i64 %7
%23 = bitcast float* %22 to <4 x float>*
store <4 x float> %15, <4 x float>* %23
%24 = or i64 %7, 4
%25 = shl nuw nsw i64 %24, 2
%26 = getelementptr inbounds float, float* %4, i64 %25
%27 = bitcast float* %26 to <16 x float>*
%28 = load <16 x float>, <16 x float>* %27
%29 = shufflevector <16 x float> %28, <16 x float> poison, <4 x i32> <i32 0, i32 4, i32 8, i32 12>
%30 = shufflevector <16 x float> %28, <16 x float> poison, <4 x i32> <i32 1, i32 5, i32 9, i32 13>
%31 = shufflevector <16 x float> %28, <16 x float> poison, <4 x i32> <i32 2, i32 6, i32 10, i32 14>
%32 = shufflevector <16 x float> %28, <16 x float> poison, <4 x i32> <i32 3, i32 7, i32 11, i32 15>
%33 = getelementptr inbounds float, float* %0, i64 %24
%34 = bitcast float* %33 to <4 x float>*
store <4 x float> %29, <4 x float>* %34
%35 = getelementptr inbounds float, float* %1, i64 %24
%36 = bitcast float* %35 to <4 x float>*
store <4 x float> %30, <4 x float>* %36
%37 = getelementptr inbounds float, float* %2, i64 %24
%38 = bitcast float* %37 to <4 x float>*
store <4 x float> %31, <4 x float>* %38
%39 = getelementptr inbounds float, float* %3, i64 %24
%40 = bitcast float* %39 to <4 x float>*
store <4 x float> %32, <4 x float>* %40
%41 = add nuw nsw i64 %7, 8
%42 = icmp eq i64 %41, 1024
br i1 %42, label %43, label %6
43: ; preds = %6
ret void
}