#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */
typedef int /*<<< orphan*/ __m128i;
typedef int /*<<< orphan*/ __m128d;

/* Variables and functions */
int /*<<< orphan*/ _MM_SHUFFLE(int, int, int /*<<< orphan*/, int);
int /*<<< orphan*/ _mm_add_epi32(int /*<<< orphan*/, int /*<<< orphan*/ const);
int /*<<< orphan*/ _mm_add_pd(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ _mm_and_pd(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ _mm_castsi128_pd(int /*<<< orphan*/);
int /*<<< orphan*/ _mm_cmplt_pd(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ _mm_cvtepi32_pd(int /*<<< orphan*/);
int /*<<< orphan*/ _mm_cvttpd_epi32(int /*<<< orphan*/);
int /*<<< orphan*/ _mm_load_pd(double const *);
int /*<<< orphan*/ _mm_max_pd(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ _mm_min_pd(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ _mm_mul_pd(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ _mm_setr_epi32(int, int, int /*<<< orphan*/,
                                  int /*<<< orphan*/);
int /*<<< orphan*/ _mm_setzero_pd();
int /*<<< orphan*/ _mm_shuffle_epi32(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ _mm_slli_epi32(int /*<<< orphan*/, int);
int /*<<< orphan*/ _mm_store_pd(double *, int /*<<< orphan*/);
int /*<<< orphan*/ _mm_sub_pd(int /*<<< orphan*/, int /*<<< orphan*/);
void remez7_0_log2_sse(double *values, int num) {
  int i;
  __attribute__((aligned(16))) static const double one[2] = {(1.), (1.)};
  __attribute__((aligned(16))) static const double log2e[2] = {
      (1.4426950408889634073599), (1.4426950408889634073599)};
  __attribute__((aligned(16))) static const double maxlog[2] = {
      (7.09782712893383996843e2), (7.09782712893383996843e2)};
  __attribute__((aligned(16))) static const double minlog[2] = {
      (-7.08396418532264106224e2), (-7.08396418532264106224e2)};
  __attribute__((aligned(16))) static const double c1[2] = {
      (6.93145751953125E-1), (6.93145751953125E-1)};
  __attribute__((aligned(16))) static const double c2[2] = {
      (1.42860682030941723212E-6), (1.42860682030941723212E-6)};
  __attribute__((aligned(16))) static const double w7[2] = {
      (2.8177033701883768252768416240498659720165776534637e-4),
      (2.8177033701883768252768416240498659720165776534637e-4)};
  __attribute__((aligned(16))) static const double w6[2] = {
      (1.2890480764261415880540047007217296074165060445915e-3),
      (1.2890480764261415880540047007217296074165060445915e-3)};
  __attribute__((aligned(16))) static const double w5[2] = {
      (8.3937617380265463210782576208636760245107957044397e-3),
      (8.3937617380265463210782576208636760245107957044397e-3)};
  __attribute__((aligned(16))) static const double w4[2] = {
      (4.16466393513638680290956986766301695821268933286258e-2),
      (4.16466393513638680290956986766301695821268933286258e-2)};
  __attribute__((aligned(16))) static const double w3[2] = {
      (0.16667025104576204064704670601843171167692234960251),
      (0.16667025104576204064704670601843171167692234960251)};
  __attribute__((aligned(16))) static const double w2[2] = {
      (0.49999968588211828322575537372426392301459912262932),
      (0.49999968588211828322575537372426392301459912262932)};
  __attribute__((aligned(16))) static const double w1[2] = {
      (1.00000001047169007093329328214028329840435313172085),
      (1.00000001047169007093329328214028329840435313172085)};
  __attribute__((aligned(16))) static const double w0[2] = {
      (0.99999999994275232965232540108706952362552348759169),
      (0.99999999994275232965232540108706952362552348759169)};
  const __m128i offset = _mm_setr_epi32(1023, 1023, 0, 0);
  for (i = 0; i < num; i += 4) {
    __m128i k1, k2;
    __m128d p1, p2;
    __m128d a1, a2;
    __m128d xmm0, xmm1;
    __m128d x1, x2;
    xmm0 = _mm_load_pd(maxlog);
    xmm1 = _mm_load_pd(minlog);
    x1 = _mm_load_pd(values + i);
    x2 = _mm_load_pd(values + i + 2);
    x1 = _mm_min_pd(x1, xmm0);
    x2 = _mm_min_pd(x2, xmm0);
    x1 = _mm_max_pd(x1, xmm1);
    x2 = _mm_max_pd(x2, xmm1);
    xmm0 = _mm_load_pd(log2e);
    xmm1 = _mm_setzero_pd();
    a1 = _mm_mul_pd(x1, xmm0);
    a2 = _mm_mul_pd(x2, xmm0);
    p1 = _mm_cmplt_pd(a1, xmm1);
    p2 = _mm_cmplt_pd(a2, xmm1);
    xmm0 = _mm_load_pd(one);
    p1 = _mm_and_pd(p1, xmm0);
    p2 = _mm_and_pd(p2, xmm0);
    a1 = _mm_sub_pd(a1, p1);
    a2 = _mm_sub_pd(a2, p2);
    k1 = _mm_cvttpd_epi32(a1);
    k2 = _mm_cvttpd_epi32(a2);
    p1 = _mm_cvtepi32_pd(k1);
    p2 = _mm_cvtepi32_pd(k2);
    xmm0 = _mm_load_pd(c1);
    xmm1 = _mm_load_pd(c2);
    a1 = _mm_mul_pd(p1, xmm0);
    a2 = _mm_mul_pd(p2, xmm0);
    x1 = _mm_sub_pd(x1, a1);
    x2 = _mm_sub_pd(x2, a2);
    a1 = _mm_mul_pd(p1, xmm1);
    a2 = _mm_mul_pd(p2, xmm1);
    x1 = _mm_sub_pd(x1, a1);
    x2 = _mm_sub_pd(x2, a2);
    xmm0 = _mm_load_pd(w7);
    xmm1 = _mm_load_pd(w6);
    a1 = _mm_mul_pd(x1, xmm0);
    a2 = _mm_mul_pd(x2, xmm0);
    a1 = _mm_add_pd(a1, xmm1);
    a2 = _mm_add_pd(a2, xmm1);
    xmm0 = _mm_load_pd(w5);
    xmm1 = _mm_load_pd(w4);
    a1 = _mm_mul_pd(a1, x1);
    a2 = _mm_mul_pd(a2, x2);
    a1 = _mm_add_pd(a1, xmm0);
    a2 = _mm_add_pd(a2, xmm0);
    a1 = _mm_mul_pd(a1, x1);
    a2 = _mm_mul_pd(a2, x2);
    a1 = _mm_add_pd(a1, xmm1);
    a2 = _mm_add_pd(a2, xmm1);
    xmm0 = _mm_load_pd(w3);
    xmm1 = _mm_load_pd(w2);
    a1 = _mm_mul_pd(a1, x1);
    a2 = _mm_mul_pd(a2, x2);
    a1 = _mm_add_pd(a1, xmm0);
    a2 = _mm_add_pd(a2, xmm0);
    a1 = _mm_mul_pd(a1, x1);
    a2 = _mm_mul_pd(a2, x2);
    a1 = _mm_add_pd(a1, xmm1);
    a2 = _mm_add_pd(a2, xmm1);
    xmm0 = _mm_load_pd(w1);
    xmm1 = _mm_load_pd(w0);
    a1 = _mm_mul_pd(a1, x1);
    a2 = _mm_mul_pd(a2, x2);
    a1 = _mm_add_pd(a1, xmm0);
    a2 = _mm_add_pd(a2, xmm0);
    a1 = _mm_mul_pd(a1, x1);
    a2 = _mm_mul_pd(a2, x2);
    a1 = _mm_add_pd(a1, xmm1);
    a2 = _mm_add_pd(a2, xmm1);
    k1 = _mm_add_epi32(k1, offset);
    k2 = _mm_add_epi32(k2, offset);
    k1 = _mm_slli_epi32(k1, 20);
    k2 = _mm_slli_epi32(k2, 20);
    k1 = _mm_shuffle_epi32(k1, _MM_SHUFFLE(1, 3, 0, 2));
    k2 = _mm_shuffle_epi32(k2, _MM_SHUFFLE(1, 3, 0, 2));
    p1 = _mm_castsi128_pd(k1);
    p2 = _mm_castsi128_pd(k2);
    a1 = _mm_mul_pd(a1, p1);
    a2 = _mm_mul_pd(a2, p2);
    _mm_store_pd(values + i, a1);
    _mm_store_pd(values + i + 2, a2);
  }
}


x86 assembly (clang, -O0):
<remez7_0_log2_sse>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    $0x3ff,%esi
xor    %ecx,%ecx
mov    %esi,%edi
mov    %ecx,%edx
call   1140 <_mm_setr_epi32@plt>
mov    %eax,-0x14(%rbp)
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    172f <remez7_0_log2_sse+0x50f>
lea    0xdc4(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,-0x30(%rbp)
lea    0xdc5(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,-0x34(%rbp)
mov    -0x8(%rbp),%rdi
movslq -0x10(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,-0x38(%rbp)
mov    -0x8(%rbp),%rdi
movslq -0x10(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rdi
add    $0x10,%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,-0x3c(%rbp)
mov    -0x38(%rbp),%edi
mov    -0x30(%rbp),%esi
call   10f0 <_mm_min_pd@plt>
mov    %eax,-0x38(%rbp)
mov    -0x3c(%rbp),%edi
mov    -0x30(%rbp),%esi
call   10f0 <_mm_min_pd@plt>
mov    %eax,-0x3c(%rbp)
mov    -0x38(%rbp),%edi
mov    -0x34(%rbp),%esi
call   1100 <_mm_max_pd@plt>
mov    %eax,-0x38(%rbp)
mov    -0x3c(%rbp),%edi
mov    -0x34(%rbp),%esi
call   1100 <_mm_max_pd@plt>
mov    %eax,-0x3c(%rbp)
lea    0xd2c(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,-0x30(%rbp)
mov    $0x0,%al
call   1120 <_mm_setzero_pd@plt>
mov    %eax,-0x34(%rbp)
mov    -0x38(%rbp),%edi
mov    -0x30(%rbp),%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,-0x28(%rbp)
mov    -0x3c(%rbp),%edi
mov    -0x30(%rbp),%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x28(%rbp),%edi
mov    -0x34(%rbp),%esi
call   1050 <_mm_cmplt_pd@plt>
mov    %eax,-0x20(%rbp)
mov    -0x2c(%rbp),%edi
mov    -0x34(%rbp),%esi
call   1050 <_mm_cmplt_pd@plt>
mov    %eax,-0x24(%rbp)
lea    0xccb(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,-0x30(%rbp)
mov    -0x20(%rbp),%edi
mov    -0x30(%rbp),%esi
call   1070 <_mm_and_pd@plt>
mov    %eax,-0x20(%rbp)
mov    -0x24(%rbp),%edi
mov    -0x30(%rbp),%esi
call   1070 <_mm_and_pd@plt>
mov    %eax,-0x24(%rbp)
mov    -0x28(%rbp),%edi
mov    -0x20(%rbp),%esi
call   1060 <_mm_sub_pd@plt>
mov    %eax,-0x28(%rbp)
mov    -0x2c(%rbp),%edi
mov    -0x24(%rbp),%esi
call   1060 <_mm_sub_pd@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x28(%rbp),%edi
call   1090 <_mm_cvttpd_epi32@plt>
mov    %eax,-0x18(%rbp)
mov    -0x2c(%rbp),%edi
call   1090 <_mm_cvttpd_epi32@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x18(%rbp),%edi
call   10c0 <_mm_cvtepi32_pd@plt>
mov    %eax,-0x20(%rbp)
mov    -0x1c(%rbp),%edi
call   10c0 <_mm_cvtepi32_pd@plt>
mov    %eax,-0x24(%rbp)
lea    0xc98(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,-0x30(%rbp)
lea    0xc99(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,-0x34(%rbp)
mov    -0x20(%rbp),%edi
mov    -0x30(%rbp),%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,-0x28(%rbp)
mov    -0x24(%rbp),%edi
mov    -0x30(%rbp),%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x38(%rbp),%edi
mov    -0x28(%rbp),%esi
call   1060 <_mm_sub_pd@plt>
mov    %eax,-0x38(%rbp)
mov    -0x3c(%rbp),%edi
mov    -0x2c(%rbp),%esi
call   1060 <_mm_sub_pd@plt>
mov    %eax,-0x3c(%rbp)
mov    -0x20(%rbp),%edi
mov    -0x34(%rbp),%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,-0x28(%rbp)
mov    -0x24(%rbp),%edi
mov    -0x34(%rbp),%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x38(%rbp),%edi
mov    -0x28(%rbp),%esi
call   1060 <_mm_sub_pd@plt>
mov    %eax,-0x38(%rbp)
mov    -0x3c(%rbp),%edi
mov    -0x2c(%rbp),%esi
call   1060 <_mm_sub_pd@plt>
mov    %eax,-0x3c(%rbp)
lea    0xc2a(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,-0x30(%rbp)
lea    0xc2b(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,-0x34(%rbp)
mov    -0x38(%rbp),%edi
mov    -0x30(%rbp),%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,-0x28(%rbp)
mov    -0x3c(%rbp),%edi
mov    -0x30(%rbp),%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x28(%rbp),%edi
mov    -0x34(%rbp),%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,-0x28(%rbp)
mov    -0x2c(%rbp),%edi
mov    -0x34(%rbp),%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,-0x2c(%rbp)
lea    0xbf4(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,-0x30(%rbp)
lea    0xbf5(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,-0x34(%rbp)
mov    -0x28(%rbp),%edi
mov    -0x38(%rbp),%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,-0x28(%rbp)
mov    -0x2c(%rbp),%edi
mov    -0x3c(%rbp),%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x28(%rbp),%edi
mov    -0x30(%rbp),%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,-0x28(%rbp)
mov    -0x2c(%rbp),%edi
mov    -0x30(%rbp),%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x28(%rbp),%edi
mov    -0x38(%rbp),%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,-0x28(%rbp)
mov    -0x2c(%rbp),%edi
mov    -0x3c(%rbp),%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x28(%rbp),%edi
mov    -0x34(%rbp),%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,-0x28(%rbp)
mov    -0x2c(%rbp),%edi
mov    -0x34(%rbp),%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,-0x2c(%rbp)
lea    0xb86(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,-0x30(%rbp)
lea    0xb87(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,-0x34(%rbp)
mov    -0x28(%rbp),%edi
mov    -0x38(%rbp),%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,-0x28(%rbp)
mov    -0x2c(%rbp),%edi
mov    -0x3c(%rbp),%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x28(%rbp),%edi
mov    -0x30(%rbp),%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,-0x28(%rbp)
mov    -0x2c(%rbp),%edi
mov    -0x30(%rbp),%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x28(%rbp),%edi
mov    -0x38(%rbp),%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,-0x28(%rbp)
mov    -0x2c(%rbp),%edi
mov    -0x3c(%rbp),%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x28(%rbp),%edi
mov    -0x34(%rbp),%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,-0x28(%rbp)
mov    -0x2c(%rbp),%edi
mov    -0x34(%rbp),%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,-0x2c(%rbp)
lea    0xb18(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,-0x30(%rbp)
lea    0xb19(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,-0x34(%rbp)
mov    -0x28(%rbp),%edi
mov    -0x38(%rbp),%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,-0x28(%rbp)
mov    -0x2c(%rbp),%edi
mov    -0x3c(%rbp),%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x28(%rbp),%edi
mov    -0x30(%rbp),%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,-0x28(%rbp)
mov    -0x2c(%rbp),%edi
mov    -0x30(%rbp),%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x28(%rbp),%edi
mov    -0x38(%rbp),%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,-0x28(%rbp)
mov    -0x2c(%rbp),%edi
mov    -0x3c(%rbp),%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x28(%rbp),%edi
mov    -0x34(%rbp),%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,-0x28(%rbp)
mov    -0x2c(%rbp),%edi
mov    -0x34(%rbp),%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x18(%rbp),%edi
mov    -0x14(%rbp),%esi
call   1080 <_mm_add_epi32@plt>
mov    %eax,-0x18(%rbp)
mov    -0x1c(%rbp),%edi
mov    -0x14(%rbp),%esi
call   1080 <_mm_add_epi32@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x18(%rbp),%edi
mov    $0x14,%esi
call   1110 <_mm_slli_epi32@plt>
mov    %eax,-0x18(%rbp)
mov    -0x1c(%rbp),%edi
mov    $0x14,%esi
call   1110 <_mm_slli_epi32@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x18(%rbp),%eax
mov    %eax,-0x44(%rbp)
mov    $0x1,%edi
mov    $0x3,%esi
xor    %edx,%edx
mov    $0x2,%ecx
call   1040 <_MM_SHUFFLE@plt>
mov    -0x44(%rbp),%edi
mov    %eax,%esi
call   10b0 <_mm_shuffle_epi32@plt>
mov    %eax,-0x18(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,-0x40(%rbp)
mov    $0x1,%edi
mov    $0x3,%esi
xor    %edx,%edx
mov    $0x2,%ecx
call   1040 <_MM_SHUFFLE@plt>
mov    -0x40(%rbp),%edi
mov    %eax,%esi
call   10b0 <_mm_shuffle_epi32@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x18(%rbp),%edi
call   10e0 <_mm_castsi128_pd@plt>
mov    %eax,-0x20(%rbp)
mov    -0x1c(%rbp),%edi
call   10e0 <_mm_castsi128_pd@plt>
mov    %eax,-0x24(%rbp)
mov    -0x28(%rbp),%edi
mov    -0x20(%rbp),%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,-0x28(%rbp)
mov    -0x2c(%rbp),%edi
mov    -0x24(%rbp),%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x8(%rbp),%rdi
movslq -0x10(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rdi
mov    -0x28(%rbp),%esi
call   1030 <_mm_store_pd@plt>
mov    -0x8(%rbp),%rdi
movslq -0x10(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rdi
add    $0x10,%rdi
mov    -0x2c(%rbp),%esi
call   1030 <_mm_store_pd@plt>
mov    -0x10(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x10(%rbp)
jmp    1249 <remez7_0_log2_sse+0x29>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<remez7_0_log2_sse>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %esi,%ebx
mov    %rdi,%r12
mov    $0x3ff,%edi
mov    $0x3ff,%esi
xor    %edx,%edx
xor    %ecx,%ecx
call   1140 <_mm_setr_epi32@plt>
test   %ebx,%ebx
jle    16e7 <remez7_0_log2_sse+0x4c7>
mov    %eax,%r13d
xor    %eax,%eax
mov    %ebx,0x18(%rsp)
mov    %r13d,0x14(%rsp)
nopl   0x0(%rax)
mov    %eax,0x24(%rsp)
mov    %r12,0x30(%rsp)
lea    0xdb0(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,%r15d
lea    0xdb1(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,%r14d
mov    %r12,%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,%ebx
lea    0x10(%r12),%rdi
mov    %rdi,0x28(%rsp)
call   10d0 <_mm_load_pd@plt>
mov    %eax,%ebp
mov    %ebx,%edi
mov    %r15d,%esi
call   10f0 <_mm_min_pd@plt>
mov    %eax,%ebx
mov    %ebp,%edi
mov    %r15d,%esi
call   10f0 <_mm_min_pd@plt>
mov    %eax,%ebp
mov    %ebx,%edi
mov    %r14d,%esi
call   1100 <_mm_max_pd@plt>
mov    %eax,%ebx
mov    %eax,0x10(%rsp)
mov    %ebp,%edi
mov    %r14d,%esi
call   1100 <_mm_max_pd@plt>
mov    %eax,%r15d
mov    %eax,0xc(%rsp)
lea    0xd2e(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,%ebp
xor    %eax,%eax
call   1120 <_mm_setzero_pd@plt>
mov    %eax,%r14d
mov    %ebx,%edi
mov    %ebp,%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,%r12d
mov    %r15d,%edi
mov    %ebp,%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,%r15d
mov    %r12d,%edi
mov    %r14d,%esi
call   1050 <_mm_cmplt_pd@plt>
mov    %eax,%r13d
mov    %r15d,%edi
mov    %r14d,%esi
call   1050 <_mm_cmplt_pd@plt>
mov    %eax,%ebx
lea    0xcd2(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,%r14d
mov    %r13d,%edi
mov    %eax,%esi
call   1070 <_mm_and_pd@plt>
mov    %eax,%ebp
mov    %ebx,%edi
mov    %r14d,%esi
call   1070 <_mm_and_pd@plt>
mov    %eax,%ebx
mov    %r12d,%edi
mov    %ebp,%esi
call   1060 <_mm_sub_pd@plt>
mov    %eax,%ebp
mov    %r15d,%edi
mov    %ebx,%esi
call   1060 <_mm_sub_pd@plt>
mov    %eax,%ebx
mov    %ebp,%edi
call   1090 <_mm_cvttpd_epi32@plt>
mov    %eax,%ebp
mov    %eax,0x1c(%rsp)
mov    %ebx,%edi
call   1090 <_mm_cvttpd_epi32@plt>
mov    %eax,%ebx
mov    %eax,0x20(%rsp)
mov    %ebp,%edi
call   10c0 <_mm_cvtepi32_pd@plt>
mov    %eax,%r15d
mov    %ebx,%edi
call   10c0 <_mm_cvtepi32_pd@plt>
mov    %eax,%r14d
lea    0xca5(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,%ebx
lea    0xca7(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,%r12d
mov    %r15d,%edi
mov    %ebx,%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,%ebp
mov    %r14d,%edi
mov    %ebx,%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,%ebx
mov    0x10(%rsp),%edi
mov    %ebp,%esi
call   1060 <_mm_sub_pd@plt>
mov    %eax,%ebp
mov    0xc(%rsp),%edi
mov    %ebx,%esi
call   1060 <_mm_sub_pd@plt>
mov    %eax,%r13d
mov    %r15d,%edi
mov    %r12d,%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,%ebx
mov    %r14d,%edi
mov    %r12d,%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,%r14d
mov    %ebp,%edi
mov    %ebx,%esi
call   1060 <_mm_sub_pd@plt>
mov    %eax,%ebp
mov    %eax,0x10(%rsp)
mov    %r13d,%edi
mov    %r14d,%esi
call   1060 <_mm_sub_pd@plt>
mov    %eax,%r12d
lea    0xc3d(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,%ebx
lea    0xc3f(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,%r14d
mov    %ebp,%edi
mov    %ebx,%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,%r15d
mov    %r12d,%edi
mov    %r12d,%ebp
mov    %ebx,%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,%ebx
mov    %r15d,%edi
mov    %r14d,%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,%r15d
mov    %ebx,%edi
mov    %r14d,%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,%r14d
lea    0xc0a(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,%r12d
lea    0xc0b(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,%r13d
mov    %r15d,%edi
mov    0x10(%rsp),%ebx
mov    %ebx,%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,%r15d
mov    %r14d,%edi
mov    %ebp,0xc(%rsp)
mov    %ebp,%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,%r14d
mov    %r15d,%edi
mov    %r12d,%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,%r15d
mov    %r14d,%edi
mov    %r12d,%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,%r14d
mov    %r15d,%edi
mov    %ebx,%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,%r15d
mov    %r14d,%edi
mov    %ebp,%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,%ebx
mov    %r15d,%edi
mov    %r13d,%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,%ebp
mov    %ebx,%edi
mov    %r13d,%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,%r15d
lea    0xb9b(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,%r12d
lea    0xb9c(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,%r14d
mov    %ebp,%edi
mov    0x10(%rsp),%r13d
mov    %r13d,%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,%ebp
mov    %r15d,%edi
mov    0xc(%rsp),%ebx
mov    %ebx,%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,%r15d
mov    %ebp,%edi
mov    %r12d,%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,%ebp
mov    %r15d,%edi
mov    %r12d,%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,%r15d
mov    %ebp,%edi
mov    %r13d,%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,%ebp
mov    %r15d,%edi
mov    %ebx,%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,%ebx
mov    %ebp,%edi
mov    %r14d,%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,%ebp
mov    %ebx,%edi
mov    %r14d,%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,%r14d
lea    0xb30(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,%r12d
lea    0xb31(%rip),%rdi
call   10d0 <_mm_load_pd@plt>
mov    %eax,%r15d
mov    %ebp,%edi
mov    %r13d,%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,%ebp
mov    %r14d,%edi
mov    0xc(%rsp),%r14d
mov    %r14d,%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,%ebx
mov    %ebp,%edi
mov    %r12d,%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,%ebp
mov    %ebx,%edi
mov    %r12d,%esi
mov    0x30(%rsp),%r12
call   10a0 <_mm_add_pd@plt>
mov    %eax,%ebx
mov    %ebp,%edi
mov    %r13d,%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,%ebp
mov    %ebx,%edi
mov    %r14d,%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,%ebx
mov    %ebp,%edi
mov    %r15d,%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,%r14d
mov    %ebx,%edi
mov    %r15d,%esi
call   10a0 <_mm_add_pd@plt>
mov    %eax,%r15d
mov    0x1c(%rsp),%edi
mov    0x14(%rsp),%ebp
mov    %ebp,%esi
call   1080 <_mm_add_epi32@plt>
mov    %eax,%ebx
mov    0x20(%rsp),%edi
mov    %ebp,%esi
call   1080 <_mm_add_epi32@plt>
mov    %eax,%ebp
mov    %ebx,%edi
mov    $0x14,%esi
call   1110 <_mm_slli_epi32@plt>
mov    %eax,%ebx
mov    %ebp,%edi
mov    $0x14,%esi
call   1110 <_mm_slli_epi32@plt>
mov    %eax,%ebp
mov    $0x1,%edi
mov    $0x3,%esi
xor    %edx,%edx
mov    $0x2,%ecx
call   1040 <_MM_SHUFFLE@plt>
mov    %ebx,%edi
mov    %eax,%esi
call   10b0 <_mm_shuffle_epi32@plt>
mov    %eax,%ebx
mov    $0x1,%edi
mov    $0x3,%esi
xor    %edx,%edx
mov    $0x2,%ecx
call   1040 <_MM_SHUFFLE@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   10b0 <_mm_shuffle_epi32@plt>
mov    %eax,%ebp
mov    %ebx,%edi
call   10e0 <_mm_castsi128_pd@plt>
mov    %eax,%ebx
mov    %ebp,%edi
call   10e0 <_mm_castsi128_pd@plt>
mov    %eax,%ebp
mov    %r14d,%edi
mov    %ebx,%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,%ebx
mov    %r15d,%edi
mov    %ebp,%esi
call   1130 <_mm_mul_pd@plt>
mov    %eax,%ebp
mov    %r12,%rdi
mov    %ebx,%esi
mov    0x18(%rsp),%ebx
call   1030 <_mm_store_pd@plt>
mov    0x28(%rsp),%rdi
mov    %ebp,%esi
call   1030 <_mm_store_pd@plt>
mov    0x24(%rsp),%eax
add    $0x20,%r12
add    $0x4,%eax
cmp    %ebx,%eax
jl     1260 <remez7_0_log2_sse+0x40>
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@remez7_0_log2_sse.one = internal constant [2 x double] [double 1.000000e+00, double 1.000000e+00]
@remez7_0_log2_sse.log2e = internal constant [2 x double] [double 0x3FF71547652B82FE, double 0x3FF71547652B82FE]
@remez7_0_log2_sse.maxlog = internal constant [2 x double] [double 0x40862E42FEFA39EF, double 0x40862E42FEFA39EF]
@remez7_0_log2_sse.minlog = internal constant [2 x double] [double 0xC086232BDD7ABCD2, double 0xC086232BDD7ABCD2]
@remez7_0_log2_sse.c1 = internal constant [2 x double] [double 0x3FE62E4000000000, double 0x3FE62E4000000000]
@remez7_0_log2_sse.c2 = internal constant [2 x double] [double 0x3EB7F7D1CF79ABCA, double 0x3EB7F7D1CF79ABCA]
@remez7_0_log2_sse.w7 = internal constant [2 x double] [double 0x3F32775261EA218B, double 0x3F32775261EA218B]
@remez7_0_log2_sse.w6 = internal constant [2 x double] [double 0x3F551EA8D532BDB4, double 0x3F551EA8D532BDB4]
@remez7_0_log2_sse.w5 = internal constant [2 x double] [double 0x3F8130BFA13DEE8A, double 0x3F8130BFA13DEE8A]
@remez7_0_log2_sse.w4 = internal constant [2 x double] [double 0x3FA552B554013C78, double 0x3FA552B554013C78]
@remez7_0_log2_sse.w3 = internal constant [2 x double] [double 0x3FC5557366BA9488, double 0x3FC5557366BA9488]
@remez7_0_log2_sse.w2 = internal constant [2 x double] [double 0x3FDFFFFEAEB7EF24, double 0x3FDFFFFEAEB7EF24]
@remez7_0_log2_sse.w1 = internal constant [2 x double] [double 0x3FF0000002CF9BEC, double 0x3FF0000002CF9BEC]
@remez7_0_log2_sse.w0 = internal constant [2 x double] [double 0x3FEFFFFFFFF821C7, double 0x3FEFFFFFFFF821C7]
define void @remez7_0_log2_sse(double* %0, i32 %1) {
%3 = alloca double*
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
store double* %0, double** %3
store i32 %1, i32* %4
%17 = call i32 @_mm_setr_epi32(i32 1023, i32 1023, i32 0, i32 0)
store i32 %17, i32* %6
store i32 0, i32* %5
br label %18
18: ; preds = %240, %2
%19 = load i32, i32* %5
%20 = load i32, i32* %4
%21 = icmp slt i32 %19, %20
br i1 %21, label %22, label %243
22: ; preds = %18
%23 = call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez7_0_log2_sse.maxlog, i64 0, i64 0))
store i32 %23, i32* %13
%24 = call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez7_0_log2_sse.minlog, i64 0, i64 0))
store i32 %24, i32* %14
%25 = load double*, double** %3
%26 = load i32, i32* %5
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds double, double* %25, i64 %27
%29 = call i32 @_mm_load_pd(double* %28)
store i32 %29, i32* %15
%30 = load double*, double** %3
%31 = load i32, i32* %5
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds double, double* %30, i64 %32
%34 = getelementptr inbounds double, double* %33, i64 2
%35 = call i32 @_mm_load_pd(double* %34)
store i32 %35, i32* %16
%36 = load i32, i32* %15
%37 = load i32, i32* %13
%38 = call i32 @_mm_min_pd(i32 %36, i32 %37)
store i32 %38, i32* %15
%39 = load i32, i32* %16
%40 = load i32, i32* %13
%41 = call i32 @_mm_min_pd(i32 %39, i32 %40)
store i32 %41, i32* %16
%42 = load i32, i32* %15
%43 = load i32, i32* %14
%44 = call i32 @_mm_max_pd(i32 %42, i32 %43)
store i32 %44, i32* %15
%45 = load i32, i32* %16
%46 = load i32, i32* %14
%47 = call i32 @_mm_max_pd(i32 %45, i32 %46)
store i32 %47, i32* %16
%48 = call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez7_0_log2_sse.log2e, i64 0, i64 0))
store i32 %48, i32* %13
%49 = call i32 (...) @_mm_setzero_pd()
store i32 %49, i32* %14
%50 = load i32, i32* %15
%51 = load i32, i32* %13
%52 = call i32 @_mm_mul_pd(i32 %50, i32 %51)
store i32 %52, i32* %11
%53 = load i32, i32* %16
%54 = load i32, i32* %13
%55 = call i32 @_mm_mul_pd(i32 %53, i32 %54)
store i32 %55, i32* %12
%56 = load i32, i32* %11
%57 = load i32, i32* %14
%58 = call i32 @_mm_cmplt_pd(i32 %56, i32 %57)
store i32 %58, i32* %9
%59 = load i32, i32* %12
%60 = load i32, i32* %14
%61 = call i32 @_mm_cmplt_pd(i32 %59, i32 %60)
store i32 %61, i32* %10
%62 = call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez7_0_log2_sse.one, i64 0, i64 0))
store i32 %62, i32* %13
%63 = load i32, i32* %9
%64 = load i32, i32* %13
%65 = call i32 @_mm_and_pd(i32 %63, i32 %64)
store i32 %65, i32* %9
%66 = load i32, i32* %10
%67 = load i32, i32* %13
%68 = call i32 @_mm_and_pd(i32 %66, i32 %67)
store i32 %68, i32* %10
%69 = load i32, i32* %11
%70 = load i32, i32* %9
%71 = call i32 @_mm_sub_pd(i32 %69, i32 %70)
store i32 %71, i32* %11
%72 = load i32, i32* %12
%73 = load i32, i32* %10
%74 = call i32 @_mm_sub_pd(i32 %72, i32 %73)
store i32 %74, i32* %12
%75 = load i32, i32* %11
%76 = call i32 @_mm_cvttpd_epi32(i32 %75)
store i32 %76, i32* %7
%77 = load i32, i32* %12
%78 = call i32 @_mm_cvttpd_epi32(i32 %77)
store i32 %78, i32* %8
%79 = load i32, i32* %7
%80 = call i32 @_mm_cvtepi32_pd(i32 %79)
store i32 %80, i32* %9
%81 = load i32, i32* %8
%82 = call i32 @_mm_cvtepi32_pd(i32 %81)
store i32 %82, i32* %10
%83 = call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez7_0_log2_sse.c1, i64 0, i64 0))
store i32 %83, i32* %13
%84 = call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez7_0_log2_sse.c2, i64 0, i64 0))
store i32 %84, i32* %14
%85 = load i32, i32* %9
%86 = load i32, i32* %13
%87 = call i32 @_mm_mul_pd(i32 %85, i32 %86)
store i32 %87, i32* %11
%88 = load i32, i32* %10
%89 = load i32, i32* %13
%90 = call i32 @_mm_mul_pd(i32 %88, i32 %89)
store i32 %90, i32* %12
%91 = load i32, i32* %15
%92 = load i32, i32* %11
%93 = call i32 @_mm_sub_pd(i32 %91, i32 %92)
store i32 %93, i32* %15
%94 = load i32, i32* %16
%95 = load i32, i32* %12
%96 = call i32 @_mm_sub_pd(i32 %94, i32 %95)
store i32 %96, i32* %16
%97 = load i32, i32* %9
%98 = load i32, i32* %14
%99 = call i32 @_mm_mul_pd(i32 %97, i32 %98)
store i32 %99, i32* %11
%100 = load i32, i32* %10
%101 = load i32, i32* %14
%102 = call i32 @_mm_mul_pd(i32 %100, i32 %101)
store i32 %102, i32* %12
%103 = load i32, i32* %15
%104 = load i32, i32* %11
%105 = call i32 @_mm_sub_pd(i32 %103, i32 %104)
store i32 %105, i32* %15
%106 = load i32, i32* %16
%107 = load i32, i32* %12
%108 = call i32 @_mm_sub_pd(i32 %106, i32 %107)
store i32 %108, i32* %16
%109 = call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez7_0_log2_sse.w7, i64 0, i64 0))
store i32 %109, i32* %13
%110 = call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez7_0_log2_sse.w6, i64 0, i64 0))
store i32 %110, i32* %14
%111 = load i32, i32* %15
%112 = load i32, i32* %13
%113 = call i32 @_mm_mul_pd(i32 %111, i32 %112)
store i32 %113, i32* %11
%114 = load i32, i32* %16
%115 = load i32, i32* %13
%116 = call i32 @_mm_mul_pd(i32 %114, i32 %115)
store i32 %116, i32* %12
%117 = load i32, i32* %11
%118 = load i32, i32* %14
%119 = call i32 @_mm_add_pd(i32 %117, i32 %118)
store i32 %119, i32* %11
%120 = load i32, i32* %12
%121 = load i32, i32* %14
%122 = call i32 @_mm_add_pd(i32 %120, i32 %121)
store i32 %122, i32* %12
%123 = call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez7_0_log2_sse.w5, i64 0, i64 0))
store i32 %123, i32* %13
%124 = call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez7_0_log2_sse.w4, i64 0, i64 0))
store i32 %124, i32* %14
%125 = load i32, i32* %11
%126 = load i32, i32* %15
%127 = call i32 @_mm_mul_pd(i32 %125, i32 %126)
store i32 %127, i32* %11
%128 = load i32, i32* %12
%129 = load i32, i32* %16
%130 = call i32 @_mm_mul_pd(i32 %128, i32 %129)
store i32 %130, i32* %12
%131 = load i32, i32* %11
%132 = load i32, i32* %13
%133 = call i32 @_mm_add_pd(i32 %131, i32 %132)
store i32 %133, i32* %11
%134 = load i32, i32* %12
%135 = load i32, i32* %13
%136 = call i32 @_mm_add_pd(i32 %134, i32 %135)
store i32 %136, i32* %12
%137 = load i32, i32* %11
%138 = load i32, i32* %15
%139 = call i32 @_mm_mul_pd(i32 %137, i32 %138)
store i32 %139, i32* %11
%140 = load i32, i32* %12
%141 = load i32, i32* %16
%142 = call i32 @_mm_mul_pd(i32 %140, i32 %141)
store i32 %142, i32* %12
%143 = load i32, i32* %11
%144 = load i32, i32* %14
%145 = call i32 @_mm_add_pd(i32 %143, i32 %144)
store i32 %145, i32* %11
%146 = load i32, i32* %12
%147 = load i32, i32* %14
%148 = call i32 @_mm_add_pd(i32 %146, i32 %147)
store i32 %148, i32* %12
%149 = call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez7_0_log2_sse.w3, i64 0, i64 0))
store i32 %149, i32* %13
%150 = call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez7_0_log2_sse.w2, i64 0, i64 0))
store i32 %150, i32* %14
%151 = load i32, i32* %11
%152 = load i32, i32* %15
%153 = call i32 @_mm_mul_pd(i32 %151, i32 %152)
store i32 %153, i32* %11
%154 = load i32, i32* %12
%155 = load i32, i32* %16
%156 = call i32 @_mm_mul_pd(i32 %154, i32 %155)
store i32 %156, i32* %12
%157 = load i32, i32* %11
%158 = load i32, i32* %13
%159 = call i32 @_mm_add_pd(i32 %157, i32 %158)
store i32 %159, i32* %11
%160 = load i32, i32* %12
%161 = load i32, i32* %13
%162 = call i32 @_mm_add_pd(i32 %160, i32 %161)
store i32 %162, i32* %12
%163 = load i32, i32* %11
%164 = load i32, i32* %15
%165 = call i32 @_mm_mul_pd(i32 %163, i32 %164)
store i32 %165, i32* %11
%166 = load i32, i32* %12
%167 = load i32, i32* %16
%168 = call i32 @_mm_mul_pd(i32 %166, i32 %167)
store i32 %168, i32* %12
%169 = load i32, i32* %11
%170 = load i32, i32* %14
%171 = call i32 @_mm_add_pd(i32 %169, i32 %170)
store i32 %171, i32* %11
%172 = load i32, i32* %12
%173 = load i32, i32* %14
%174 = call i32 @_mm_add_pd(i32 %172, i32 %173)
store i32 %174, i32* %12
%175 = call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez7_0_log2_sse.w1, i64 0, i64 0))
store i32 %175, i32* %13
%176 = call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez7_0_log2_sse.w0, i64 0, i64 0))
store i32 %176, i32* %14
%177 = load i32, i32* %11
%178 = load i32, i32* %15
%179 = call i32 @_mm_mul_pd(i32 %177, i32 %178)
store i32 %179, i32* %11
%180 = load i32, i32* %12
%181 = load i32, i32* %16
%182 = call i32 @_mm_mul_pd(i32 %180, i32 %181)
store i32 %182, i32* %12
%183 = load i32, i32* %11
%184 = load i32, i32* %13
%185 = call i32 @_mm_add_pd(i32 %183, i32 %184)
store i32 %185, i32* %11
%186 = load i32, i32* %12
%187 = load i32, i32* %13
%188 = call i32 @_mm_add_pd(i32 %186, i32 %187)
store i32 %188, i32* %12
%189 = load i32, i32* %11
%190 = load i32, i32* %15
%191 = call i32 @_mm_mul_pd(i32 %189, i32 %190)
store i32 %191, i32* %11
%192 = load i32, i32* %12
%193 = load i32, i32* %16
%194 = call i32 @_mm_mul_pd(i32 %192, i32 %193)
store i32 %194, i32* %12
%195 = load i32, i32* %11
%196 = load i32, i32* %14
%197 = call i32 @_mm_add_pd(i32 %195, i32 %196)
store i32 %197, i32* %11
%198 = load i32, i32* %12
%199 = load i32, i32* %14
%200 = call i32 @_mm_add_pd(i32 %198, i32 %199)
store i32 %200, i32* %12
%201 = load i32, i32* %7
%202 = load i32, i32* %6
%203 = call i32 @_mm_add_epi32(i32 %201, i32 %202)
store i32 %203, i32* %7
%204 = load i32, i32* %8
%205 = load i32, i32* %6
%206 = call i32 @_mm_add_epi32(i32 %204, i32 %205)
store i32 %206, i32* %8
%207 = load i32, i32* %7
%208 = call i32 @_mm_slli_epi32(i32 %207, i32 20)
store i32 %208, i32* %7
%209 = load i32, i32* %8
%210 = call i32 @_mm_slli_epi32(i32 %209, i32 20)
store i32 %210, i32* %8
%211 = load i32, i32* %7
%212 = call i32 @_MM_SHUFFLE(i32 1, i32 3, i32 0, i32 2)
%213 = call i32 @_mm_shuffle_epi32(i32 %211, i32 %212)
store i32 %213, i32* %7
%214 = load i32, i32* %8
%215 = call i32 @_MM_SHUFFLE(i32 1, i32 3, i32 0, i32 2)
%216 = call i32 @_mm_shuffle_epi32(i32 %214, i32 %215)
store i32 %216, i32* %8
%217 = load i32, i32* %7
%218 = call i32 @_mm_castsi128_pd(i32 %217)
store i32 %218, i32* %9
%219 = load i32, i32* %8
%220 = call i32 @_mm_castsi128_pd(i32 %219)
store i32 %220, i32* %10
%221 = load i32, i32* %11
%222 = load i32, i32* %9
%223 = call i32 @_mm_mul_pd(i32 %221, i32 %222)
store i32 %223, i32* %11
%224 = load i32, i32* %12
%225 = load i32, i32* %10
%226 = call i32 @_mm_mul_pd(i32 %224, i32 %225)
store i32 %226, i32* %12
%227 = load double*, double** %3
%228 = load i32, i32* %5
%229 = sext i32 %228 to i64
%230 = getelementptr inbounds double, double* %227, i64 %229
%231 = load i32, i32* %11
%232 = call i32 @_mm_store_pd(double* %230, i32 %231)
%233 = load double*, double** %3
%234 = load i32, i32* %5
%235 = sext i32 %234 to i64
%236 = getelementptr inbounds double, double* %233, i64 %235
%237 = getelementptr inbounds double, double* %236, i64 2
%238 = load i32, i32* %12
%239 = call i32 @_mm_store_pd(double* %237, i32 %238)
br label %240
240: ; preds = %22
%241 = load i32, i32* %5
%242 = add nsw i32 %241, 4
store i32 %242, i32* %5
br label %18
243: ; preds = %18
ret void
}

LLVM IR (-O2):
@remez7_0_log2_sse.one = internal constant [2 x double] [double 1.000000e+00, double 1.000000e+00]
@remez7_0_log2_sse.log2e = internal constant [2 x double] [double 0x3FF71547652B82FE, double 0x3FF71547652B82FE]
@remez7_0_log2_sse.maxlog = internal constant [2 x double] [double 0x40862E42FEFA39EF, double 0x40862E42FEFA39EF]
@remez7_0_log2_sse.minlog = internal constant [2 x double] [double 0xC086232BDD7ABCD2, double 0xC086232BDD7ABCD2]
@remez7_0_log2_sse.c1 = internal constant [2 x double] [double 0x3FE62E4000000000, double 0x3FE62E4000000000]
@remez7_0_log2_sse.c2 = internal constant [2 x double] [double 0x3EB7F7D1CF79ABCA, double 0x3EB7F7D1CF79ABCA]
@remez7_0_log2_sse.w7 = internal constant [2 x double] [double 0x3F32775261EA218B, double 0x3F32775261EA218B]
@remez7_0_log2_sse.w6 = internal constant [2 x double] [double 0x3F551EA8D532BDB4, double 0x3F551EA8D532BDB4]
@remez7_0_log2_sse.w5 = internal constant [2 x double] [double 0x3F8130BFA13DEE8A, double 0x3F8130BFA13DEE8A]
@remez7_0_log2_sse.w4 = internal constant [2 x double] [double 0x3FA552B554013C78, double 0x3FA552B554013C78]
@remez7_0_log2_sse.w3 = internal constant [2 x double] [double 0x3FC5557366BA9488, double 0x3FC5557366BA9488]
@remez7_0_log2_sse.w2 = internal constant [2 x double] [double 0x3FDFFFFEAEB7EF24, double 0x3FDFFFFEAEB7EF24]
@remez7_0_log2_sse.w1 = internal constant [2 x double] [double 0x3FF0000002CF9BEC, double 0x3FF0000002CF9BEC]
@remez7_0_log2_sse.w0 = internal constant [2 x double] [double 0x3FEFFFFFFFF821C7, double 0x3FEFFFFFFFF821C7]
define void @remez7_0_log2_sse(double* %0, i32 %1) {
%3 = tail call i32 @_mm_setr_epi32(i32 1023, i32 1023, i32 0, i32 0)
%4 = icmp sgt i32 %1, 0
br i1 %4, label %5, label %95
5: ; preds = %2, %5
%6 = phi i64 [ %92, %5 ], [ 0, %2 ]
%7 = tail call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez7_0_log2_sse.maxlog, i64 0, i64 0))
%8 = tail call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez7_0_log2_sse.minlog, i64 0, i64 0))
%9 = getelementptr inbounds double, double* %0, i64 %6
%10 = tail call i32 @_mm_load_pd(double* %9)
%11 = getelementptr inbounds double, double* %9, i64 2
%12 = tail call i32 @_mm_load_pd(double* %11)
%13 = tail call i32 @_mm_min_pd(i32 %10, i32 %7)
%14 = tail call i32 @_mm_min_pd(i32 %12, i32 %7)
%15 = tail call i32 @_mm_max_pd(i32 %13, i32 %8)
%16 = tail call i32 @_mm_max_pd(i32 %14, i32 %8)
%17 = tail call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez7_0_log2_sse.log2e, i64 0, i64 0))
%18 = tail call i32 (...) @_mm_setzero_pd()
%19 = tail call i32 @_mm_mul_pd(i32 %15, i32 %17)
%20 = tail call i32 @_mm_mul_pd(i32 %16, i32 %17)
%21 = tail call i32 @_mm_cmplt_pd(i32 %19, i32 %18)
%22 = tail call i32 @_mm_cmplt_pd(i32 %20, i32 %18)
%23 = tail call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez7_0_log2_sse.one, i64 0, i64 0))
%24 = tail call i32 @_mm_and_pd(i32 %21, i32 %23)
%25 = tail call i32 @_mm_and_pd(i32 %22, i32 %23)
%26 = tail call i32 @_mm_sub_pd(i32 %19, i32 %24)
%27 = tail call i32 @_mm_sub_pd(i32 %20, i32 %25)
%28 = tail call i32 @_mm_cvttpd_epi32(i32 %26)
%29 = tail call i32 @_mm_cvttpd_epi32(i32 %27)
%30 = tail call i32 @_mm_cvtepi32_pd(i32 %28)
%31 = tail call i32 @_mm_cvtepi32_pd(i32 %29)
%32 = tail call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez7_0_log2_sse.c1, i64 0, i64 0))
%33 = tail call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez7_0_log2_sse.c2, i64 0, i64 0))
%34 = tail call i32 @_mm_mul_pd(i32 %30, i32 %32)
%35 = tail call i32 @_mm_mul_pd(i32 %31, i32 %32)
%36 = tail call i32 @_mm_sub_pd(i32 %15, i32 %34)
%37 = tail call i32 @_mm_sub_pd(i32 %16, i32 %35)
%38 = tail call i32 @_mm_mul_pd(i32 %30, i32 %33)
%39 = tail call i32 @_mm_mul_pd(i32 %31, i32 %33)
%40 = tail call i32 @_mm_sub_pd(i32 %36, i32 %38)
%41 = tail call i32 @_mm_sub_pd(i32 %37, i32 %39)
%42 = tail call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez7_0_log2_sse.w7, i64 0, i64 0))
%43 = tail call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez7_0_log2_sse.w6, i64 0, i64 0))
%44 = tail call i32 @_mm_mul_pd(i32 %40, i32 %42)
%45 = tail call i32 @_mm_mul_pd(i32 %41, i32 %42)
%46 = tail call i32 @_mm_add_pd(i32 %44, i32 %43)
%47 = tail call i32 @_mm_add_pd(i32 %45, i32 %43)
%48 = tail call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez7_0_log2_sse.w5, i64 0, i64 0))
%49 = tail call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez7_0_log2_sse.w4, i64 0, i64 0))
%50 = tail call i32 @_mm_mul_pd(i32 %46, i32 %40)
%51 = tail call i32 @_mm_mul_pd(i32 %47, i32 %41)
%52 = tail call i32 @_mm_add_pd(i32 %50, i32 %48)
%53 = tail call i32 @_mm_add_pd(i32 %51, i32 %48)
%54 = tail call i32 @_mm_mul_pd(i32 %52, i32 %40)
%55 = tail call i32 @_mm_mul_pd(i32 %53, i32 %41)
%56 = tail call i32 @_mm_add_pd(i32 %54, i32 %49)
%57 = tail call i32 @_mm_add_pd(i32 %55, i32 %49)
%58 = tail call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez7_0_log2_sse.w3, i64 0, i64 0))
%59 = tail call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez7_0_log2_sse.w2, i64 0, i64 0))
%60 = tail call i32 @_mm_mul_pd(i32 %56, i32 %40)
%61 = tail call i32 @_mm_mul_pd(i32 %57, i32 %41)
%62 = tail call i32 @_mm_add_pd(i32 %60, i32 %58)
%63 = tail call i32 @_mm_add_pd(i32 %61, i32 %58)
%64 = tail call i32 @_mm_mul_pd(i32 %62, i32 %40)
%65 = tail call i32 @_mm_mul_pd(i32 %63, i32 %41)
%66 = tail call i32 @_mm_add_pd(i32 %64, i32 %59)
%67 = tail call i32 @_mm_add_pd(i32 %65, i32 %59)
%68 = tail call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez7_0_log2_sse.w1, i64 0, i64 0))
%69 = tail call i32 @_mm_load_pd(double* getelementptr inbounds ([2 x double], [2 x double]* @remez7_0_log2_sse.w0, i64 0, i64 0))
%70 = tail call i32 @_mm_mul_pd(i32 %66, i32 %40)
%71 = tail call i32 @_mm_mul_pd(i32 %67, i32 %41)
%72 = tail call i32 @_mm_add_pd(i32 %70, i32 %68)
%73 = tail call i32 @_mm_add_pd(i32 %71, i32 %68)
%74 = tail call i32 @_mm_mul_pd(i32 %72, i32 %40)
%75 = tail call i32 @_mm_mul_pd(i32 %73, i32 %41)
%76 = tail call i32 @_mm_add_pd(i32 %74, i32 %69)
%77 = tail call i32 @_mm_add_pd(i32 %75, i32 %69)
%78 = tail call i32 @_mm_add_epi32(i32 %28, i32 %3)
%79 = tail call i32 @_mm_add_epi32(i32 %29, i32 %3)
%80 = tail call i32 @_mm_slli_epi32(i32 %78, i32 20)
%81 = tail call i32 @_mm_slli_epi32(i32 %79, i32 20)
%82 = tail call i32 @_MM_SHUFFLE(i32 1, i32 3, i32 0, i32 2)
%83 = tail call i32 @_mm_shuffle_epi32(i32 %80, i32 %82)
%84 = tail call i32 @_MM_SHUFFLE(i32 1, i32 3, i32 0, i32 2)
%85 = tail call i32 @_mm_shuffle_epi32(i32 %81, i32 %84)
%86 = tail call i32 @_mm_castsi128_pd(i32 %83)
%87 = tail call i32 @_mm_castsi128_pd(i32 %85)
%88 = tail call i32 @_mm_mul_pd(i32 %76, i32 %86)
%89 = tail call i32 @_mm_mul_pd(i32 %77, i32 %87)
%90 = tail call i32 @_mm_store_pd(double* %9, i32 %88)
%91 = tail call i32 @_mm_store_pd(double* %11, i32 %89)
%92 = add nuw i64 %6, 4
%93 = trunc i64 %92 to i32
%94 = icmp slt i32 %93, %1
br i1 %94, label %5, label %95
95: ; preds = %5, %2
ret void
}