void helper_double_5(double *buf) {
  for (int j = 0; j < 32; j += 32) {
    for (int k = 0; k < 4; k += 4) {
      __asm__ volatile("vmovupd (%0), %%ymm0\n"
                       "vmovupd (%1), %%ymm1\n"
                       "vmovupd (%2), %%ymm2\n"
                       "vmovupd (%3), %%ymm3\n"
                       "vmovupd (%4), %%ymm4\n"
                       "vmovupd (%5), %%ymm5\n"
                       "vmovupd (%6), %%ymm6\n"
                       "vmovupd (%7), %%ymm7\n"
                       "vpermilpd $0, %%ymm0, %%ymm8\n"
                       "vpermilpd $15, %%ymm0, %%ymm9\n"
                       "vxorpd %%ymm10, %%ymm10, %%ymm10\n"
                       "vsubpd %%ymm9, %%ymm10, %%ymm11\n"
                       "vaddsubpd %%ymm11, %%ymm8, %%ymm0\n"
                       "vpermilpd $0, %%ymm1, %%ymm8\n"
                       "vpermilpd $15, %%ymm1, %%ymm9\n"
                       "vxorpd %%ymm10, %%ymm10, %%ymm10\n"
                       "vsubpd %%ymm9, %%ymm10, %%ymm11\n"
                       "vaddsubpd %%ymm11, %%ymm8, %%ymm1\n"
                       "vpermilpd $0, %%ymm2, %%ymm8\n"
                       "vpermilpd $15, %%ymm2, %%ymm9\n"
                       "vxorpd %%ymm10, %%ymm10, %%ymm10\n"
                       "vsubpd %%ymm9, %%ymm10, %%ymm11\n"
                       "vaddsubpd %%ymm11, %%ymm8, %%ymm2\n"
                       "vpermilpd $0, %%ymm3, %%ymm8\n"
                       "vpermilpd $15, %%ymm3, %%ymm9\n"
                       "vxorpd %%ymm10, %%ymm10, %%ymm10\n"
                       "vsubpd %%ymm9, %%ymm10, %%ymm11\n"
                       "vaddsubpd %%ymm11, %%ymm8, %%ymm3\n"
                       "vpermilpd $0, %%ymm4, %%ymm8\n"
                       "vpermilpd $15, %%ymm4, %%ymm9\n"
                       "vxorpd %%ymm10, %%ymm10, %%ymm10\n"
                       "vsubpd %%ymm9, %%ymm10, %%ymm11\n"
                       "vaddsubpd %%ymm11, %%ymm8, %%ymm4\n"
                       "vpermilpd $0, %%ymm5, %%ymm8\n"
                       "vpermilpd $15, %%ymm5, %%ymm9\n"
                       "vxorpd %%ymm10, %%ymm10, %%ymm10\n"
                       "vsubpd %%ymm9, %%ymm10, %%ymm11\n"
                       "vaddsubpd %%ymm11, %%ymm8, %%ymm5\n"
                       "vpermilpd $0, %%ymm6, %%ymm8\n"
                       "vpermilpd $15, %%ymm6, %%ymm9\n"
                       "vxorpd %%ymm10, %%ymm10, %%ymm10\n"
                       "vsubpd %%ymm9, %%ymm10, %%ymm11\n"
                       "vaddsubpd %%ymm11, %%ymm8, %%ymm6\n"
                       "vpermilpd $0, %%ymm7, %%ymm8\n"
                       "vpermilpd $15, %%ymm7, %%ymm9\n"
                       "vxorpd %%ymm10, %%ymm10, %%ymm10\n"
                       "vsubpd %%ymm9, %%ymm10, %%ymm11\n"
                       "vaddsubpd %%ymm11, %%ymm8, %%ymm7\n"
                       "vperm2f128 $0, %%ymm0, %%ymm0, %%ymm8\n"
                       "vxorpd %%ymm9, %%ymm9, %%ymm9\n"
                       "vsubpd %%ymm0, %%ymm9, %%ymm10\n"
                       "vperm2f128 $49, %%ymm10, %%ymm0, %%ymm11\n"
                       "vaddpd %%ymm11, %%ymm8, %%ymm0\n"
                       "vperm2f128 $0, %%ymm1, %%ymm1, %%ymm8\n"
                       "vxorpd %%ymm9, %%ymm9, %%ymm9\n"
                       "vsubpd %%ymm1, %%ymm9, %%ymm10\n"
                       "vperm2f128 $49, %%ymm10, %%ymm1, %%ymm11\n"
                       "vaddpd %%ymm11, %%ymm8, %%ymm1\n"
                       "vperm2f128 $0, %%ymm2, %%ymm2, %%ymm8\n"
                       "vxorpd %%ymm9, %%ymm9, %%ymm9\n"
                       "vsubpd %%ymm2, %%ymm9, %%ymm10\n"
                       "vperm2f128 $49, %%ymm10, %%ymm2, %%ymm11\n"
                       "vaddpd %%ymm11, %%ymm8, %%ymm2\n"
                       "vperm2f128 $0, %%ymm3, %%ymm3, %%ymm8\n"
                       "vxorpd %%ymm9, %%ymm9, %%ymm9\n"
                       "vsubpd %%ymm3, %%ymm9, %%ymm10\n"
                       "vperm2f128 $49, %%ymm10, %%ymm3, %%ymm11\n"
                       "vaddpd %%ymm11, %%ymm8, %%ymm3\n"
                       "vperm2f128 $0, %%ymm4, %%ymm4, %%ymm8\n"
                       "vxorpd %%ymm9, %%ymm9, %%ymm9\n"
                       "vsubpd %%ymm4, %%ymm9, %%ymm10\n"
                       "vperm2f128 $49, %%ymm10, %%ymm4, %%ymm11\n"
                       "vaddpd %%ymm11, %%ymm8, %%ymm4\n"
                       "vperm2f128 $0, %%ymm5, %%ymm5, %%ymm8\n"
                       "vxorpd %%ymm9, %%ymm9, %%ymm9\n"
                       "vsubpd %%ymm5, %%ymm9, %%ymm10\n"
                       "vperm2f128 $49, %%ymm10, %%ymm5, %%ymm11\n"
                       "vaddpd %%ymm11, %%ymm8, %%ymm5\n"
                       "vperm2f128 $0, %%ymm6, %%ymm6, %%ymm8\n"
                       "vxorpd %%ymm9, %%ymm9, %%ymm9\n"
                       "vsubpd %%ymm6, %%ymm9, %%ymm10\n"
                       "vperm2f128 $49, %%ymm10, %%ymm6, %%ymm11\n"
                       "vaddpd %%ymm11, %%ymm8, %%ymm6\n"
                       "vperm2f128 $0, %%ymm7, %%ymm7, %%ymm8\n"
                       "vxorpd %%ymm9, %%ymm9, %%ymm9\n"
                       "vsubpd %%ymm7, %%ymm9, %%ymm10\n"
                       "vperm2f128 $49, %%ymm10, %%ymm7, %%ymm11\n"
                       "vaddpd %%ymm11, %%ymm8, %%ymm7\n"
                       "vaddpd %%ymm1, %%ymm0, %%ymm8\n"
                       "vsubpd %%ymm1, %%ymm0, %%ymm9\n"
                       "vaddpd %%ymm3, %%ymm2, %%ymm10\n"
                       "vsubpd %%ymm3, %%ymm2, %%ymm11\n"
                       "vaddpd %%ymm5, %%ymm4, %%ymm12\n"
                       "vsubpd %%ymm5, %%ymm4, %%ymm13\n"
                       "vaddpd %%ymm7, %%ymm6, %%ymm14\n"
                       "vsubpd %%ymm7, %%ymm6, %%ymm15\n"
                       "vaddpd %%ymm10, %%ymm8, %%ymm0\n"
                       "vsubpd %%ymm10, %%ymm8, %%ymm2\n"
                       "vaddpd %%ymm11, %%ymm9, %%ymm1\n"
                       "vsubpd %%ymm11, %%ymm9, %%ymm3\n"
                       "vaddpd %%ymm14, %%ymm12, %%ymm4\n"
                       "vsubpd %%ymm14, %%ymm12, %%ymm6\n"
                       "vaddpd %%ymm15, %%ymm13, %%ymm5\n"
                       "vsubpd %%ymm15, %%ymm13, %%ymm7\n"
                       "vaddpd %%ymm4, %%ymm0, %%ymm8\n"
                       "vsubpd %%ymm4, %%ymm0, %%ymm12\n"
                       "vaddpd %%ymm5, %%ymm1, %%ymm9\n"
                       "vsubpd %%ymm5, %%ymm1, %%ymm13\n"
                       "vaddpd %%ymm6, %%ymm2, %%ymm10\n"
                       "vsubpd %%ymm6, %%ymm2, %%ymm14\n"
                       "vaddpd %%ymm7, %%ymm3, %%ymm11\n"
                       "vsubpd %%ymm7, %%ymm3, %%ymm15\n"
                       "vmovupd %%ymm8, (%0)\n"
                       "vmovupd %%ymm9, (%1)\n"
                       "vmovupd %%ymm10, (%2)\n"
                       "vmovupd %%ymm11, (%3)\n"
                       "vmovupd %%ymm12, (%4)\n"
                       "vmovupd %%ymm13, (%5)\n"
                       "vmovupd %%ymm14, (%6)\n"
                       "vmovupd %%ymm15, (%7)\n" ::"r"(buf + j + k + 0),
                       "r"(buf + j + k + 4), "r"(buf + j + k + 8),
                       "r"(buf + j + k + 12), "r"(buf + j + k + 16),
                       "r"(buf + j + k + 20), "r"(buf + j + k + 24),
                       "r"(buf + j + k + 28)
                       : "%ymm0", "%ymm1", "%ymm2", "%ymm3", "%ymm4", "%ymm5",
                         "%ymm6", "%ymm7", "%ymm8", "%ymm9", "%ymm10", "%ymm11",
                         "%ymm12", "%ymm13", "%ymm14", "%ymm15", "memory");
    }
  }
}


