int main() {
  _Complex double a[12], *c = a, s = 3.0 + 1.0i;
  double b[12] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}, *d = b;
  int i;
  for (i = 0; i < 6; i++)
    *c++ = *d++ * s;
  if (c != a + 6 || d != b + 6)
    abort();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x160,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0xd0(%rbp),%rax
mov    %rax,-0xd8(%rbp)
movsd  0xec0(%rip),%xmm0
movsd  %xmm0,-0xe8(%rbp)
ff
movsd  0xea8(%rip),%xmm0
movsd  %xmm0,-0xe0(%rbp)
ff
lea    -0x150(%rbp),%rdi
lea    0xea2(%rip),%rsi
mov    $0x60,%edx
call   1040 <memcpy@plt>
lea    -0x150(%rbp),%rax
mov    %rax,-0x158(%rbp)
movl   $0x0,-0x15c(%rbp)
cmpl   $0x6,-0x15c(%rbp)
jge    1203 <main+0xe3>
mov    -0x158(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x158(%rbp)
movsd  (%rax),%xmm0
movsd  -0xe8(%rbp),%xmm3
ff
movsd  -0xe0(%rbp),%xmm2
ff
movaps %xmm0,%xmm1
mulsd  %xmm3,%xmm1
mulsd  %xmm2,%xmm0
mov    -0xd8(%rbp),%rax
mov    %rax,%rcx
add    $0x10,%rcx
mov    %rcx,-0xd8(%rbp)
movsd  %xmm1,(%rax)
movsd  %xmm0,0x8(%rax)
mov    -0x15c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x15c(%rbp)
jmp    1190 <main+0x70>
mov    -0xd8(%rbp),%rax
lea    -0xd0(%rbp),%rcx
add    $0x60,%rcx
cmp    %rcx,%rax
jne    1239 <main+0x119>
mov    -0x158(%rbp),%rax
lea    -0x150(%rbp),%rcx
add    $0x30,%rcx
cmp    %rcx,%rax
je     123e <main+0x11e>
call   1030 <abort@plt>
xor    %eax,%eax
add    $0x160,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
xor    %eax,%eax
ret

LLVM IR (-O0):
@__const.main.b = [12 x double] [double 1.000000e+00, double 2.000000e+00, double 3.000000e+00, double 4.000000e+00, double 5.000000e+00, double 6.000000e+00, double 7.000000e+00, double 8.000000e+00, double 9.000000e+00, double 1.000000e+01, double 1.100000e+01, double 1.200000e+01]
define i32 @main() {
%1 = alloca i32
%2 = alloca [12 x { double, double }]
%3 = alloca { double, double }*
%4 = alloca { double, double }
%5 = alloca [12 x double]
%6 = alloca double*
%7 = alloca i32
store i32 0, i32* %1
%8 = getelementptr inbounds [12 x { double, double }], [12 x { double, double }]* %2, i64 0, i64 0
store { double, double }* %8, { double, double }** %3
%9 = getelementptr inbounds { double, double }, { double, double }* %4, i32 0, i32 0
%10 = getelementptr inbounds { double, double }, { double, double }* %4, i32 0, i32 1
store double 3.000000e+00, double* %9
store double 1.000000e+00, double* %10
%11 = bitcast [12 x double]* %5 to i8*
%12 = getelementptr inbounds [12 x double], [12 x double]* %5, i64 0, i64 0
store double* %12, double** %6
store i32 0, i32* %7
br label %13
13: ; preds = %30, %0
%14 = load i32, i32* %7
%15 = icmp slt i32 %14, 6
br i1 %15, label %16, label %33
16: ; preds = %13
%17 = load double*, double** %6
%18 = getelementptr inbounds double, double* %17, i32 1
store double* %18, double** %6
%19 = load double, double* %17
%20 = getelementptr inbounds { double, double }, { double, double }* %4, i32 0, i32 0
%21 = load double, double* %20
%22 = getelementptr inbounds { double, double }, { double, double }* %4, i32 0, i32 1
%23 = load double, double* %22
%24 = fmul double %19, %21
%25 = fmul double %19, %23
%26 = load { double, double }*, { double, double }** %3
%27 = getelementptr inbounds { double, double }, { double, double }* %26, i32 1
store { double, double }* %27, { double, double }** %3
%28 = getelementptr inbounds { double, double }, { double, double }* %26, i32 0, i32 0
%29 = getelementptr inbounds { double, double }, { double, double }* %26, i32 0, i32 1
store double %24, double* %28
store double %25, double* %29
br label %30
30: ; preds = %16
%31 = load i32, i32* %7
%32 = add nsw i32 %31, 1
store i32 %32, i32* %7
br label %13
33: ; preds = %13
%34 = load { double, double }*, { double, double }** %3
%35 = getelementptr inbounds [12 x { double, double }], [12 x { double, double }]* %2, i64 0, i64 0
%36 = getelementptr inbounds { double, double }, { double, double }* %35, i64 6
%37 = icmp ne { double, double }* %34, %36
br i1 %37, label %43, label %38
38: ; preds = %33
%39 = load double*, double** %6
%40 = getelementptr inbounds [12 x double], [12 x double]* %5, i64 0, i64 0
%41 = getelementptr inbounds double, double* %40, i64 6
%42 = icmp ne double* %39, %41
br i1 %42, label %43, label %44
43: ; preds = %38, %33
unreachable
44: ; preds = %38
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
ret i32 0
}