void f(double *a) {
  int i;
  for (i = 0; i < 100; i++)
    a[i] = 18.4242;
}


x86 assembly (clang, -O0):
<f>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x64,-0xc(%rbp)
jge    113c <f+0x3c>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
movsd  0xed7(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    110f <f+0xf>
pop    %rbp
ret

x86 assembly (clang, -O2):
<f>:
movaps 0xef9(%rip),%xmm0
movups %xmm0,(%rdi)
movups %xmm0,0x10(%rdi)
movups %xmm0,0x20(%rdi)
movups %xmm0,0x30(%rdi)
movups %xmm0,0x40(%rdi)
movups %xmm0,0x50(%rdi)
movups %xmm0,0x60(%rdi)
movups %xmm0,0x70(%rdi)
movups %xmm0,0x80(%rdi)
movups %xmm0,0x90(%rdi)
movups %xmm0,0xa0(%rdi)
movups %xmm0,0xb0(%rdi)
movups %xmm0,0xc0(%rdi)
movups %xmm0,0xd0(%rdi)
movups %xmm0,0xe0(%rdi)
movups %xmm0,0xf0(%rdi)
movups %xmm0,0x100(%rdi)
movups %xmm0,0x110(%rdi)
movups %xmm0,0x120(%rdi)
movups %xmm0,0x130(%rdi)
movups %xmm0,0x140(%rdi)
movups %xmm0,0x150(%rdi)
movups %xmm0,0x160(%rdi)
movups %xmm0,0x170(%rdi)
movups %xmm0,0x180(%rdi)
movups %xmm0,0x190(%rdi)
movups %xmm0,0x1a0(%rdi)
movups %xmm0,0x1b0(%rdi)
movups %xmm0,0x1c0(%rdi)
movups %xmm0,0x1d0(%rdi)
movups %xmm0,0x1e0(%rdi)
movups %xmm0,0x1f0(%rdi)
movups %xmm0,0x200(%rdi)
movups %xmm0,0x210(%rdi)
movups %xmm0,0x220(%rdi)
movups %xmm0,0x230(%rdi)
movups %xmm0,0x240(%rdi)
movups %xmm0,0x250(%rdi)
movups %xmm0,0x260(%rdi)
movups %xmm0,0x270(%rdi)
movups %xmm0,0x280(%rdi)
movups %xmm0,0x290(%rdi)
movups %xmm0,0x2a0(%rdi)
movups %xmm0,0x2b0(%rdi)
movups %xmm0,0x2c0(%rdi)
movups %xmm0,0x2d0(%rdi)
movups %xmm0,0x2e0(%rdi)
movups %xmm0,0x2f0(%rdi)
movups %xmm0,0x300(%rdi)
movups %xmm0,0x310(%rdi)
ret

LLVM IR (-O0):
define void @f(double* %0) {
%2 = alloca double*
%3 = alloca i32
store double* %0, double** %2
store i32 0, i32* %3
br label %4
4: ; preds = %12, %1
%5 = load i32, i32* %3
%6 = icmp slt i32 %5, 100
br i1 %6, label %7, label %15
7: ; preds = %4
%8 = load double*, double** %2
%9 = load i32, i32* %3
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds double, double* %8, i64 %10
store double 1.842420e+01, double* %11
br label %12
12: ; preds = %7
%13 = load i32, i32* %3
%14 = add nsw i32 %13, 1
store i32 %14, i32* %3
br label %4
15: ; preds = %4
ret void
}

LLVM IR (-O2):
define void @f(double* nocapture writeonly %0) {
%2 = bitcast double* %0 to <2 x double>*
store <2 x double> <double 1.842420e+01, double 1.842420e+01>, <2 x double>* %2
%3 = getelementptr inbounds double, double* %0, i64 2
%4 = bitcast double* %3 to <2 x double>*
store <2 x double> <double 1.842420e+01, double 1.842420e+01>, <2 x double>* %4
%5 = getelementptr inbounds double, double* %0, i64 4
%6 = bitcast double* %5 to <2 x double>*
store <2 x double> <double 1.842420e+01, double 1.842420e+01>, <2 x double>* %6
%7 = getelementptr inbounds double, double* %0, i64 6
%8 = bitcast double* %7 to <2 x double>*
store <2 x double> <double 1.842420e+01, double 1.842420e+01>, <2 x double>* %8
%9 = getelementptr inbounds double, double* %0, i64 8
%10 = bitcast double* %9 to <2 x double>*
store <2 x double> <double 1.842420e+01, double 1.842420e+01>, <2 x double>* %10
%11 = getelementptr inbounds double, double* %0, i64 10
%12 = bitcast double* %11 to <2 x double>*
store <2 x double> <double 1.842420e+01, double 1.842420e+01>, <2 x double>* %12
%13 = getelementptr inbounds double, double* %0, i64 12
%14 = bitcast double* %13 to <2 x double>*
store <2 x double> <double 1.842420e+01, double 1.842420e+01>, <2 x double>* %14
%15 = getelementptr inbounds double, double* %0, i64 14
%16 = bitcast double* %15 to <2 x double>*
store <2 x double> <double 1.842420e+01, double 1.842420e+01>, <2 x double>* %16
%17 = getelementptr inbounds double, double* %0, i64 16
%18 = bitcast double* %17 to <2 x double>*
store <2 x double> <double 1.842420e+01, double 1.842420e+01>, <2 x double>* %18
%19 = getelementptr inbounds double, double* %0, i64 18
%20 = bitcast double* %19 to <2 x double>*
store <2 x double> <double 1.842420e+01, double 1.842420e+01>, <2 x double>* %20
%21 = getelementptr inbounds double, double* %0, i64 20
%22 = bitcast double* %21 to <2 x double>*
store <2 x double> <double 1.842420e+01, double 1.842420e+01>, <2 x double>* %22
%23 = getelementptr inbounds double, double* %0, i64 22
%24 = bitcast double* %23 to <2 x double>*
store <2 x double> <double 1.842420e+01, double 1.842420e+01>, <2 x double>* %24
%25 = getelementptr inbounds double, double* %0, i64 24
%26 = bitcast double* %25 to <2 x double>*
store <2 x double> <double 1.842420e+01, double 1.842420e+01>, <2 x double>* %26
%27 = getelementptr inbounds double, double* %0, i64 26
%28 = bitcast double* %27 to <2 x double>*
store <2 x double> <double 1.842420e+01, double 1.842420e+01>, <2 x double>* %28
%29 = getelementptr inbounds double, double* %0, i64 28
%30 = bitcast double* %29 to <2 x double>*
store <2 x double> <double 1.842420e+01, double 1.842420e+01>, <2 x double>* %30
%31 = getelementptr inbounds double, double* %0, i64 30
%32 = bitcast double* %31 to <2 x double>*
store <2 x double> <double 1.842420e+01, double 1.842420e+01>, <2 x double>* %32
%33 = getelementptr inbounds double, double* %0, i64 32
%34 = bitcast double* %33 to <2 x double>*
store <2 x double> <double 1.842420e+01, double 1.842420e+01>, <2 x double>* %34
%35 = getelementptr inbounds double, double* %0, i64 34
%36 = bitcast double* %35 to <2 x double>*
store <2 x double> <double 1.842420e+01, double 1.842420e+01>, <2 x double>* %36
%37 = getelementptr inbounds double, double* %0, i64 36
%38 = bitcast double* %37 to <2 x double>*
store <2 x double> <double 1.842420e+01, double 1.842420e+01>, <2 x double>* %38
%39 = getelementptr inbounds double, double* %0, i64 38
%40 = bitcast double* %39 to <2 x double>*
store <2 x double> <double 1.842420e+01, double 1.842420e+01>, <2 x double>* %40
%41 = getelementptr inbounds double, double* %0, i64 40
%42 = bitcast double* %41 to <2 x double>*
store <2 x double> <double 1.842420e+01, double 1.842420e+01>, <2 x double>* %42
%43 = getelementptr inbounds double, double* %0, i64 42
%44 = bitcast double* %43 to <2 x double>*
store <2 x double> <double 1.842420e+01, double 1.842420e+01>, <2 x double>* %44
%45 = getelementptr inbounds double, double* %0, i64 44
%46 = bitcast double* %45 to <2 x double>*
store <2 x double> <double 1.842420e+01, double 1.842420e+01>, <2 x double>* %46
%47 = getelementptr inbounds double, double* %0, i64 46
%48 = bitcast double* %47 to <2 x double>*
store <2 x double> <double 1.842420e+01, double 1.842420e+01>, <2 x double>* %48
%49 = getelementptr inbounds double, double* %0, i64 48
%50 = bitcast double* %49 to <2 x double>*
store <2 x double> <double 1.842420e+01, double 1.842420e+01>, <2 x double>* %50
%51 = getelementptr inbounds double, double* %0, i64 50
%52 = bitcast double* %51 to <2 x double>*
store <2 x double> <double 1.842420e+01, double 1.842420e+01>, <2 x double>* %52
%53 = getelementptr inbounds double, double* %0, i64 52
%54 = bitcast double* %53 to <2 x double>*
store <2 x double> <double 1.842420e+01, double 1.842420e+01>, <2 x double>* %54
%55 = getelementptr inbounds double, double* %0, i64 54
%56 = bitcast double* %55 to <2 x double>*
store <2 x double> <double 1.842420e+01, double 1.842420e+01>, <2 x double>* %56
%57 = getelementptr inbounds double, double* %0, i64 56
%58 = bitcast double* %57 to <2 x double>*
store <2 x double> <double 1.842420e+01, double 1.842420e+01>, <2 x double>* %58
%59 = getelementptr inbounds double, double* %0, i64 58
%60 = bitcast double* %59 to <2 x double>*
store <2 x double> <double 1.842420e+01, double 1.842420e+01>, <2 x double>* %60
%61 = getelementptr inbounds double, double* %0, i64 60
%62 = bitcast double* %61 to <2 x double>*
store <2 x double> <double 1.842420e+01, double 1.842420e+01>, <2 x double>* %62
%63 = getelementptr inbounds double, double* %0, i64 62
%64 = bitcast double* %63 to <2 x double>*
store <2 x double> <double 1.842420e+01, double 1.842420e+01>, <2 x double>* %64
%65 = getelementptr inbounds double, double* %0, i64 64
%66 = bitcast double* %65 to <2 x double>*
store <2 x double> <double 1.842420e+01, double 1.842420e+01>, <2 x double>* %66
%67 = getelementptr inbounds double, double* %0, i64 66
%68 = bitcast double* %67 to <2 x double>*
store <2 x double> <double 1.842420e+01, double 1.842420e+01>, <2 x double>* %68
%69 = getelementptr inbounds double, double* %0, i64 68
%70 = bitcast double* %69 to <2 x double>*
store <2 x double> <double 1.842420e+01, double 1.842420e+01>, <2 x double>* %70
%71 = getelementptr inbounds double, double* %0, i64 70
%72 = bitcast double* %71 to <2 x double>*
store <2 x double> <double 1.842420e+01, double 1.842420e+01>, <2 x double>* %72
%73 = getelementptr inbounds double, double* %0, i64 72
%74 = bitcast double* %73 to <2 x double>*
store <2 x double> <double 1.842420e+01, double 1.842420e+01>, <2 x double>* %74
%75 = getelementptr inbounds double, double* %0, i64 74
%76 = bitcast double* %75 to <2 x double>*
store <2 x double> <double 1.842420e+01, double 1.842420e+01>, <2 x double>* %76
%77 = getelementptr inbounds double, double* %0, i64 76
%78 = bitcast double* %77 to <2 x double>*
store <2 x double> <double 1.842420e+01, double 1.842420e+01>, <2 x double>* %78
%79 = getelementptr inbounds double, double* %0, i64 78
%80 = bitcast double* %79 to <2 x double>*
store <2 x double> <double 1.842420e+01, double 1.842420e+01>, <2 x double>* %80
%81 = getelementptr inbounds double, double* %0, i64 80
%82 = bitcast double* %81 to <2 x double>*
store <2 x double> <double 1.842420e+01, double 1.842420e+01>, <2 x double>* %82
%83 = getelementptr inbounds double, double* %0, i64 82
%84 = bitcast double* %83 to <2 x double>*
store <2 x double> <double 1.842420e+01, double 1.842420e+01>, <2 x double>* %84
%85 = getelementptr inbounds double, double* %0, i64 84
%86 = bitcast double* %85 to <2 x double>*
store <2 x double> <double 1.842420e+01, double 1.842420e+01>, <2 x double>* %86
%87 = getelementptr inbounds double, double* %0, i64 86
%88 = bitcast double* %87 to <2 x double>*
store <2 x double> <double 1.842420e+01, double 1.842420e+01>, <2 x double>* %88
%89 = getelementptr inbounds double, double* %0, i64 88
%90 = bitcast double* %89 to <2 x double>*
store <2 x double> <double 1.842420e+01, double 1.842420e+01>, <2 x double>* %90
%91 = getelementptr inbounds double, double* %0, i64 90
%92 = bitcast double* %91 to <2 x double>*
store <2 x double> <double 1.842420e+01, double 1.842420e+01>, <2 x double>* %92
%93 = getelementptr inbounds double, double* %0, i64 92
%94 = bitcast double* %93 to <2 x double>*
store <2 x double> <double 1.842420e+01, double 1.842420e+01>, <2 x double>* %94
%95 = getelementptr inbounds double, double* %0, i64 94
%96 = bitcast double* %95 to <2 x double>*
store <2 x double> <double 1.842420e+01, double 1.842420e+01>, <2 x double>* %96
%97 = getelementptr inbounds double, double* %0, i64 96
%98 = bitcast double* %97 to <2 x double>*
store <2 x double> <double 1.842420e+01, double 1.842420e+01>, <2 x double>* %98
%99 = getelementptr inbounds double, double* %0, i64 98
%100 = bitcast double* %99 to <2 x double>*
store <2 x double> <double 1.842420e+01, double 1.842420e+01>, <2 x double>* %100
ret void
}