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


x86 assembly (clang, -O0):
<sf_f2>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
cmpl   $0x400,-0x1c(%rbp)
jge    1173 <sf_f2+0x73>
mov    -0x18(%rbp),%rax
mov    -0x1c(%rbp),%ecx
shl    $0x1,%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x18(%rbp),%rax
mov    -0x1c(%rbp),%ecx
shl    $0x1,%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1117 <sf_f2+0x17>
pop    %rbp
ret

x86 assembly (clang, -O2):
<sf_f2>:
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movups (%rdx,%rax,8),%xmm0
movups 0x10(%rdx,%rax,8),%xmm1
movups 0x20(%rdx,%rax,8),%xmm2
movups 0x30(%rdx,%rax,8),%xmm3
movaps %xmm0,%xmm4
shufps $0x88,%xmm1,%xmm4
movaps %xmm2,%xmm5
shufps $0x88,%xmm3,%xmm5
shufps $0xdd,%xmm1,%xmm0
shufps $0xdd,%xmm3,%xmm2
movups %xmm4,(%rdi,%rax,4)
movups %xmm5,0x10(%rdi,%rax,4)
movups %xmm0,(%rsi,%rax,4)
movups %xmm2,0x10(%rsi,%rax,4)
add    $0x8,%rax
cmp    $0x400,%rax
jne    1110 <sf_f2+0x10>
ret

LLVM IR (-O0):
define void @sf_f2(float* noalias %0, float* noalias %1, float* noalias %2) {
%4 = alloca float*
%5 = alloca float*
%6 = alloca float*
%7 = alloca i32
store float* %0, float** %4
store float* %1, float** %5
store float* %2, float** %6
store i32 0, i32* %7
br label %8
8: ; preds = %33, %3
%9 = load i32, i32* %7
%10 = icmp slt i32 %9, 1024
br i1 %10, label %11, label %36
11: ; preds = %8
%12 = load float*, float** %6
%13 = load i32, i32* %7
%14 = mul nsw i32 %13, 2
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds float, float* %12, i64 %15
%17 = load float, float* %16
%18 = load float*, float** %4
%19 = load i32, i32* %7
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds float, float* %18, i64 %20
store float %17, float* %21
%22 = load float*, float** %6
%23 = load i32, i32* %7
%24 = mul nsw i32 %23, 2
%25 = add nsw i32 %24, 1
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds float, float* %22, i64 %26
%28 = load float, float* %27
%29 = load float*, float** %5
%30 = load i32, i32* %7
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds float, float* %29, i64 %31
store float %28, float* %32
br label %33
33: ; preds = %11
%34 = load i32, i32* %7
%35 = add nsw i32 %34, 1
store i32 %35, i32* %7
br label %8
36: ; preds = %8
ret void
}

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