x86 assembly (clang, -O0):
<helper_double_5>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
cmpl   $0x20,-0xc(%rbp)
jge    1499 <helper_double_5+0x399>
movl   $0x0,-0x10(%rbp)
cmpl   $0x4,-0x10(%rbp)
jge    1486 <helper_double_5+0x386>
mov    -0x8(%rbp),%rax
movslq -0xc(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
movslq -0x10(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    -0x8(%rbp),%rcx
movslq -0xc(%rbp),%rdx
shl    $0x3,%rdx
add    %rdx,%rcx
movslq -0x10(%rbp),%rdx
shl    $0x3,%rdx
add    %rdx,%rcx
add    $0x20,%rcx
mov    -0x8(%rbp),%rdx
movslq -0xc(%rbp),%rsi
shl    $0x3,%rsi
add    %rsi,%rdx
movslq -0x10(%rbp),%rsi
shl    $0x3,%rsi
add    %rsi,%rdx
add    $0x40,%rdx
mov    -0x8(%rbp),%rsi
movslq -0xc(%rbp),%rdi
shl    $0x3,%rdi
add    %rdi,%rsi
movslq -0x10(%rbp),%rdi
shl    $0x3,%rdi
add    %rdi,%rsi
add    $0x60,%rsi
mov    -0x8(%rbp),%rdi
movslq -0xc(%rbp),%r8
shl    $0x3,%r8
add    %r8,%rdi
movslq -0x10(%rbp),%r8
shl    $0x3,%r8
add    %r8,%rdi
add    $0x80,%rdi
mov    -0x8(%rbp),%r8
movslq -0xc(%rbp),%r9
shl    $0x3,%r9
add    %r9,%r8
movslq -0x10(%rbp),%r9
shl    $0x3,%r9
add    %r9,%r8
add    $0xa0,%r8
mov    -0x8(%rbp),%r9
movslq -0xc(%rbp),%r10
shl    $0x3,%r10
add    %r10,%r9
movslq -0x10(%rbp),%r10
shl    $0x3,%r10
add    %r10,%r9
add    $0xc0,%r9
mov    -0x8(%rbp),%r10
movslq -0xc(%rbp),%r11
shl    $0x3,%r11
add    %r11,%r10
movslq -0x10(%rbp),%r11
shl    $0x3,%r11
add    %r11,%r10
add    $0xe0,%r10
vmovupd (%rax),%ymm0
vmovupd (%rcx),%ymm1
vmovupd (%rdx),%ymm2
vmovupd (%rsi),%ymm3
vmovupd (%rdi),%ymm4
vmovupd (%r8),%ymm5
vmovupd (%r9),%ymm6
vmovupd (%r10),%ymm7
vpermilpd $0x0,%ymm0,%ymm8
vpermilpd $0xf,%ymm0,%ymm9
vxorpd %ymm10,%ymm10,%ymm10
vsubpd %ymm9,%ymm10,%ymm11
vaddsubpd %ymm11,%ymm8,%ymm0
vpermilpd $0x0,%ymm1,%ymm8
vpermilpd $0xf,%ymm1,%ymm9
vxorpd %ymm10,%ymm10,%ymm10
vsubpd %ymm9,%ymm10,%ymm11
vaddsubpd %ymm11,%ymm8,%ymm1
vpermilpd $0x0,%ymm2,%ymm8
vpermilpd $0xf,%ymm2,%ymm9
vxorpd %ymm10,%ymm10,%ymm10
vsubpd %ymm9,%ymm10,%ymm11
vaddsubpd %ymm11,%ymm8,%ymm2
vpermilpd $0x0,%ymm3,%ymm8
vpermilpd $0xf,%ymm3,%ymm9
vxorpd %ymm10,%ymm10,%ymm10
vsubpd %ymm9,%ymm10,%ymm11
vaddsubpd %ymm11,%ymm8,%ymm3
vpermilpd $0x0,%ymm4,%ymm8
vpermilpd $0xf,%ymm4,%ymm9
vxorpd %ymm10,%ymm10,%ymm10
vsubpd %ymm9,%ymm10,%ymm11
vaddsubpd %ymm11,%ymm8,%ymm4
vpermilpd $0x0,%ymm5,%ymm8
vpermilpd $0xf,%ymm5,%ymm9
vxorpd %ymm10,%ymm10,%ymm10
vsubpd %ymm9,%ymm10,%ymm11
vaddsubpd %ymm11,%ymm8,%ymm5
vpermilpd $0x0,%ymm6,%ymm8
vpermilpd $0xf,%ymm6,%ymm9
vxorpd %ymm10,%ymm10,%ymm10
vsubpd %ymm9,%ymm10,%ymm11
vaddsubpd %ymm11,%ymm8,%ymm6
vpermilpd $0x0,%ymm7,%ymm8
vpermilpd $0xf,%ymm7,%ymm9
vxorpd %ymm10,%ymm10,%ymm10
vsubpd %ymm9,%ymm10,%ymm11
vaddsubpd %ymm11,%ymm8,%ymm7
vperm2f128 $0x0,%ymm0,%ymm0,%ymm8
vxorpd %ymm9,%ymm9,%ymm9
vsubpd %ymm0,%ymm9,%ymm10
vperm2f128 $0x31,%ymm10,%ymm0,%ymm11
vaddpd %ymm11,%ymm8,%ymm0
vperm2f128 $0x0,%ymm1,%ymm1,%ymm8
vxorpd %ymm9,%ymm9,%ymm9
vsubpd %ymm1,%ymm9,%ymm10
vperm2f128 $0x31,%ymm10,%ymm1,%ymm11
vaddpd %ymm11,%ymm8,%ymm1
vperm2f128 $0x0,%ymm2,%ymm2,%ymm8
vxorpd %ymm9,%ymm9,%ymm9
vsubpd %ymm2,%ymm9,%ymm10
vperm2f128 $0x31,%ymm10,%ymm2,%ymm11
vaddpd %ymm11,%ymm8,%ymm2
vperm2f128 $0x0,%ymm3,%ymm3,%ymm8
vxorpd %ymm9,%ymm9,%ymm9
vsubpd %ymm3,%ymm9,%ymm10
vperm2f128 $0x31,%ymm10,%ymm3,%ymm11
vaddpd %ymm11,%ymm8,%ymm3
vperm2f128 $0x0,%ymm4,%ymm4,%ymm8
vxorpd %ymm9,%ymm9,%ymm9
vsubpd %ymm4,%ymm9,%ymm10
vperm2f128 $0x31,%ymm10,%ymm4,%ymm11
vaddpd %ymm11,%ymm8,%ymm4
vperm2f128 $0x0,%ymm5,%ymm5,%ymm8
vxorpd %ymm9,%ymm9,%ymm9
vsubpd %ymm5,%ymm9,%ymm10
vperm2f128 $0x31,%ymm10,%ymm5,%ymm11
vaddpd %ymm11,%ymm8,%ymm5
vperm2f128 $0x0,%ymm6,%ymm6,%ymm8
vxorpd %ymm9,%ymm9,%ymm9
vsubpd %ymm6,%ymm9,%ymm10
vperm2f128 $0x31,%ymm10,%ymm6,%ymm11
vaddpd %ymm11,%ymm8,%ymm6
vperm2f128 $0x0,%ymm7,%ymm7,%ymm8
vxorpd %ymm9,%ymm9,%ymm9
vsubpd %ymm7,%ymm9,%ymm10
vperm2f128 $0x31,%ymm10,%ymm7,%ymm11
vaddpd %ymm11,%ymm8,%ymm7
vaddpd %ymm1,%ymm0,%ymm8
vsubpd %ymm1,%ymm0,%ymm9
vaddpd %ymm3,%ymm2,%ymm10
vsubpd %ymm3,%ymm2,%ymm11
vaddpd %ymm5,%ymm4,%ymm12
vsubpd %ymm5,%ymm4,%ymm13
vaddpd %ymm7,%ymm6,%ymm14
vsubpd %ymm7,%ymm6,%ymm15
vaddpd %ymm10,%ymm8,%ymm0
vsubpd %ymm10,%ymm8,%ymm2
vaddpd %ymm11,%ymm9,%ymm1
vsubpd %ymm11,%ymm9,%ymm3
vaddpd %ymm14,%ymm12,%ymm4
vsubpd %ymm14,%ymm12,%ymm6
vaddpd %ymm15,%ymm13,%ymm5
vsubpd %ymm15,%ymm13,%ymm7
vaddpd %ymm4,%ymm0,%ymm8
vsubpd %ymm4,%ymm0,%ymm12
vaddpd %ymm5,%ymm1,%ymm9
vsubpd %ymm5,%ymm1,%ymm13
vaddpd %ymm6,%ymm2,%ymm10
vsubpd %ymm6,%ymm2,%ymm14
vaddpd %ymm7,%ymm3,%ymm11
vsubpd %ymm7,%ymm3,%ymm15
vmovupd %ymm8,(%rax)
vmovupd %ymm9,(%rcx)
vmovupd %ymm10,(%rdx)
vmovupd %ymm11,(%rsi)
vmovupd %ymm12,(%rdi)
vmovupd %ymm13,(%r8)
vmovupd %ymm14,(%r9)
vmovupd %ymm15,(%r10)
mov    -0x10(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x10(%rbp)
jmp    1120 <helper_double_5+0x20>
jmp    148b <helper_double_5+0x38b>
mov    -0xc(%rbp),%eax
add    $0x20,%eax
mov    %eax,-0xc(%rbp)
jmp    110f <helper_double_5+0xf>
pop    %rbp
ret

x86 assembly (clang, -O2):
<helper_double_5>:
lea    0x20(%rdi),%r8
lea    0x40(%rdi),%r9
lea    0x60(%rdi),%r10
lea    0x80(%rdi),%rsi
lea    0xa0(%rdi),%rax
lea    0xc0(%rdi),%rcx
lea    0xe0(%rdi),%rdx
vmovupd (%rdi),%ymm0
vmovupd (%r8),%ymm1
vmovupd (%r9),%ymm2
vmovupd (%r10),%ymm3
vmovupd (%rsi),%ymm4
vmovupd (%rax),%ymm5
vmovupd (%rcx),%ymm6
vmovupd (%rdx),%ymm7
vpermilpd $0x0,%ymm0,%ymm8
vpermilpd $0xf,%ymm0,%ymm9
vxorpd %ymm10,%ymm10,%ymm10
vsubpd %ymm9,%ymm10,%ymm11
vaddsubpd %ymm11,%ymm8,%ymm0
vpermilpd $0x0,%ymm1,%ymm8
vpermilpd $0xf,%ymm1,%ymm9
vxorpd %ymm10,%ymm10,%ymm10
vsubpd %ymm9,%ymm10,%ymm11
vaddsubpd %ymm11,%ymm8,%ymm1
vpermilpd $0x0,%ymm2,%ymm8
vpermilpd $0xf,%ymm2,%ymm9
vxorpd %ymm10,%ymm10,%ymm10
vsubpd %ymm9,%ymm10,%ymm11
vaddsubpd %ymm11,%ymm8,%ymm2
vpermilpd $0x0,%ymm3,%ymm8
vpermilpd $0xf,%ymm3,%ymm9
vxorpd %ymm10,%ymm10,%ymm10
vsubpd %ymm9,%ymm10,%ymm11
vaddsubpd %ymm11,%ymm8,%ymm3
vpermilpd $0x0,%ymm4,%ymm8
vpermilpd $0xf,%ymm4,%ymm9
vxorpd %ymm10,%ymm10,%ymm10
vsubpd %ymm9,%ymm10,%ymm11
vaddsubpd %ymm11,%ymm8,%ymm4
vpermilpd $0x0,%ymm5,%ymm8
vpermilpd $0xf,%ymm5,%ymm9
vxorpd %ymm10,%ymm10,%ymm10
vsubpd %ymm9,%ymm10,%ymm11
vaddsubpd %ymm11,%ymm8,%ymm5
vpermilpd $0x0,%ymm6,%ymm8
vpermilpd $0xf,%ymm6,%ymm9
vxorpd %ymm10,%ymm10,%ymm10
vsubpd %ymm9,%ymm10,%ymm11
vaddsubpd %ymm11,%ymm8,%ymm6
vpermilpd $0x0,%ymm7,%ymm8
vpermilpd $0xf,%ymm7,%ymm9
vxorpd %ymm10,%ymm10,%ymm10
vsubpd %ymm9,%ymm10,%ymm11
vaddsubpd %ymm11,%ymm8,%ymm7
vperm2f128 $0x0,%ymm0,%ymm0,%ymm8
vxorpd %ymm9,%ymm9,%ymm9
vsubpd %ymm0,%ymm9,%ymm10
vperm2f128 $0x31,%ymm10,%ymm0,%ymm11
vaddpd %ymm11,%ymm8,%ymm0
vperm2f128 $0x0,%ymm1,%ymm1,%ymm8
vxorpd %ymm9,%ymm9,%ymm9
vsubpd %ymm1,%ymm9,%ymm10
vperm2f128 $0x31,%ymm10,%ymm1,%ymm11
vaddpd %ymm11,%ymm8,%ymm1
vperm2f128 $0x0,%ymm2,%ymm2,%ymm8
vxorpd %ymm9,%ymm9,%ymm9
vsubpd %ymm2,%ymm9,%ymm10
vperm2f128 $0x31,%ymm10,%ymm2,%ymm11
vaddpd %ymm11,%ymm8,%ymm2
vperm2f128 $0x0,%ymm3,%ymm3,%ymm8
vxorpd %ymm9,%ymm9,%ymm9
vsubpd %ymm3,%ymm9,%ymm10
vperm2f128 $0x31,%ymm10,%ymm3,%ymm11
vaddpd %ymm11,%ymm8,%ymm3
vperm2f128 $0x0,%ymm4,%ymm4,%ymm8
vxorpd %ymm9,%ymm9,%ymm9
vsubpd %ymm4,%ymm9,%ymm10
vperm2f128 $0x31,%ymm10,%ymm4,%ymm11
vaddpd %ymm11,%ymm8,%ymm4
vperm2f128 $0x0,%ymm5,%ymm5,%ymm8
vxorpd %ymm9,%ymm9,%ymm9
vsubpd %ymm5,%ymm9,%ymm10
vperm2f128 $0x31,%ymm10,%ymm5,%ymm11
vaddpd %ymm11,%ymm8,%ymm5
vperm2f128 $0x0,%ymm6,%ymm6,%ymm8
vxorpd %ymm9,%ymm9,%ymm9
vsubpd %ymm6,%ymm9,%ymm10
vperm2f128 $0x31,%ymm10,%ymm6,%ymm11
vaddpd %ymm11,%ymm8,%ymm6
vperm2f128 $0x0,%ymm7,%ymm7,%ymm8
vxorpd %ymm9,%ymm9,%ymm9
vsubpd %ymm7,%ymm9,%ymm10
vperm2f128 $0x31,%ymm10,%ymm7,%ymm11
vaddpd %ymm11,%ymm8,%ymm7
vaddpd %ymm1,%ymm0,%ymm8
vsubpd %ymm1,%ymm0,%ymm9
vaddpd %ymm3,%ymm2,%ymm10
vsubpd %ymm3,%ymm2,%ymm11
vaddpd %ymm5,%ymm4,%ymm12
vsubpd %ymm5,%ymm4,%ymm13
vaddpd %ymm7,%ymm6,%ymm14
vsubpd %ymm7,%ymm6,%ymm15
vaddpd %ymm10,%ymm8,%ymm0
vsubpd %ymm10,%ymm8,%ymm2
vaddpd %ymm11,%ymm9,%ymm1
vsubpd %ymm11,%ymm9,%ymm3
vaddpd %ymm14,%ymm12,%ymm4
vsubpd %ymm14,%ymm12,%ymm6
vaddpd %ymm15,%ymm13,%ymm5
vsubpd %ymm15,%ymm13,%ymm7
vaddpd %ymm4,%ymm0,%ymm8
vsubpd %ymm4,%ymm0,%ymm12
vaddpd %ymm5,%ymm1,%ymm9
vsubpd %ymm5,%ymm1,%ymm13
vaddpd %ymm6,%ymm2,%ymm10
vsubpd %ymm6,%ymm2,%ymm14
vaddpd %ymm7,%ymm3,%ymm11
vsubpd %ymm7,%ymm3,%ymm15
vmovupd %ymm8,(%rdi)
vmovupd %ymm9,(%r8)
vmovupd %ymm10,(%r9)
vmovupd %ymm11,(%r10)
vmovupd %ymm12,(%rsi)
vmovupd %ymm13,(%rax)
vmovupd %ymm14,(%rcx)
vmovupd %ymm15,(%rdx)
ret

LLVM IR (-O0):
define void @helper_double_5(double* %0) {
%2 = alloca double*
%3 = alloca i32
%4 = alloca i32
store double* %0, double** %2
store i32 0, i32* %3
br label %5
5: ; preds = %81, %1
%6 = load i32, i32* %3
%7 = icmp slt i32 %6, 32
br i1 %7, label %8, label %84
8: ; preds = %5
store i32 0, i32* %4
br label %9
9: ; preds = %77, %8
%10 = load i32, i32* %4
%11 = icmp slt i32 %10, 4
br i1 %11, label %12, label %80
12: ; preds = %9
%13 = load double*, double** %2
%14 = load i32, i32* %3
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds double, double* %13, i64 %15
%17 = load i32, i32* %4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds double, double* %16, i64 %18
%20 = getelementptr inbounds double, double* %19, i64 0
%21 = load double*, double** %2
%22 = load i32, i32* %3
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds double, double* %21, i64 %23
%25 = load i32, i32* %4
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds double, double* %24, i64 %26
%28 = getelementptr inbounds double, double* %27, i64 4
%29 = load double*, double** %2
%30 = load i32, i32* %3
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds double, double* %29, i64 %31
%33 = load i32, i32* %4
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds double, double* %32, i64 %34
%36 = getelementptr inbounds double, double* %35, i64 8
%37 = load double*, double** %2
%38 = load i32, i32* %3
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds double, double* %37, i64 %39
%41 = load i32, i32* %4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds double, double* %40, i64 %42
%44 = getelementptr inbounds double, double* %43, i64 12
%45 = load double*, double** %2
%46 = load i32, i32* %3
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds double, double* %45, i64 %47
%49 = load i32, i32* %4
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds double, double* %48, i64 %50
%52 = getelementptr inbounds double, double* %51, i64 16
%53 = load double*, double** %2
%54 = load i32, i32* %3
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds double, double* %53, i64 %55
%57 = load i32, i32* %4
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds double, double* %56, i64 %58
%60 = getelementptr inbounds double, double* %59, i64 20
%61 = load double*, double** %2
%62 = load i32, i32* %3
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds double, double* %61, i64 %63
%65 = load i32, i32* %4
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds double, double* %64, i64 %66
%68 = getelementptr inbounds double, double* %67, i64 24
%69 = load double*, double** %2
%70 = load i32, i32* %3
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds double, double* %69, i64 %71
%73 = load i32, i32* %4
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds double, double* %72, i64 %74
%76 = getelementptr inbounds double, double* %75, i64 28
br label %77
77: ; preds = %12
%78 = load i32, i32* %4
%79 = add nsw i32 %78, 4
store i32 %79, i32* %4
br label %9
80: ; preds = %9
br label %81
81: ; preds = %80
%82 = load i32, i32* %3
%83 = add nsw i32 %82, 32
store i32 %83, i32* %3
br label %5
84: ; preds = %5
ret void
}

LLVM IR (-O2):
define void @helper_double_5(double* %0) {
%2 = getelementptr inbounds double, double* %0, i64 4
%3 = getelementptr inbounds double, double* %0, i64 8
%4 = getelementptr inbounds double, double* %0, i64 12
%5 = getelementptr inbounds double, double* %0, i64 16
%6 = getelementptr inbounds double, double* %0, i64 20
%7 = getelementptr inbounds double, double* %0, i64 24
%8 = getelementptr inbounds double, double* %0, i64 28
tail call void asm sideeffect "vmovupd ($0), %ymm0\0Avmovupd ($1), %ymm1\0Avmovupd ($2), %ymm2\0Avmovupd ($3), %ymm3\0Avmovupd ($4), %ymm4\0Avmovupd ($5), %ymm5\0Avmovupd ($6), %ymm6\0Avmovupd ($7), %ymm7\0Avpermilpd $$0, %ymm0, %ymm8\0Avpermilpd $$15, %ymm0, %ymm9\0Avxorpd %ymm10, %ymm10, %ymm10\0Avsubpd %ymm9, %ymm10, %ymm11\0Avaddsubpd %ymm11, %ymm8, %ymm0\0Avpermilpd $$0, %ymm1, %ymm8\0Avpermilpd $$15, %ymm1, %ymm9\0Avxorpd %ymm10, %ymm10, %ymm10\0Avsubpd %ymm9, %ymm10, %ymm11\0Avaddsubpd %ymm11, %ymm8, %ymm1\0Avpermilpd $$0, %ymm2, %ymm8\0Avpermilpd $$15, %ymm2, %ymm9\0Avxorpd %ymm10, %ymm10, %ymm10\0Avsubpd %ymm9, %ymm10, %ymm11\0Avaddsubpd %ymm11, %ymm8, %ymm2\0Avpermilpd $$0, %ymm3, %ymm8\0Avpermilpd $$15, %ymm3, %ymm9\0Avxorpd %ymm10, %ymm10, %ymm10\0Avsubpd %ymm9, %ymm10, %ymm11\0Avaddsubpd %ymm11, %ymm8, %ymm3\0Avpermilpd $$0, %ymm4, %ymm8\0Avpermilpd $$15, %ymm4, %ymm9\0Avxorpd %ymm10, %ymm10, %ymm10\0Avsubpd %ymm9, %ymm10, %ymm11\0Avaddsubpd %ymm11, %ymm8, %ymm4\0Avpermilpd $$0, %ymm5, %ymm8\0Avpermilpd $$15, %ymm5, %ymm9\0Avxorpd %ymm10, %ymm10, %ymm10\0Avsubpd %ymm9, %ymm10, %ymm11\0Avaddsubpd %ymm11, %ymm8, %ymm5\0Avpermilpd $$0, %ymm6, %ymm8\0Avpermilpd $$15, %ymm6, %ymm9\0Avxorpd %ymm10, %ymm10, %ymm10\0Avsubpd %ymm9, %ymm10, %ymm11\0Avaddsubpd %ymm11, %ymm8, %ymm6\0Avpermilpd $$0, %ymm7, %ymm8\0Avpermilpd $$15, %ymm7, %ymm9\0Avxorpd %ymm10, %ymm10, %ymm10\0Avsubpd %ymm9, %ymm10, %ymm11\0Avaddsubpd %ymm11, %ymm8, %ymm7\0Avperm2f128 $$0, %ymm0, %ymm0, %ymm8\0Avxorpd %ymm9, %ymm9, %ymm9\0Avsubpd %ymm0, %ymm9, %ymm10\0Avperm2f128 $$49, %ymm10, %ymm0, %ymm11\0Avaddpd %ymm11, %ymm8, %ymm0\0Avperm2f128 $$0, %ymm1, %ymm1, %ymm8\0Avxorpd %ymm9, %ymm9, %ymm9\0Avsubpd %ymm1, %ymm9, %ymm10\0Avperm2f128 $$49, %ymm10, %ymm1, %ymm11\0Avaddpd %ymm11, %ymm8, %ymm1\0Avperm2f128 $$0, %ymm2, %ymm2, %ymm8\0Avxorpd %ymm9, %ymm9, %ymm9\0Avsubpd %ymm2, %ymm9, %ymm10\0Avperm2f128 $$49, %ymm10, %ymm2, %ymm11\0Avaddpd %ymm11, %ymm8, %ymm2\0Avperm2f128 $$0, %ymm3, %ymm3, %ymm8\0Avxorpd %ymm9, %ymm9, %ymm9\0Avsubpd %ymm3, %ymm9, %ymm10\0Avperm2f128 $$49, %ymm10, %ymm3, %ymm11\0Avaddpd %ymm11, %ymm8, %ymm3\0Avperm2f128 $$0, %ymm4, %ymm4, %ymm8\0Avxorpd %ymm9, %ymm9, %ymm9\0Avsubpd %ymm4, %ymm9, %ymm10\0Avperm2f128 $$49, %ymm10, %ymm4, %ymm11\0Avaddpd %ymm11, %ymm8, %ymm4\0Avperm2f128 $$0, %ymm5, %ymm5, %ymm8\0Avxorpd %ymm9, %ymm9, %ymm9\0Avsubpd %ymm5, %ymm9, %ymm10\0Avperm2f128 $$49, %ymm10, %ymm5, %ymm11\0Avaddpd %ymm11, %ymm8, %ymm5\0Avperm2f128 $$0, %ymm6, %ymm6, %ymm8\0Avxorpd %ymm9, %ymm9, %ymm9\0Avsubpd %ymm6, %ymm9, %ymm10\0Avperm2f128 $$49, %ymm10, %ymm6, %ymm11\0Avaddpd %ymm11, %ymm8, %ymm6\0Avperm2f128 $$0, %ymm7, %ymm7, %ymm8\0Avxorpd %ymm9, %ymm9, %ymm9\0Avsubpd %ymm7, %ymm9, %ymm10\0Avperm2f128 $$49, %ymm10, %ymm7, %ymm11\0Avaddpd %ymm11, %ymm8, %ymm7\0Avaddpd %ymm1, %ymm0, %ymm8\0Avsubpd %ymm1, %ymm0, %ymm9\0Avaddpd %ymm3, %ymm2, %ymm10\0Avsubpd %ymm3, %ymm2, %ymm11\0Avaddpd %ymm5, %ymm4, %ymm12\0Avsubpd %ymm5, %ymm4, %ymm13\0Avaddpd %ymm7, %ymm6, %ymm14\0Avsubpd %ymm7, %ymm6, %ymm15\0Avaddpd %ymm10, %ymm8, %ymm0\0Avsubpd %ymm10, %ymm8, %ymm2\0Avaddpd %ymm11, %ymm9, %ymm1\0Avsubpd %ymm11, %ymm9, %ymm3\0Avaddpd %ymm14, %ymm12, %ymm4\0Avsubpd %ymm14, %ymm12, %ymm6\0Avaddpd %ymm15, %ymm13, %ymm5\0Avsubpd %ymm15, %ymm13, %ymm7\0Avaddpd %ymm4, %ymm0, %ymm8\0Avsubpd %ymm4, %ymm0, %ymm12\0Avaddpd %ymm5, %ymm1, %ymm9\0Avsubpd %ymm5, %ymm1, %ymm13\0Avaddpd %ymm6, %ymm2, %ymm10\0Avsubpd %ymm6, %ymm2, %ymm14\0Avaddpd %ymm7, %ymm3, %ymm11\0Avsubpd %ymm7, %ymm3, %ymm15\0Avmovupd %ymm8, ($0)\0Avmovupd %ymm9, ($1)\0Avmovupd %ymm10, ($2)\0Avmovupd %ymm11, ($3)\0Avmovupd %ymm12, ($4)\0Avmovupd %ymm13, ($5)\0Avmovupd %ymm14, ($6)\0Avmovupd %ymm15, ($7)\0A", "r,r,r,r,r,r,r,r,~{ymm0},~{ymm1},~{ymm2},~{ymm3},~{ymm4},~{ymm5},~{ymm6},~{ymm7},~{ymm8},~{ymm9},~{ymm10},~{ymm11},~{ymm12},~{ymm13},~{ymm14},~{ymm15},~{memory},~{dirflag},~{fpsr},~{flags}"(double* %0, double* %2, double* %3, double* %4, double* %5, double* %6, double* %7, double* %8)
ret void
}