void HTS_movem(double *a, double *b, const int nitem) {
  long i = (long)nitem;
  if (a > b)
    while (i--)
      *b++ = *a++;
  else {
    a += i;
    b += i;
    while (i--)
      *--b = *--a;
  }
}


x86 assembly (clang, -O0):
<HTS_movem>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
movslq -0x14(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x8(%rbp),%rax
cmp    -0x10(%rbp),%rax
jbe    1173 <HTS_movem+0x73>
jmp    112a <HTS_movem+0x2a>
mov    -0x20(%rbp),%rax
mov    %rax,%rcx
add    $0xffffffffffffffff,%rcx
mov    %rcx,-0x20(%rbp)
cmp    $0x0,%rax
je     116e <HTS_movem+0x6e>
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x8(%rbp)
movsd  (%rax),%xmm0
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x10(%rbp)
movsd  %xmm0,(%rax)
jmp    112a <HTS_movem+0x2a>
jmp    11de <HTS_movem+0xde>
mov    -0x20(%rbp),%rax
shl    $0x3,%rax
add    -0x8(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x20(%rbp),%rax
shl    $0x3,%rax
add    -0x10(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,%rcx
add    $0xffffffffffffffff,%rcx
mov    %rcx,-0x20(%rbp)
cmp    $0x0,%rax
je     11d9 <HTS_movem+0xd9>
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0xfffffffffffffff8,%rcx
mov    %rcx,-0x8(%rbp)
movsd  -0x8(%rax),%xmm0
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0xfffffffffffffff8,%rcx
mov    %rcx,-0x10(%rbp)
movsd  %xmm0,-0x8(%rax)
jmp    1193 <HTS_movem+0x93>
jmp    11de <HTS_movem+0xde>
pop    %rbp
ret

x86 assembly (clang, -O2):
<HTS_movem>:
push   %rbx
movslq %edx,%r8
cmp    %rsi,%rdi
jbe    115e <HTS_movem+0x5e>
test   %edx,%edx
je     1467 <HTS_movem+0x367>
cmp    $0x4,%edx
jb     13c2 <HTS_movem+0x2c2>
lea    (%rdi,%r8,8),%rax
cmp    %rsi,%rax
jbe    1130 <HTS_movem+0x30>
lea    (%rsi,%r8,8),%rax
cmp    %rdi,%rax
ja     13c2 <HTS_movem+0x2c2>
mov    %r8,%r9
and    $0xfffffffffffffffc,%r9
lea    -0x4(%r9),%rax
mov    %rax,%rcx
shr    $0x2,%rcx
add    $0x1,%rcx
mov    %ecx,%r10d
and    $0x3,%r10d
cmp    $0xc,%rax
jae    12fe <HTS_movem+0x1fe>
xor    %eax,%eax
jmp    1368 <HTS_movem+0x268>
test   %edx,%edx
je     1467 <HTS_movem+0x367>
lea    (%rsi,%r8,8),%rcx
lea    (%rdi,%r8,8),%rax
cmp    $0x4,%edx
jb     1242 <HTS_movem+0x142>
cmp    %rsi,%rax
jbe    1185 <HTS_movem+0x85>
cmp    %rdi,%rcx
ja     1242 <HTS_movem+0x142>
mov    %r8,%r9
and    $0xfffffffffffffffc,%r9
lea    -0x4(%r9),%rbx
mov    %rbx,%r10
shr    $0x2,%r10
add    $0x1,%r10
test   %rbx,%rbx
je     1469 <HTS_movem+0x369>
movabs $0x7ffffffffffffffc,%r11
ff ff 7f
or     $0x2,%r11
and    %r10,%r11
lea    (%rsi,%r8,8),%rbx
add    $0xfffffffffffffff0,%rbx
lea    (%rdi,%r8,8),%rdi
add    $0xfffffffffffffff0,%rdi
xor    %esi,%esi
nopw   0x0(%rax,%rax,1)
movups -0x10(%rdi,%rsi,8),%xmm0
movups (%rdi,%rsi,8),%xmm1
movups %xmm1,(%rbx,%rsi,8)
movups %xmm0,-0x10(%rbx,%rsi,8)
movups -0x30(%rdi,%rsi,8),%xmm0
movups -0x20(%rdi,%rsi,8),%xmm1
movups %xmm1,-0x20(%rbx,%rsi,8)
movups %xmm0,-0x30(%rbx,%rsi,8)
add    $0xfffffffffffffff8,%rsi
add    $0xfffffffffffffffe,%r11
jne    11d0 <HTS_movem+0xd0>
neg    %rsi
test   $0x1,%r10b
je     1229 <HTS_movem+0x129>
shl    $0x3,%rsi
mov    %rax,%rdi
sub    %rsi,%rdi
mov    %rcx,%rbx
sub    %rsi,%rbx
movups -0x20(%rdi),%xmm0
movups -0x10(%rdi),%xmm1
movups %xmm1,-0x10(%rbx)
movups %xmm0,-0x20(%rbx)
cmp    %r8,%r9
je     1467 <HTS_movem+0x367>
and    $0x3,%edx
shl    $0x3,%r9
sub    %r9,%rax
sub    %r9,%rcx
mov    %rdx,%r8
lea    -0x1(%r8),%rdx
mov    %r8,%rsi
and    $0x7,%rsi
je     127e <HTS_movem+0x17e>
xor    %edi,%edi
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsd  -0x8(%rax),%xmm0
add    $0xfffffffffffffff8,%rax
movsd  %xmm0,-0x8(%rcx)
add    $0xfffffffffffffff8,%rcx
add    $0x1,%rdi
cmp    %rdi,%rsi
jne    1260 <HTS_movem+0x160>
sub    %rdi,%r8
cmp    $0x7,%rdx
jb     1467 <HTS_movem+0x367>
neg    %r8
xor    %edx,%edx
nopl   (%rax)
movsd  -0x8(%rax,%rdx,8),%xmm0
movsd  %xmm0,-0x8(%rcx,%rdx,8)
movsd  -0x10(%rax,%rdx,8),%xmm0
movsd  %xmm0,-0x10(%rcx,%rdx,8)
movsd  -0x18(%rax,%rdx,8),%xmm0
movsd  %xmm0,-0x18(%rcx,%rdx,8)
movsd  -0x20(%rax,%rdx,8),%xmm0
movsd  %xmm0,-0x20(%rcx,%rdx,8)
movsd  -0x28(%rax,%rdx,8),%xmm0
movsd  %xmm0,-0x28(%rcx,%rdx,8)
movsd  -0x30(%rax,%rdx,8),%xmm0
movsd  %xmm0,-0x30(%rcx,%rdx,8)
movsd  -0x38(%rax,%rdx,8),%xmm0
movsd  %xmm0,-0x38(%rcx,%rdx,8)
movsd  -0x40(%rax,%rdx,8),%xmm0
movsd  %xmm0,-0x40(%rcx,%rdx,8)
add    $0xfffffffffffffff8,%rdx
cmp    %rdx,%r8
jne    1290 <HTS_movem+0x190>
jmp    1467 <HTS_movem+0x367>
and    $0xfffffffffffffffc,%rcx
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movups (%rdi,%rax,8),%xmm0
movups 0x10(%rdi,%rax,8),%xmm1
movups %xmm0,(%rsi,%rax,8)
movups %xmm1,0x10(%rsi,%rax,8)
movups 0x20(%rdi,%rax,8),%xmm0
movups 0x30(%rdi,%rax,8),%xmm1
movups %xmm0,0x20(%rsi,%rax,8)
movups %xmm1,0x30(%rsi,%rax,8)
movups 0x40(%rdi,%rax,8),%xmm0
movups 0x50(%rdi,%rax,8),%xmm1
movups %xmm0,0x40(%rsi,%rax,8)
movups %xmm1,0x50(%rsi,%rax,8)
movups 0x60(%rdi,%rax,8),%xmm0
movups 0x70(%rdi,%rax,8),%xmm1
movups %xmm0,0x60(%rsi,%rax,8)
movups %xmm1,0x70(%rsi,%rax,8)
add    $0x10,%rax
add    $0xfffffffffffffffc,%rcx
jne    1310 <HTS_movem+0x210>
test   %r10,%r10
je     13ab <HTS_movem+0x2ab>
lea    (%rsi,%rax,8),%rcx
add    $0x10,%rcx
lea    (%rdi,%rax,8),%rax
add    $0x10,%rax
shl    $0x5,%r10
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movups -0x10(%rax,%rbx,1),%xmm0
movups (%rax,%rbx,1),%xmm1
movups %xmm0,-0x10(%rcx,%rbx,1)
movups %xmm1,(%rcx,%rbx,1)
add    $0x20,%rbx
cmp    %rbx,%r10
jne    1390 <HTS_movem+0x290>
cmp    %r8,%r9
je     1467 <HTS_movem+0x367>
and    $0x3,%edx
lea    (%rdi,%r9,8),%rdi
lea    (%rsi,%r9,8),%rsi
mov    %rdx,%r8
lea    -0x1(%r8),%rax
mov    %r8,%rcx
and    $0x7,%rcx
je     13ea <HTS_movem+0x2ea>
nop
add    $0xffffffffffffffff,%r8
movsd  (%rdi),%xmm0
add    $0x8,%rdi
movsd  %xmm0,(%rsi)
add    $0x8,%rsi
add    $0xffffffffffffffff,%rcx
jne    13d0 <HTS_movem+0x2d0>
cmp    $0x7,%rax
jb     1467 <HTS_movem+0x367>
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsd  (%rdi,%rax,8),%xmm0
movsd  %xmm0,(%rsi,%rax,8)
movsd  0x8(%rdi,%rax,8),%xmm0
movsd  %xmm0,0x8(%rsi,%rax,8)
movsd  0x10(%rdi,%rax,8),%xmm0
movsd  %xmm0,0x10(%rsi,%rax,8)
movsd  0x18(%rdi,%rax,8),%xmm0
movsd  %xmm0,0x18(%rsi,%rax,8)
movsd  0x20(%rdi,%rax,8),%xmm0
movsd  %xmm0,0x20(%rsi,%rax,8)
movsd  0x28(%rdi,%rax,8),%xmm0
movsd  %xmm0,0x28(%rsi,%rax,8)
movsd  0x30(%rdi,%rax,8),%xmm0
movsd  %xmm0,0x30(%rsi,%rax,8)
movsd  0x38(%rdi,%rax,8),%xmm0
movsd  %xmm0,0x38(%rsi,%rax,8)
add    $0x8,%rax
cmp    %rax,%r8
jne    1400 <HTS_movem+0x300>
pop    %rbx
ret
xor    %esi,%esi
test   $0x1,%r10b
jne    1209 <HTS_movem+0x109>
jmp    1229 <HTS_movem+0x129>

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

LLVM IR (-O2):
define void @HTS_movem(double* %0, double* writeonly %1, i32 %2) {
%4 = sext i32 %2 to i64
%5 = icmp ugt double* %0, %1
%6 = icmp eq i32 %2, 0
br i1 %5, label %7, label %151
7: ; preds = %3
br i1 %6, label %293, label %8
8: ; preds = %7
%9 = icmp ult i32 %2, 4
br i1 %9, label %98, label %10
10: ; preds = %8
%11 = getelementptr double, double* %1, i64 %4
%12 = getelementptr double, double* %0, i64 %4
%13 = icmp ugt double* %12, %1
%14 = icmp ugt double* %11, %0
%15 = and i1 %13, %14
br i1 %15, label %98, label %16
16: ; preds = %10
%17 = and i64 %4, -4
%18 = and i64 %4, 3
%19 = getelementptr double, double* %0, i64 %17
%20 = getelementptr double, double* %1, i64 %17
%21 = add nsw i64 %17, -4
%22 = lshr exact i64 %21, 2
%23 = add nuw nsw i64 %22, 1
%24 = and i64 %23, 3
%25 = icmp ult i64 %21, 12
br i1 %25, label %77, label %26
26: ; preds = %16
%27 = and i64 %23, 9223372036854775804
br label %28
28: ; preds = %28, %26
%29 = phi i64 [ 0, %26 ], [ %74, %28 ]
%30 = phi i64 [ 0, %26 ], [ %75, %28 ]
%31 = getelementptr double, double* %0, i64 %29
%32 = getelementptr double, double* %1, i64 %29
%33 = bitcast double* %31 to <2 x double>*
%34 = load <2 x double>, <2 x double>* %33
%35 = getelementptr double, double* %31, i64 2
%36 = bitcast double* %35 to <2 x double>*
%37 = load <2 x double>, <2 x double>* %36
%38 = bitcast double* %32 to <2 x double>*
store <2 x double> %34, <2 x double>* %38
%39 = getelementptr double, double* %32, i64 2
%40 = bitcast double* %39 to <2 x double>*
store <2 x double> %37, <2 x double>* %40
%41 = or i64 %29, 4
%42 = getelementptr double, double* %0, i64 %41
%43 = getelementptr double, double* %1, i64 %41
%44 = bitcast double* %42 to <2 x double>*
%45 = load <2 x double>, <2 x double>* %44
%46 = getelementptr double, double* %42, i64 2
%47 = bitcast double* %46 to <2 x double>*
%48 = load <2 x double>, <2 x double>* %47
%49 = bitcast double* %43 to <2 x double>*
store <2 x double> %45, <2 x double>* %49
%50 = getelementptr double, double* %43, i64 2
%51 = bitcast double* %50 to <2 x double>*
store <2 x double> %48, <2 x double>* %51
%52 = or i64 %29, 8
%53 = getelementptr double, double* %0, i64 %52
%54 = getelementptr double, double* %1, i64 %52
%55 = bitcast double* %53 to <2 x double>*
%56 = load <2 x double>, <2 x double>* %55
%57 = getelementptr double, double* %53, i64 2
%58 = bitcast double* %57 to <2 x double>*
%59 = load <2 x double>, <2 x double>* %58
%60 = bitcast double* %54 to <2 x double>*
store <2 x double> %56, <2 x double>* %60
%61 = getelementptr double, double* %54, i64 2
%62 = bitcast double* %61 to <2 x double>*
store <2 x double> %59, <2 x double>* %62
%63 = or i64 %29, 12
%64 = getelementptr double, double* %0, i64 %63
%65 = getelementptr double, double* %1, i64 %63
%66 = bitcast double* %64 to <2 x double>*
%67 = load <2 x double>, <2 x double>* %66
%68 = getelementptr double, double* %64, i64 2
%69 = bitcast double* %68 to <2 x double>*
%70 = load <2 x double>, <2 x double>* %69
%71 = bitcast double* %65 to <2 x double>*
store <2 x double> %67, <2 x double>* %71
%72 = getelementptr double, double* %65, i64 2
%73 = bitcast double* %72 to <2 x double>*
store <2 x double> %70, <2 x double>* %73
%74 = add nuw i64 %29, 16
%75 = add nuw i64 %30, 4
%76 = icmp eq i64 %75, %27
br i1 %76, label %77, label %28
77: ; preds = %28, %16
%78 = phi i64 [ 0, %16 ], [ %74, %28 ]
%79 = icmp eq i64 %24, 0
br i1 %79, label %96, label %80
80: ; preds = %77, %80
%81 = phi i64 [ %93, %80 ], [ %78, %77 ]
%82 = phi i64 [ %94, %80 ], [ 0, %77 ]
%83 = getelementptr double, double* %0, i64 %81
%84 = getelementptr double, double* %1, i64 %81
%85 = bitcast double* %83 to <2 x double>*
%86 = load <2 x double>, <2 x double>* %85
%87 = getelementptr double, double* %83, i64 2
%88 = bitcast double* %87 to <2 x double>*
%89 = load <2 x double>, <2 x double>* %88
%90 = bitcast double* %84 to <2 x double>*
store <2 x double> %86, <2 x double>* %90
%91 = getelementptr double, double* %84, i64 2
%92 = bitcast double* %91 to <2 x double>*
store <2 x double> %89, <2 x double>* %92
%93 = add nuw i64 %81, 4
%94 = add i64 %82, 1
%95 = icmp eq i64 %94, %24
br i1 %95, label %96, label %80
96: ; preds = %80, %77
%97 = icmp eq i64 %17, %4
br i1 %97, label %293, label %98
98: ; preds = %10, %8, %96
%99 = phi i64 [ %4, %10 ], [ %4, %8 ], [ %18, %96 ]
%100 = phi double* [ %0, %10 ], [ %0, %8 ], [ %19, %96 ]
%101 = phi double* [ %1, %10 ], [ %1, %8 ], [ %20, %96 ]
%102 = add nsw i64 %99, -1
%103 = and i64 %99, 7
%104 = icmp eq i64 %103, 0
br i1 %104, label %116, label %105
105: ; preds = %98, %105
%106 = phi i64 [ %110, %105 ], [ %99, %98 ]
%107 = phi double* [ %111, %105 ], [ %100, %98 ]
%108 = phi double* [ %113, %105 ], [ %101, %98 ]
%109 = phi i64 [ %114, %105 ], [ 0, %98 ]
%110 = add nsw i64 %106, -1
%111 = getelementptr inbounds double, double* %107, i64 1
%112 = load double, double* %107
%113 = getelementptr inbounds double, double* %108, i64 1
store double %112, double* %108
%114 = add i64 %109, 1
%115 = icmp eq i64 %114, %103
br i1 %115, label %116, label %105
116: ; preds = %105, %98
%117 = phi i64 [ %99, %98 ], [ %110, %105 ]
%118 = phi double* [ %100, %98 ], [ %111, %105 ]
%119 = phi double* [ %101, %98 ], [ %113, %105 ]
%120 = icmp ult i64 %102, 7
br i1 %120, label %293, label %121
121: ; preds = %116, %121
%122 = phi i64 [ %146, %121 ], [ %117, %116 ]
%123 = phi double* [ %147, %121 ], [ %118, %116 ]
%124 = phi double* [ %149, %121 ], [ %119, %116 ]
%125 = getelementptr inbounds double, double* %123, i64 1
%126 = load double, double* %123
%127 = getelementptr inbounds double, double* %124, i64 1
store double %126, double* %124
%128 = getelementptr inbounds double, double* %123, i64 2
%129 = load double, double* %125
%130 = getelementptr inbounds double, double* %124, i64 2
store double %129, double* %127
%131 = getelementptr inbounds double, double* %123, i64 3
%132 = load double, double* %128
%133 = getelementptr inbounds double, double* %124, i64 3
store double %132, double* %130
%134 = getelementptr inbounds double, double* %123, i64 4
%135 = load double, double* %131
%136 = getelementptr inbounds double, double* %124, i64 4
store double %135, double* %133
%137 = getelementptr inbounds double, double* %123, i64 5
%138 = load double, double* %134
%139 = getelementptr inbounds double, double* %124, i64 5
store double %138, double* %136
%140 = getelementptr inbounds double, double* %123, i64 6
%141 = load double, double* %137
%142 = getelementptr inbounds double, double* %124, i64 6
store double %141, double* %139
%143 = getelementptr inbounds double, double* %123, i64 7
%144 = load double, double* %140
%145 = getelementptr inbounds double, double* %124, i64 7
store double %144, double* %142
%146 = add nsw i64 %122, -8
%147 = getelementptr inbounds double, double* %123, i64 8
%148 = load double, double* %143
%149 = getelementptr inbounds double, double* %124, i64 8
store double %148, double* %145
%150 = icmp eq i64 %146, 0
br i1 %150, label %293, label %121
151: ; preds = %3
br i1 %6, label %293, label %152
152: ; preds = %151
%153 = getelementptr double, double* %1, i64 %4
%154 = getelementptr double, double* %0, i64 %4
%155 = icmp ult i32 %2, 4
br i1 %155, label %240, label %156
156: ; preds = %152
%157 = icmp ugt double* %154, %1
%158 = icmp ugt double* %153, %0
%159 = and i1 %157, %158
br i1 %159, label %240, label %160
160: ; preds = %156
%161 = and i64 %4, -4
%162 = and i64 %4, 3
%163 = sub nsw i64 0, %161
%164 = getelementptr double, double* %154, i64 %163
%165 = sub nsw i64 0, %161
%166 = getelementptr double, double* %153, i64 %165
%167 = add nsw i64 %161, -4
%168 = lshr exact i64 %167, 2
%169 = add nuw nsw i64 %168, 1
%170 = and i64 %169, 1
%171 = icmp eq i64 %167, 0
br i1 %171, label %216, label %172
172: ; preds = %160
%173 = and i64 %169, 9223372036854775806
%174 = getelementptr double, double* %154, i64 -1
%175 = getelementptr double, double* %153, i64 -1
%176 = getelementptr double, double* %154, i64 -1
%177 = getelementptr double, double* %153, i64 -1
br label %178
178: ; preds = %178, %172
%179 = phi i64 [ 0, %172 ], [ %213, %178 ]
%180 = phi i64 [ 0, %172 ], [ %214, %178 ]
%181 = sub i64 0, %179
%182 = sub i64 0, %179
%183 = getelementptr inbounds double, double* %174, i64 %181
%184 = getelementptr inbounds double, double* %183, i64 -1
%185 = bitcast double* %184 to <2 x double>*
%186 = load <2 x double>, <2 x double>* %185
%187 = getelementptr inbounds double, double* %183, i64 -2
%188 = getelementptr inbounds double, double* %187, i64 -1
%189 = bitcast double* %188 to <2 x double>*
%190 = load <2 x double>, <2 x double>* %189
%191 = getelementptr inbounds double, double* %175, i64 %182
%192 = getelementptr inbounds double, double* %191, i64 -1
%193 = bitcast double* %192 to <2 x double>*
store <2 x double> %186, <2 x double>* %193
%194 = getelementptr inbounds double, double* %191, i64 -2
%195 = getelementptr inbounds double, double* %194, i64 -1
%196 = bitcast double* %195 to <2 x double>*
store <2 x double> %190, <2 x double>* %196
%197 = sub nuw nsw i64 -4, %179
%198 = sub nuw nsw i64 -4, %179
%199 = getelementptr inbounds double, double* %176, i64 %197
%200 = getelementptr inbounds double, double* %199, i64 -1
%201 = bitcast double* %200 to <2 x double>*
%202 = load <2 x double>, <2 x double>* %201
%203 = getelementptr inbounds double, double* %199, i64 -2
%204 = getelementptr inbounds double, double* %203, i64 -1
%205 = bitcast double* %204 to <2 x double>*
%206 = load <2 x double>, <2 x double>* %205
%207 = getelementptr inbounds double, double* %177, i64 %198
%208 = getelementptr inbounds double, double* %207, i64 -1
%209 = bitcast double* %208 to <2 x double>*
store <2 x double> %202, <2 x double>* %209
%210 = getelementptr inbounds double, double* %207, i64 -2
%211 = getelementptr inbounds double, double* %210, i64 -1
%212 = bitcast double* %211 to <2 x double>*
store <2 x double> %206, <2 x double>* %212
%213 = add nuw i64 %179, 8
%214 = add i64 %180, 2
%215 = icmp eq i64 %214, %173
br i1 %215, label %216, label %178
216: ; preds = %178, %160
%217 = phi i64 [ 0, %160 ], [ %213, %178 ]
%218 = icmp eq i64 %170, 0
br i1 %218, label %238, label %219
219: ; preds = %216
%220 = sub i64 0, %217
%221 = getelementptr double, double* %154, i64 -1
%222 = sub i64 0, %217
%223 = getelementptr double, double* %153, i64 -1
%224 = getelementptr inbounds double, double* %221, i64 %220
%225 = getelementptr inbounds double, double* %224, i64 -1
%226 = bitcast double* %225 to <2 x double>*
%227 = load <2 x double>, <2 x double>* %226
%228 = getelementptr inbounds double, double* %224, i64 -2
%229 = getelementptr inbounds double, double* %228, i64 -1
%230 = bitcast double* %229 to <2 x double>*
%231 = load <2 x double>, <2 x double>* %230
%232 = getelementptr inbounds double, double* %223, i64 %222
%233 = getelementptr inbounds double, double* %232, i64 -1
%234 = bitcast double* %233 to <2 x double>*
store <2 x double> %227, <2 x double>* %234
%235 = getelementptr inbounds double, double* %232, i64 -2
%236 = getelementptr inbounds double, double* %235, i64 -1
%237 = bitcast double* %236 to <2 x double>*
store <2 x double> %231, <2 x double>* %237
br label %238
238: ; preds = %216, %219
%239 = icmp eq i64 %161, %4
br i1 %239, label %293, label %240
240: ; preds = %156, %152, %238
%241 = phi i64 [ %4, %156 ], [ %4, %152 ], [ %162, %238 ]
%242 = phi double* [ %154, %156 ], [ %154, %152 ], [ %164, %238 ]
%243 = phi double* [ %153, %156 ], [ %153, %152 ], [ %166, %238 ]
%244 = add nsw i64 %241, -1
%245 = and i64 %241, 7
%246 = icmp eq i64 %245, 0
br i1 %246, label %258, label %247
247: ; preds = %240, %247
%248 = phi i64 [ %252, %247 ], [ %241, %240 ]
%249 = phi double* [ %253, %247 ], [ %242, %240 ]
%250 = phi double* [ %255, %247 ], [ %243, %240 ]
%251 = phi i64 [ %256, %247 ], [ 0, %240 ]
%252 = add nsw i64 %248, -1
%253 = getelementptr inbounds double, double* %249, i64 -1
%254 = load double, double* %253
%255 = getelementptr inbounds double, double* %250, i64 -1
store double %254, double* %255
%256 = add i64 %251, 1
%257 = icmp eq i64 %256, %245
br i1 %257, label %258, label %247
258: ; preds = %247, %240
%259 = phi i64 [ %241, %240 ], [ %252, %247 ]
%260 = phi double* [ %242, %240 ], [ %253, %247 ]
%261 = phi double* [ %243, %240 ], [ %255, %247 ]
%262 = icmp ult i64 %244, 7
br i1 %262, label %293, label %263
263: ; preds = %258, %263
%264 = phi i64 [ %288, %263 ], [ %259, %258 ]
%265 = phi double* [ %289, %263 ], [ %260, %258 ]
%266 = phi double* [ %291, %263 ], [ %261, %258 ]
%267 = getelementptr inbounds double, double* %265, i64 -1
%268 = load double, double* %267
%269 = getelementptr inbounds double, double* %266, i64 -1
store double %268, double* %269
%270 = getelementptr inbounds double, double* %265, i64 -2
%271 = load double, double* %270
%272 = getelementptr inbounds double, double* %266, i64 -2
store double %271, double* %272
%273 = getelementptr inbounds double, double* %265, i64 -3
%274 = load double, double* %273
%275 = getelementptr inbounds double, double* %266, i64 -3
store double %274, double* %275
%276 = getelementptr inbounds double, double* %265, i64 -4
%277 = load double, double* %276
%278 = getelementptr inbounds double, double* %266, i64 -4
store double %277, double* %278
%279 = getelementptr inbounds double, double* %265, i64 -5
%280 = load double, double* %279
%281 = getelementptr inbounds double, double* %266, i64 -5
store double %280, double* %281
%282 = getelementptr inbounds double, double* %265, i64 -6
%283 = load double, double* %282
%284 = getelementptr inbounds double, double* %266, i64 -6
store double %283, double* %284
%285 = getelementptr inbounds double, double* %265, i64 -7
%286 = load double, double* %285
%287 = getelementptr inbounds double, double* %266, i64 -7
store double %286, double* %287
%288 = add nsw i64 %264, -8
%289 = getelementptr inbounds double, double* %265, i64 -8
%290 = load double, double* %289
%291 = getelementptr inbounds double, double* %266, i64 -8
store double %290, double* %291
%292 = icmp eq i64 %288, 0
br i1 %292, label %293, label %263
293: ; preds = %258, %263, %116, %121, %238, %96, %151, %7
ret void
}