void __attribute__((no, noclone)) set_float_imm1(float *a) {
  for (int i = 0; i < (1024 / sizeof(float)); i++)
    a[i] = 1;
}


x86 assembly (clang, -O0):
<set_float_imm1>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
movslq -0xc(%rbp),%rax
cmp    $0x100,%rax
jae    1142 <set_float_imm1+0x42>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
movss  0xed1(%rip),%xmm0
movss  %xmm0,(%rax,%rcx,4)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    110f <set_float_imm1+0xf>
pop    %rbp
ret

x86 assembly (clang, -O2):
<set_float_imm1>:
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)
movups %xmm0,0x320(%rdi)
movups %xmm0,0x330(%rdi)
movups %xmm0,0x340(%rdi)
movups %xmm0,0x350(%rdi)
movups %xmm0,0x360(%rdi)
movups %xmm0,0x370(%rdi)
movups %xmm0,0x380(%rdi)
movups %xmm0,0x390(%rdi)
movups %xmm0,0x3a0(%rdi)
movups %xmm0,0x3b0(%rdi)
movups %xmm0,0x3c0(%rdi)
movups %xmm0,0x3d0(%rdi)
movups %xmm0,0x3e0(%rdi)
movups %xmm0,0x3f0(%rdi)
ret

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

LLVM IR (-O2):
define void @set_float_imm1(float* nocapture writeonly %0) {
%2 = bitcast float* %0 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %2
%3 = getelementptr inbounds float, float* %0, i64 4
%4 = bitcast float* %3 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %4
%5 = getelementptr inbounds float, float* %0, i64 8
%6 = bitcast float* %5 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %6
%7 = getelementptr inbounds float, float* %0, i64 12
%8 = bitcast float* %7 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %8
%9 = getelementptr inbounds float, float* %0, i64 16
%10 = bitcast float* %9 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %10
%11 = getelementptr inbounds float, float* %0, i64 20
%12 = bitcast float* %11 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %12
%13 = getelementptr inbounds float, float* %0, i64 24
%14 = bitcast float* %13 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %14
%15 = getelementptr inbounds float, float* %0, i64 28
%16 = bitcast float* %15 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %16
%17 = getelementptr inbounds float, float* %0, i64 32
%18 = bitcast float* %17 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %18
%19 = getelementptr inbounds float, float* %0, i64 36
%20 = bitcast float* %19 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %20
%21 = getelementptr inbounds float, float* %0, i64 40
%22 = bitcast float* %21 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %22
%23 = getelementptr inbounds float, float* %0, i64 44
%24 = bitcast float* %23 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %24
%25 = getelementptr inbounds float, float* %0, i64 48
%26 = bitcast float* %25 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %26
%27 = getelementptr inbounds float, float* %0, i64 52
%28 = bitcast float* %27 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %28
%29 = getelementptr inbounds float, float* %0, i64 56
%30 = bitcast float* %29 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %30
%31 = getelementptr inbounds float, float* %0, i64 60
%32 = bitcast float* %31 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %32
%33 = getelementptr inbounds float, float* %0, i64 64
%34 = bitcast float* %33 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %34
%35 = getelementptr inbounds float, float* %0, i64 68
%36 = bitcast float* %35 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %36
%37 = getelementptr inbounds float, float* %0, i64 72
%38 = bitcast float* %37 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %38
%39 = getelementptr inbounds float, float* %0, i64 76
%40 = bitcast float* %39 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %40
%41 = getelementptr inbounds float, float* %0, i64 80
%42 = bitcast float* %41 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %42
%43 = getelementptr inbounds float, float* %0, i64 84
%44 = bitcast float* %43 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %44
%45 = getelementptr inbounds float, float* %0, i64 88
%46 = bitcast float* %45 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %46
%47 = getelementptr inbounds float, float* %0, i64 92
%48 = bitcast float* %47 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %48
%49 = getelementptr inbounds float, float* %0, i64 96
%50 = bitcast float* %49 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %50
%51 = getelementptr inbounds float, float* %0, i64 100
%52 = bitcast float* %51 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %52
%53 = getelementptr inbounds float, float* %0, i64 104
%54 = bitcast float* %53 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %54
%55 = getelementptr inbounds float, float* %0, i64 108
%56 = bitcast float* %55 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %56
%57 = getelementptr inbounds float, float* %0, i64 112
%58 = bitcast float* %57 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %58
%59 = getelementptr inbounds float, float* %0, i64 116
%60 = bitcast float* %59 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %60
%61 = getelementptr inbounds float, float* %0, i64 120
%62 = bitcast float* %61 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %62
%63 = getelementptr inbounds float, float* %0, i64 124
%64 = bitcast float* %63 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %64
%65 = getelementptr inbounds float, float* %0, i64 128
%66 = bitcast float* %65 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %66
%67 = getelementptr inbounds float, float* %0, i64 132
%68 = bitcast float* %67 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %68
%69 = getelementptr inbounds float, float* %0, i64 136
%70 = bitcast float* %69 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %70
%71 = getelementptr inbounds float, float* %0, i64 140
%72 = bitcast float* %71 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %72
%73 = getelementptr inbounds float, float* %0, i64 144
%74 = bitcast float* %73 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %74
%75 = getelementptr inbounds float, float* %0, i64 148
%76 = bitcast float* %75 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %76
%77 = getelementptr inbounds float, float* %0, i64 152
%78 = bitcast float* %77 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %78
%79 = getelementptr inbounds float, float* %0, i64 156
%80 = bitcast float* %79 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %80
%81 = getelementptr inbounds float, float* %0, i64 160
%82 = bitcast float* %81 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %82
%83 = getelementptr inbounds float, float* %0, i64 164
%84 = bitcast float* %83 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %84
%85 = getelementptr inbounds float, float* %0, i64 168
%86 = bitcast float* %85 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %86
%87 = getelementptr inbounds float, float* %0, i64 172
%88 = bitcast float* %87 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %88
%89 = getelementptr inbounds float, float* %0, i64 176
%90 = bitcast float* %89 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %90
%91 = getelementptr inbounds float, float* %0, i64 180
%92 = bitcast float* %91 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %92
%93 = getelementptr inbounds float, float* %0, i64 184
%94 = bitcast float* %93 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %94
%95 = getelementptr inbounds float, float* %0, i64 188
%96 = bitcast float* %95 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %96
%97 = getelementptr inbounds float, float* %0, i64 192
%98 = bitcast float* %97 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %98
%99 = getelementptr inbounds float, float* %0, i64 196
%100 = bitcast float* %99 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %100
%101 = getelementptr inbounds float, float* %0, i64 200
%102 = bitcast float* %101 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %102
%103 = getelementptr inbounds float, float* %0, i64 204
%104 = bitcast float* %103 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %104
%105 = getelementptr inbounds float, float* %0, i64 208
%106 = bitcast float* %105 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %106
%107 = getelementptr inbounds float, float* %0, i64 212
%108 = bitcast float* %107 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %108
%109 = getelementptr inbounds float, float* %0, i64 216
%110 = bitcast float* %109 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %110
%111 = getelementptr inbounds float, float* %0, i64 220
%112 = bitcast float* %111 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %112
%113 = getelementptr inbounds float, float* %0, i64 224
%114 = bitcast float* %113 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %114
%115 = getelementptr inbounds float, float* %0, i64 228
%116 = bitcast float* %115 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %116
%117 = getelementptr inbounds float, float* %0, i64 232
%118 = bitcast float* %117 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %118
%119 = getelementptr inbounds float, float* %0, i64 236
%120 = bitcast float* %119 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %120
%121 = getelementptr inbounds float, float* %0, i64 240
%122 = bitcast float* %121 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %122
%123 = getelementptr inbounds float, float* %0, i64 244
%124 = bitcast float* %123 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %124
%125 = getelementptr inbounds float, float* %0, i64 248
%126 = bitcast float* %125 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %126
%127 = getelementptr inbounds float, float* %0, i64 252
%128 = bitcast float* %127 to <4 x float>*
store <4 x float> <float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00>, <4 x float>* %128
ret void
}