#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*/ __m128;

/* Variables and functions */
int /*<<< orphan*/ _mm_add_ps(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ _mm_and_ps(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ _mm_castps_si128(int /*<<< orphan*/);
int /*<<< orphan*/ _mm_castsi128_ps(int /*<<< orphan*/);
int /*<<< orphan*/ _mm_cmple_ps(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ _mm_cmplt_ps(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ _mm_cvtepi32_ps(int /*<<< orphan*/);
int /*<<< orphan*/ _mm_max_ps(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ _mm_mul_ps(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ _mm_or_ps(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ _mm_set1_epi32(int);
int /*<<< orphan*/ _mm_set_ps1(double);
int /*<<< orphan*/ _mm_setzero_ps();
int /*<<< orphan*/ _mm_srli_epi32(int /*<<< orphan*/, int);
int /*<<< orphan*/ _mm_sub_epi32(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ _mm_sub_ps(int /*<<< orphan*/, int /*<<< orphan*/);
__m128 sse_mathfun_log_ps(__m128 x) {
  __m128i emm0;
  __m128 one = _mm_set_ps1(1.0);
  __m128 invalid_mask = _mm_cmple_ps(x, _mm_setzero_ps());
  x = _mm_max_ps(x, _mm_castsi128_ps(_mm_set1_epi32(0x00800000)));
  emm0 = _mm_srli_epi32(_mm_castps_si128(x), 23);
  x = _mm_and_ps(x, _mm_castsi128_ps(_mm_set1_epi32(~0x7f800000)));
  x = _mm_or_ps(x, _mm_set_ps1(0.5));
  emm0 = _mm_sub_epi32(emm0, _mm_set1_epi32(0x7f));
  __m128 e = _mm_cvtepi32_ps(emm0);
  e = _mm_add_ps(e, one);
  __m128 mask = _mm_cmplt_ps(x, _mm_set_ps1(0.707106781186547524));
  __m128 tmp = _mm_and_ps(x, mask);
  x = _mm_sub_ps(x, one);
  e = _mm_sub_ps(e, _mm_and_ps(one, mask));
  x = _mm_add_ps(x, tmp);
  __m128 z = _mm_mul_ps(x, x);
  __m128 y = _mm_set_ps1(7.0376836292E-2);
  y = _mm_mul_ps(y, x);
  y = _mm_add_ps(y, _mm_set_ps1(-1.1514610310E-1));
  y = _mm_mul_ps(y, x);
  y = _mm_add_ps(y, _mm_set_ps1(1.1676998740E-1));
  y = _mm_mul_ps(y, x);
  y = _mm_add_ps(y, _mm_set_ps1(-1.2420140846E-1));
  y = _mm_mul_ps(y, x);
  y = _mm_add_ps(y, _mm_set_ps1(1.4249322787E-1));
  y = _mm_mul_ps(y, x);
  y = _mm_add_ps(y, _mm_set_ps1(-1.6668057665E-1));
  y = _mm_mul_ps(y, x);
  y = _mm_add_ps(y, _mm_set_ps1(2.0000714765E-1));
  y = _mm_mul_ps(y, x);
  y = _mm_add_ps(y, _mm_set_ps1(-2.4999993993E-1));
  y = _mm_mul_ps(y, x);
  y = _mm_add_ps(y, _mm_set_ps1(3.3333331174E-1));
  y = _mm_mul_ps(y, x);
  y = _mm_mul_ps(y, z);
  tmp = _mm_mul_ps(e, _mm_set_ps1(-2.12194440e-4));
  y = _mm_add_ps(y, tmp);
  tmp = _mm_mul_ps(z, _mm_set_ps1(0.5));
  y = _mm_sub_ps(y, tmp);
  tmp = _mm_mul_ps(e, _mm_set_ps1(0.693359375));
  x = _mm_add_ps(x, y);
  x = _mm_add_ps(x, tmp);
  x = _mm_or_ps(x, invalid_mask);
  return x;
}


x86 assembly (clang, -O0):
<sse_mathfun_log_ps>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
mov    %edi,-0x4(%rbp)
movsd  0xe55(%rip),%xmm0
call   1070 <_mm_set_ps1@plt>
mov    %eax,-0xc(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x6c(%rbp)
mov    $0x0,%al
call   1120 <_mm_setzero_ps@plt>
mov    -0x6c(%rbp),%edi
mov    %eax,%esi
call   10e0 <_mm_cmple_ps@plt>
mov    %eax,-0x10(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x68(%rbp)
mov    $0x800000,%edi
call   10c0 <_mm_set1_epi32@plt>
mov    %eax,%edi
call   1050 <_mm_castsi128_ps@plt>
mov    -0x68(%rbp),%edi
mov    %eax,%esi
call   1080 <_mm_max_ps@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1040 <_mm_castps_si128@plt>
mov    %eax,%edi
mov    $0x17,%esi
call   1110 <_mm_srli_epi32@plt>
mov    %eax,-0x8(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x64(%rbp)
mov    $0x807fffff,%edi
call   10c0 <_mm_set1_epi32@plt>
mov    %eax,%edi
call   1050 <_mm_castsi128_ps@plt>
mov    -0x64(%rbp),%edi
mov    %eax,%esi
call   1100 <_mm_and_ps@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x60(%rbp)
movsd  0xd66(%rip),%xmm0
call   1070 <_mm_set_ps1@plt>
mov    -0x60(%rbp),%edi
mov    %eax,%esi
call   10f0 <_mm_or_ps@plt>
mov    %eax,-0x4(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x5c(%rbp)
mov    $0x7f,%edi
call   10c0 <_mm_set1_epi32@plt>
mov    -0x5c(%rbp),%edi
mov    %eax,%esi
call   1060 <_mm_sub_epi32@plt>
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%edi
call   1030 <_mm_cvtepi32_ps@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%edi
mov    -0xc(%rbp),%esi
call   10d0 <_mm_add_ps@plt>
mov    %eax,-0x14(%rbp)
mov    -0x4(%rbp),%eax
mov    %eax,-0x58(%rbp)
movsd  0xd68(%rip),%xmm0
call   1070 <_mm_set_ps1@plt>
mov    -0x58(%rbp),%edi
mov    %eax,%esi
call   10b0 <_mm_cmplt_ps@plt>
mov    %eax,-0x18(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x18(%rbp),%esi
call   1100 <_mm_and_ps@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x4(%rbp),%edi
mov    -0xc(%rbp),%esi
call   10a0 <_mm_sub_ps@plt>
mov    %eax,-0x4(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x54(%rbp)
mov    -0xc(%rbp),%edi
mov    -0x18(%rbp),%esi
call   1100 <_mm_and_ps@plt>
mov    -0x54(%rbp),%edi
mov    %eax,%esi
call   10a0 <_mm_sub_ps@plt>
mov    %eax,-0x14(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x1c(%rbp),%esi
call   10d0 <_mm_add_ps@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x4(%rbp),%esi
call   1090 <_mm_mul_ps@plt>
mov    %eax,-0x20(%rbp)
movsd  0xcf0(%rip),%xmm0
call   1070 <_mm_set_ps1@plt>
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%edi
mov    -0x4(%rbp),%esi
call   1090 <_mm_mul_ps@plt>
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
mov    %eax,-0x50(%rbp)
movsd  0xcc4(%rip),%xmm0
call   1070 <_mm_set_ps1@plt>
mov    -0x50(%rbp),%edi
mov    %eax,%esi
call   10d0 <_mm_add_ps@plt>
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%edi
mov    -0x4(%rbp),%esi
call   1090 <_mm_mul_ps@plt>
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
mov    %eax,-0x4c(%rbp)
movsd  0xc8e(%rip),%xmm0
call   1070 <_mm_set_ps1@plt>
mov    -0x4c(%rbp),%edi
mov    %eax,%esi
call   10d0 <_mm_add_ps@plt>
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%edi
mov    -0x4(%rbp),%esi
call   1090 <_mm_mul_ps@plt>
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
mov    %eax,-0x48(%rbp)
movsd  0xc58(%rip),%xmm0
call   1070 <_mm_set_ps1@plt>
mov    -0x48(%rbp),%edi
mov    %eax,%esi
call   10d0 <_mm_add_ps@plt>
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%edi
mov    -0x4(%rbp),%esi
call   1090 <_mm_mul_ps@plt>
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
mov    %eax,-0x44(%rbp)
movsd  0xc22(%rip),%xmm0
call   1070 <_mm_set_ps1@plt>
mov    -0x44(%rbp),%edi
mov    %eax,%esi
call   10d0 <_mm_add_ps@plt>
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%edi
mov    -0x4(%rbp),%esi
call   1090 <_mm_mul_ps@plt>
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
mov    %eax,-0x40(%rbp)
movsd  0xbec(%rip),%xmm0
call   1070 <_mm_set_ps1@plt>
mov    -0x40(%rbp),%edi
mov    %eax,%esi
call   10d0 <_mm_add_ps@plt>
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%edi
mov    -0x4(%rbp),%esi
call   1090 <_mm_mul_ps@plt>
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
mov    %eax,-0x3c(%rbp)
movsd  0xbb6(%rip),%xmm0
call   1070 <_mm_set_ps1@plt>
mov    -0x3c(%rbp),%edi
mov    %eax,%esi
call   10d0 <_mm_add_ps@plt>
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%edi
mov    -0x4(%rbp),%esi
call   1090 <_mm_mul_ps@plt>
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
mov    %eax,-0x38(%rbp)
movsd  0xb80(%rip),%xmm0
call   1070 <_mm_set_ps1@plt>
mov    -0x38(%rbp),%edi
mov    %eax,%esi
call   10d0 <_mm_add_ps@plt>
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%edi
mov    -0x4(%rbp),%esi
call   1090 <_mm_mul_ps@plt>
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
mov    %eax,-0x34(%rbp)
movsd  0xb4a(%rip),%xmm0
call   1070 <_mm_set_ps1@plt>
mov    -0x34(%rbp),%edi
mov    %eax,%esi
call   10d0 <_mm_add_ps@plt>
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%edi
mov    -0x4(%rbp),%esi
call   1090 <_mm_mul_ps@plt>
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%edi
mov    -0x20(%rbp),%esi
call   1090 <_mm_mul_ps@plt>
mov    %eax,-0x24(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x30(%rbp)
movsd  0xb06(%rip),%xmm0
call   1070 <_mm_set_ps1@plt>
mov    -0x30(%rbp),%edi
mov    %eax,%esi
call   1090 <_mm_mul_ps@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x24(%rbp),%edi
mov    -0x1c(%rbp),%esi
call   10d0 <_mm_add_ps@plt>
mov    %eax,-0x24(%rbp)
mov    -0x20(%rbp),%eax
mov    %eax,-0x2c(%rbp)
movsd  0xad0(%rip),%xmm0
call   1070 <_mm_set_ps1@plt>
mov    -0x2c(%rbp),%edi
mov    %eax,%esi
call   1090 <_mm_mul_ps@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x24(%rbp),%edi
mov    -0x1c(%rbp),%esi
call   10a0 <_mm_sub_ps@plt>
mov    %eax,-0x24(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x28(%rbp)
movsd  0xa9a(%rip),%xmm0
call   1070 <_mm_set_ps1@plt>
mov    -0x28(%rbp),%edi
mov    %eax,%esi
call   1090 <_mm_mul_ps@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x24(%rbp),%esi
call   10d0 <_mm_add_ps@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x1c(%rbp),%esi
call   10d0 <_mm_add_ps@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%esi
call   10f0 <_mm_or_ps@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sse_mathfun_log_ps>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %edi,%ebx
movsd  0xdeb(%rip),%xmm0
call   1070 <_mm_set_ps1@plt>
mov    %eax,%r15d
xor    %eax,%eax
call   1120 <_mm_setzero_ps@plt>
mov    %ebx,%edi
mov    %eax,%esi
call   10e0 <_mm_cmple_ps@plt>
mov    %eax,%r14d
mov    $0x800000,%edi
call   10c0 <_mm_set1_epi32@plt>
mov    %eax,%edi
call   1050 <_mm_castsi128_ps@plt>
mov    %ebx,%edi
mov    %eax,%esi
call   1080 <_mm_max_ps@plt>
mov    %eax,%ebp
mov    %eax,%edi
call   1040 <_mm_castps_si128@plt>
mov    %eax,%edi
mov    $0x17,%esi
call   1110 <_mm_srli_epi32@plt>
mov    %eax,%ebx
mov    $0x807fffff,%edi
call   10c0 <_mm_set1_epi32@plt>
mov    %eax,%edi
call   1050 <_mm_castsi128_ps@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   1100 <_mm_and_ps@plt>
mov    %eax,%ebp
movsd  0xd83(%rip),%xmm0
call   1070 <_mm_set_ps1@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   10f0 <_mm_or_ps@plt>
mov    %eax,%ebp
mov    $0x7f,%edi
call   10c0 <_mm_set1_epi32@plt>
mov    %ebx,%edi
mov    %eax,%esi
call   1060 <_mm_sub_epi32@plt>
mov    %eax,%edi
call   1030 <_mm_cvtepi32_ps@plt>
mov    %eax,%edi
mov    %r15d,%esi
call   10d0 <_mm_add_ps@plt>
mov    %eax,%r12d
movsd  0xd4c(%rip),%xmm0
call   1070 <_mm_set_ps1@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   10b0 <_mm_cmplt_ps@plt>
mov    %eax,%ebx
mov    %ebp,%edi
mov    %eax,%esi
call   1100 <_mm_and_ps@plt>
mov    %eax,%r13d
mov    %ebp,%edi
mov    %r15d,%esi
call   10a0 <_mm_sub_ps@plt>
mov    %eax,%ebp
mov    %r15d,%edi
mov    %ebx,%esi
call   1100 <_mm_and_ps@plt>
mov    %r12d,%edi
mov    %eax,%esi
call   10a0 <_mm_sub_ps@plt>
mov    %eax,%r15d
mov    %ebp,%edi
mov    %r13d,%esi
call   10d0 <_mm_add_ps@plt>
mov    %eax,%ebx
mov    %eax,%edi
mov    %eax,%esi
call   1090 <_mm_mul_ps@plt>
mov    %eax,%r12d
movsd  0xcf5(%rip),%xmm0
call   1070 <_mm_set_ps1@plt>
mov    %eax,%edi
mov    %ebx,%esi
call   1090 <_mm_mul_ps@plt>
mov    %eax,%ebp
movsd  0xce5(%rip),%xmm0
call   1070 <_mm_set_ps1@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   10d0 <_mm_add_ps@plt>
mov    %eax,%edi
mov    %ebx,%esi
call   1090 <_mm_mul_ps@plt>
mov    %eax,%ebp
movsd  0xccc(%rip),%xmm0
call   1070 <_mm_set_ps1@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   10d0 <_mm_add_ps@plt>
mov    %eax,%edi
mov    %ebx,%esi
call   1090 <_mm_mul_ps@plt>
mov    %eax,%ebp
movsd  0xcb3(%rip),%xmm0
call   1070 <_mm_set_ps1@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   10d0 <_mm_add_ps@plt>
mov    %eax,%edi
mov    %ebx,%esi
call   1090 <_mm_mul_ps@plt>
mov    %eax,%ebp
movsd  0xc9a(%rip),%xmm0
call   1070 <_mm_set_ps1@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   10d0 <_mm_add_ps@plt>
mov    %eax,%edi
mov    %ebx,%esi
call   1090 <_mm_mul_ps@plt>
mov    %eax,%ebp
movsd  0xc81(%rip),%xmm0
call   1070 <_mm_set_ps1@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   10d0 <_mm_add_ps@plt>
mov    %eax,%edi
mov    %ebx,%esi
call   1090 <_mm_mul_ps@plt>
mov    %eax,%ebp
movsd  0xc68(%rip),%xmm0
call   1070 <_mm_set_ps1@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   10d0 <_mm_add_ps@plt>
mov    %eax,%edi
mov    %ebx,%esi
call   1090 <_mm_mul_ps@plt>
mov    %eax,%ebp
movsd  0xc4f(%rip),%xmm0
call   1070 <_mm_set_ps1@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   10d0 <_mm_add_ps@plt>
mov    %eax,%edi
mov    %ebx,%esi
call   1090 <_mm_mul_ps@plt>
mov    %eax,%ebp
movsd  0xc36(%rip),%xmm0
call   1070 <_mm_set_ps1@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   10d0 <_mm_add_ps@plt>
mov    %eax,%edi
mov    %ebx,%esi
call   1090 <_mm_mul_ps@plt>
mov    %eax,%edi
mov    %r12d,%esi
call   1090 <_mm_mul_ps@plt>
mov    %eax,%ebp
movsd  0xc13(%rip),%xmm0
call   1070 <_mm_set_ps1@plt>
mov    %r15d,%edi
mov    %eax,%esi
call   1090 <_mm_mul_ps@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   10d0 <_mm_add_ps@plt>
mov    %eax,%ebp
movsd  0xb99(%rip),%xmm0
call   1070 <_mm_set_ps1@plt>
mov    %r12d,%edi
mov    %eax,%esi
call   1090 <_mm_mul_ps@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   10a0 <_mm_sub_ps@plt>
mov    %eax,%r12d
movsd  0xbd6(%rip),%xmm0
call   1070 <_mm_set_ps1@plt>
mov    %r15d,%edi
mov    %eax,%esi
call   1090 <_mm_mul_ps@plt>
mov    %eax,%ebp
mov    %ebx,%edi
mov    %r12d,%esi
call   10d0 <_mm_add_ps@plt>
mov    %eax,%edi
mov    %ebp,%esi
call   10d0 <_mm_add_ps@plt>
mov    %eax,%edi
mov    %r14d,%esi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    10f0 <_mm_or_ps@plt>

LLVM IR (-O0):
define i32 @sse_mathfun_log_ps(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
store i32 %0, i32* %2
%11 = call i32 @_mm_set_ps1(double 1.000000e+00)
store i32 %11, i32* %4
%12 = load i32, i32* %2
%13 = call i32 (...) @_mm_setzero_ps()
%14 = call i32 @_mm_cmple_ps(i32 %12, i32 %13)
store i32 %14, i32* %5
%15 = load i32, i32* %2
%16 = call i32 @_mm_set1_epi32(i32 8388608)
%17 = call i32 @_mm_castsi128_ps(i32 %16)
%18 = call i32 @_mm_max_ps(i32 %15, i32 %17)
store i32 %18, i32* %2
%19 = load i32, i32* %2
%20 = call i32 @_mm_castps_si128(i32 %19)
%21 = call i32 @_mm_srli_epi32(i32 %20, i32 23)
store i32 %21, i32* %3
%22 = load i32, i32* %2
%23 = call i32 @_mm_set1_epi32(i32 -2139095041)
%24 = call i32 @_mm_castsi128_ps(i32 %23)
%25 = call i32 @_mm_and_ps(i32 %22, i32 %24)
store i32 %25, i32* %2
%26 = load i32, i32* %2
%27 = call i32 @_mm_set_ps1(double 5.000000e-01)
%28 = call i32 @_mm_or_ps(i32 %26, i32 %27)
store i32 %28, i32* %2
%29 = load i32, i32* %3
%30 = call i32 @_mm_set1_epi32(i32 127)
%31 = call i32 @_mm_sub_epi32(i32 %29, i32 %30)
store i32 %31, i32* %3
%32 = load i32, i32* %3
%33 = call i32 @_mm_cvtepi32_ps(i32 %32)
store i32 %33, i32* %6
%34 = load i32, i32* %6
%35 = load i32, i32* %4
%36 = call i32 @_mm_add_ps(i32 %34, i32 %35)
store i32 %36, i32* %6
%37 = load i32, i32* %2
%38 = call i32 @_mm_set_ps1(double 0x3FE6A09E667F3BCD)
%39 = call i32 @_mm_cmplt_ps(i32 %37, i32 %38)
store i32 %39, i32* %7
%40 = load i32, i32* %2
%41 = load i32, i32* %7
%42 = call i32 @_mm_and_ps(i32 %40, i32 %41)
store i32 %42, i32* %8
%43 = load i32, i32* %2
%44 = load i32, i32* %4
%45 = call i32 @_mm_sub_ps(i32 %43, i32 %44)
store i32 %45, i32* %2
%46 = load i32, i32* %6
%47 = load i32, i32* %4
%48 = load i32, i32* %7
%49 = call i32 @_mm_and_ps(i32 %47, i32 %48)
%50 = call i32 @_mm_sub_ps(i32 %46, i32 %49)
store i32 %50, i32* %6
%51 = load i32, i32* %2
%52 = load i32, i32* %8
%53 = call i32 @_mm_add_ps(i32 %51, i32 %52)
store i32 %53, i32* %2
%54 = load i32, i32* %2
%55 = load i32, i32* %2
%56 = call i32 @_mm_mul_ps(i32 %54, i32 %55)
store i32 %56, i32* %9
%57 = call i32 @_mm_set_ps1(double 0x3FB204376245245A)
store i32 %57, i32* %10
%58 = load i32, i32* %10
%59 = load i32, i32* %2
%60 = call i32 @_mm_mul_ps(i32 %58, i32 %59)
store i32 %60, i32* %10
%61 = load i32, i32* %10
%62 = call i32 @_mm_set_ps1(double 0xBFBD7A370B138B4B)
%63 = call i32 @_mm_add_ps(i32 %61, i32 %62)
store i32 %63, i32* %10
%64 = load i32, i32* %10
%65 = load i32, i32* %2
%66 = call i32 @_mm_mul_ps(i32 %64, i32 %65)
store i32 %66, i32* %10
%67 = load i32, i32* %10
%68 = call i32 @_mm_set_ps1(double 0x3FBDE4A34D098E98)
%69 = call i32 @_mm_add_ps(i32 %67, i32 %68)
store i32 %69, i32* %10
%70 = load i32, i32* %10
%71 = load i32, i32* %2
%72 = call i32 @_mm_mul_ps(i32 %70, i32 %71)
store i32 %72, i32* %10
%73 = load i32, i32* %10
%74 = call i32 @_mm_set_ps1(double 0xBFBFCBA9DB73ED2C)
%75 = call i32 @_mm_add_ps(i32 %73, i32 %74)
store i32 %75, i32* %10
%76 = load i32, i32* %10
%77 = load i32, i32* %2
%78 = call i32 @_mm_mul_ps(i32 %76, i32 %77)
store i32 %78, i32* %10
%79 = load i32, i32* %10
%80 = call i32 @_mm_set_ps1(double 0x3FC23D37D4CD3339)
%81 = call i32 @_mm_add_ps(i32 %79, i32 %80)
store i32 %81, i32* %10
%82 = load i32, i32* %10
%83 = load i32, i32* %2
%84 = call i32 @_mm_mul_ps(i32 %82, i32 %83)
store i32 %84, i32* %10
%85 = load i32, i32* %10
%86 = call i32 @_mm_set_ps1(double 0xBFC555CA04CB8ABB)
%87 = call i32 @_mm_add_ps(i32 %85, i32 %86)
store i32 %87, i32* %10
%88 = load i32, i32* %10
%89 = load i32, i32* %2
%90 = call i32 @_mm_mul_ps(i32 %88, i32 %89)
store i32 %90, i32* %10
%91 = load i32, i32* %10
%92 = call i32 @_mm_set_ps1(double 0x3FC999D58F0FBE3E)
%93 = call i32 @_mm_add_ps(i32 %91, i32 %92)
store i32 %93, i32* %10
%94 = load i32, i32* %10
%95 = load i32, i32* %2
%96 = call i32 @_mm_mul_ps(i32 %94, i32 %95)
store i32 %96, i32* %10
%97 = load i32, i32* %10
%98 = call i32 @_mm_set_ps1(double 0xBFCFFFFF7F002B13)
%99 = call i32 @_mm_add_ps(i32 %97, i32 %98)
store i32 %99, i32* %10
%100 = load i32, i32* %10
%101 = load i32, i32* %2
%102 = call i32 @_mm_mul_ps(i32 %100, i32 %101)
store i32 %102, i32* %10
%103 = load i32, i32* %10
%104 = call i32 @_mm_set_ps1(double 0x3FD555553E25CD96)
%105 = call i32 @_mm_add_ps(i32 %103, i32 %104)
store i32 %105, i32* %10
%106 = load i32, i32* %10
%107 = load i32, i32* %2
%108 = call i32 @_mm_mul_ps(i32 %106, i32 %107)
store i32 %108, i32* %10
%109 = load i32, i32* %10
%110 = load i32, i32* %9
%111 = call i32 @_mm_mul_ps(i32 %109, i32 %110)
store i32 %111, i32* %10
%112 = load i32, i32* %6
%113 = call i32 @_mm_set_ps1(double 0xBF2BD0105C4242EA)
%114 = call i32 @_mm_mul_ps(i32 %112, i32 %113)
store i32 %114, i32* %8
%115 = load i32, i32* %10
%116 = load i32, i32* %8
%117 = call i32 @_mm_add_ps(i32 %115, i32 %116)
store i32 %117, i32* %10
%118 = load i32, i32* %9
%119 = call i32 @_mm_set_ps1(double 5.000000e-01)
%120 = call i32 @_mm_mul_ps(i32 %118, i32 %119)
store i32 %120, i32* %8
%121 = load i32, i32* %10
%122 = load i32, i32* %8
%123 = call i32 @_mm_sub_ps(i32 %121, i32 %122)
store i32 %123, i32* %10
%124 = load i32, i32* %6
%125 = call i32 @_mm_set_ps1(double 0x3FE6300000000000)
%126 = call i32 @_mm_mul_ps(i32 %124, i32 %125)
store i32 %126, i32* %8
%127 = load i32, i32* %2
%128 = load i32, i32* %10
%129 = call i32 @_mm_add_ps(i32 %127, i32 %128)
store i32 %129, i32* %2
%130 = load i32, i32* %2
%131 = load i32, i32* %8
%132 = call i32 @_mm_add_ps(i32 %130, i32 %131)
store i32 %132, i32* %2
%133 = load i32, i32* %2
%134 = load i32, i32* %5
%135 = call i32 @_mm_or_ps(i32 %133, i32 %134)
store i32 %135, i32* %2
%136 = load i32, i32* %2
ret i32 %136
}

LLVM IR (-O2):
define i32 @sse_mathfun_log_ps(i32 %0) {
%2 = tail call i32 @_mm_set_ps1(double 1.000000e+00)
%3 = tail call i32 (...) @_mm_setzero_ps()
%4 = tail call i32 @_mm_cmple_ps(i32 %0, i32 %3)
%5 = tail call i32 @_mm_set1_epi32(i32 8388608)
%6 = tail call i32 @_mm_castsi128_ps(i32 %5)
%7 = tail call i32 @_mm_max_ps(i32 %0, i32 %6)
%8 = tail call i32 @_mm_castps_si128(i32 %7)
%9 = tail call i32 @_mm_srli_epi32(i32 %8, i32 23)
%10 = tail call i32 @_mm_set1_epi32(i32 -2139095041)
%11 = tail call i32 @_mm_castsi128_ps(i32 %10)
%12 = tail call i32 @_mm_and_ps(i32 %7, i32 %11)
%13 = tail call i32 @_mm_set_ps1(double 5.000000e-01)
%14 = tail call i32 @_mm_or_ps(i32 %12, i32 %13)
%15 = tail call i32 @_mm_set1_epi32(i32 127)
%16 = tail call i32 @_mm_sub_epi32(i32 %9, i32 %15)
%17 = tail call i32 @_mm_cvtepi32_ps(i32 %16)
%18 = tail call i32 @_mm_add_ps(i32 %17, i32 %2)
%19 = tail call i32 @_mm_set_ps1(double 0x3FE6A09E667F3BCD)
%20 = tail call i32 @_mm_cmplt_ps(i32 %14, i32 %19)
%21 = tail call i32 @_mm_and_ps(i32 %14, i32 %20)
%22 = tail call i32 @_mm_sub_ps(i32 %14, i32 %2)
%23 = tail call i32 @_mm_and_ps(i32 %2, i32 %20)
%24 = tail call i32 @_mm_sub_ps(i32 %18, i32 %23)
%25 = tail call i32 @_mm_add_ps(i32 %22, i32 %21)
%26 = tail call i32 @_mm_mul_ps(i32 %25, i32 %25)
%27 = tail call i32 @_mm_set_ps1(double 0x3FB204376245245A)
%28 = tail call i32 @_mm_mul_ps(i32 %27, i32 %25)
%29 = tail call i32 @_mm_set_ps1(double 0xBFBD7A370B138B4B)
%30 = tail call i32 @_mm_add_ps(i32 %28, i32 %29)
%31 = tail call i32 @_mm_mul_ps(i32 %30, i32 %25)
%32 = tail call i32 @_mm_set_ps1(double 0x3FBDE4A34D098E98)
%33 = tail call i32 @_mm_add_ps(i32 %31, i32 %32)
%34 = tail call i32 @_mm_mul_ps(i32 %33, i32 %25)
%35 = tail call i32 @_mm_set_ps1(double 0xBFBFCBA9DB73ED2C)
%36 = tail call i32 @_mm_add_ps(i32 %34, i32 %35)
%37 = tail call i32 @_mm_mul_ps(i32 %36, i32 %25)
%38 = tail call i32 @_mm_set_ps1(double 0x3FC23D37D4CD3339)
%39 = tail call i32 @_mm_add_ps(i32 %37, i32 %38)
%40 = tail call i32 @_mm_mul_ps(i32 %39, i32 %25)
%41 = tail call i32 @_mm_set_ps1(double 0xBFC555CA04CB8ABB)
%42 = tail call i32 @_mm_add_ps(i32 %40, i32 %41)
%43 = tail call i32 @_mm_mul_ps(i32 %42, i32 %25)
%44 = tail call i32 @_mm_set_ps1(double 0x3FC999D58F0FBE3E)
%45 = tail call i32 @_mm_add_ps(i32 %43, i32 %44)
%46 = tail call i32 @_mm_mul_ps(i32 %45, i32 %25)
%47 = tail call i32 @_mm_set_ps1(double 0xBFCFFFFF7F002B13)
%48 = tail call i32 @_mm_add_ps(i32 %46, i32 %47)
%49 = tail call i32 @_mm_mul_ps(i32 %48, i32 %25)
%50 = tail call i32 @_mm_set_ps1(double 0x3FD555553E25CD96)
%51 = tail call i32 @_mm_add_ps(i32 %49, i32 %50)
%52 = tail call i32 @_mm_mul_ps(i32 %51, i32 %25)
%53 = tail call i32 @_mm_mul_ps(i32 %52, i32 %26)
%54 = tail call i32 @_mm_set_ps1(double 0xBF2BD0105C4242EA)
%55 = tail call i32 @_mm_mul_ps(i32 %24, i32 %54)
%56 = tail call i32 @_mm_add_ps(i32 %53, i32 %55)
%57 = tail call i32 @_mm_set_ps1(double 5.000000e-01)
%58 = tail call i32 @_mm_mul_ps(i32 %26, i32 %57)
%59 = tail call i32 @_mm_sub_ps(i32 %56, i32 %58)
%60 = tail call i32 @_mm_set_ps1(double 0x3FE6300000000000)
%61 = tail call i32 @_mm_mul_ps(i32 %24, i32 %60)
%62 = tail call i32 @_mm_add_ps(i32 %25, i32 %59)
%63 = tail call i32 @_mm_add_ps(i32 %62, i32 %61)
%64 = tail call i32 @_mm_or_ps(i32 %63, i32 %4)
ret i32 %64
}