#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*/ x;
typedef int /*<<< orphan*/ mask;

/* Variables and functions */
int /*<<< orphan*/ get_mask_descr(int, unsigned long *, unsigned long *,
                                  unsigned long *, unsigned int *,
                                  unsigned int *);
int /*<<< orphan*/ printf(char *, ...);
void configure_ieee854() {
  long double x, y, z;
  unsigned long *lx, *ly, *lz;
  unsigned long mask;
  unsigned int index;
  unsigned int shift;
  unsigned int split;
  unsigned int mantissa0_length;
  int i;
  int size = sizeof(x) / sizeof(mask);
  lx = (unsigned long *)&x;
  ly = (unsigned long *)&y;
  lz = (unsigned long *)&z;
  if (size == 2) {
    mantissa0_length = 20;
  } else {
    printf("#define USE_LONG_DOUBLE\n");
    mantissa0_length = 31;
  }
  for (i = 0; i < size; i++) {
    lx[i] = 0;
    ly[i] = 0;
    lz[i] = 0;
  }
  x = 1;
  y = -x;
  get_mask_descr(size, lx, ly, &mask, &index, &shift);
  printf("#define IEEE854_MASK_NEGATIVE   0x%08lX\n", mask);
  printf("#define IEEE854_INDEX_NEGATIVE  %d\n", index);
  printf("#define IEEE854_SHIFT_NEGATIVE  %d\n", shift);
  x = 1;
  y = 2;
  get_mask_descr(size, lx, ly, &mask, &index, &shift);
  printf("#define IEEE854_MASK_EXPONENT   0x%08lX\n", mask);
  printf("#define IEEE854_INDEX_EXPONENT  %d\n", index);
  printf("#define IEEE854_SHIFT_EXPONENT  %d\n", shift);
  x = 1;
  y = 1;
  z = 1;
  y /= 2;
  x += y;
  get_mask_descr(size, lx, lz, &mask, &index, &split);
  split++;
  for (i = 1; i < split; i++) {
    y /= 2;
    x += y;
  }
  get_mask_descr(size, lx, lz, &mask, &index, &shift);
  printf("#define IEEE854_MASK_MANTISSA0_0  0x%08lX\n", mask);
  printf("#define IEEE854_INDEX_MANTISSA0_0 %d\n", index);
  printf("#define IEEE854_SPLIT_MANTISSA0_0 %d\n", mantissa0_length - split);
  z = x;
  for (i = split; i < mantissa0_length; i++) {
    y /= 2;
    x += y;
  }
  get_mask_descr(size, lx, lz, &mask, &index, &shift);
  printf("#define IEEE854_MASK_MANTISSA0_1  0x%08lX\n", mask);
  printf("#define IEEE854_INDEX_MANTISSA0_1 %d\n", index);
  printf("#define IEEE854_SHIFT_MANTISSA0_1 %d\n", shift);
  lx[index] = lx[index] | (mask << shift);
  z = x;
  y /= 2;
  x += y;
  get_mask_descr(size, lx, lz, &mask, &index, &split);
  split++;
  for (i = 1; i < split; i++) {
    y /= 2;
    x += y;
  }
  get_mask_descr(size, lx, lz, &mask, &index, &shift);
  printf("#define IEEE854_MASK_MANTISSA1_0  0x%08lX\n", mask);
  printf("#define IEEE854_INDEX_MANTISSA1_0 %d\n", index);
  printf("#define IEEE854_SPLIT_MANTISSA1_0 %d\n", 32 - split);
  z = x;
  for (i = split; i < 32; i++) {
    y /= 2;
    x += y;
  }
  get_mask_descr(size, lx, lz, &mask, &index, &shift);
  printf("#define IEEE854_MASK_MANTISSA1_1  0x%08lX\n", mask);
  printf("#define IEEE854_INDEX_MANTISSA1_1 %d\n", index);
  printf("#define IEEE854_SHIFT_MANTISSA1_1 %d\n", shift);
  printf("#define IEEE854_MANTISSA_LENGTH %d\n\n", mantissa0_length + 32);
}


x86 assembly (clang, -O0):
<configure_ieee854>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc0,%rsp
movl   $0x2,-0x68(%rbp)
lea    -0x10(%rbp),%rax
mov    %rax,-0x38(%rbp)
lea    -0x20(%rbp),%rax
mov    %rax,-0x40(%rbp)
lea    -0x30(%rbp),%rax
mov    %rax,-0x48(%rbp)
cmpl   $0x2,-0x68(%rbp)
jne    1160 <configure_ieee854+0x40>
movl   $0x14,-0x60(%rbp)
jmp    1175 <configure_ieee854+0x55>
lea    0xe9d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1f,-0x60(%rbp)
movl   $0x0,-0x64(%rbp)
mov    -0x64(%rbp),%eax
cmp    -0x68(%rbp),%eax
jge    11c6 <configure_ieee854+0xa6>
mov    -0x38(%rbp),%rax
movslq -0x64(%rbp),%rcx
movq   $0x0,(%rax,%rcx,8)
mov    -0x40(%rbp),%rax
movslq -0x64(%rbp),%rcx
movq   $0x0,(%rax,%rcx,8)
mov    -0x48(%rbp),%rax
movslq -0x64(%rbp),%rcx
movq   $0x0,(%rax,%rcx,8)
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    117c <configure_ieee854+0x5c>
fld1
fld    %st(0)
fstpt  -0x80(%rbp)
fstpt  -0x10(%rbp)
fldt   -0x10(%rbp)
fchs
fstpt  -0x20(%rbp)
mov    -0x68(%rbp),%edi
mov    -0x38(%rbp),%rsi
mov    -0x40(%rbp),%rdx
lea    -0x50(%rbp),%rcx
mov    %rcx,-0xa0(%rbp)
lea    -0x54(%rbp),%r8
mov    %r8,-0x98(%rbp)
lea    -0x58(%rbp),%r9
mov    %r9,-0x90(%rbp)
call   1040 <get_mask_descr@plt>
mov    -0x50(%rbp),%rsi
lea    0xe09(%rip),%rdi
xor    %eax,%eax
mov    %al,-0x81(%rbp)
call   1030 <printf@plt>
mov    -0x81(%rbp),%al
mov    -0x54(%rbp),%esi
lea    0xe15(%rip),%rdi
call   1030 <printf@plt>
mov    -0x81(%rbp),%al
mov    -0x58(%rbp),%esi
lea    0xe24(%rip),%rdi
call   1030 <printf@plt>
mov    -0xa0(%rbp),%rcx
mov    -0x98(%rbp),%r8
mov    -0x90(%rbp),%r9
fldt   -0x80(%rbp)
fstpt  -0x10(%rbp)
flds   0xd94(%rip)
fld    %st(0)
fstpt  -0x74(%rbp)
fstpt  -0x20(%rbp)
mov    -0x68(%rbp),%edi
mov    -0x38(%rbp),%rsi
mov    -0x40(%rbp),%rdx
call   1040 <get_mask_descr@plt>
mov    -0x81(%rbp),%al
mov    -0x50(%rbp),%rsi
lea    0xdf9(%rip),%rdi
call   1030 <printf@plt>
mov    -0x81(%rbp),%al
mov    -0x54(%rbp),%esi
lea    0xe0d(%rip),%rdi
call   1030 <printf@plt>
mov    -0x81(%rbp),%al
mov    -0x58(%rbp),%esi
lea    0xe1c(%rip),%rdi
call   1030 <printf@plt>
fldt   -0x80(%rbp)
fldt   -0x74(%rbp)
fld    %st(1)
fstpt  -0x10(%rbp)
fld    %st(1)
fstpt  -0x20(%rbp)
fxch   %st(1)
fstpt  -0x30(%rbp)
fldt   -0x20(%rbp)
fdivp  %st,%st(1)
fstpt  -0x20(%rbp)
fldt   -0x20(%rbp)
fldt   -0x10(%rbp)
faddp  %st,%st(1)
fstpt  -0x10(%rbp)
mov    -0x68(%rbp),%edi
mov    -0x38(%rbp),%rsi
mov    -0x48(%rbp),%rdx
lea    -0x50(%rbp),%rcx
lea    -0x54(%rbp),%r8
lea    -0x5c(%rbp),%r9
call   1040 <get_mask_descr@plt>
mov    -0x5c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5c(%rbp)
movl   $0x1,-0x64(%rbp)
mov    -0x64(%rbp),%eax
cmp    -0x5c(%rbp),%eax
jae    134b <configure_ieee854+0x22b>
fldt   -0x20(%rbp)
flds   0xcd3(%rip)
fdivrp %st,%st(1)
fstpt  -0x20(%rbp)
fldt   -0x20(%rbp)
fldt   -0x10(%rbp)
faddp  %st,%st(1)
fstpt  -0x10(%rbp)
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    1318 <configure_ieee854+0x1f8>
mov    -0x68(%rbp),%edi
mov    -0x38(%rbp),%rsi
mov    -0x48(%rbp),%rdx
lea    -0x50(%rbp),%rcx
lea    -0x54(%rbp),%r8
lea    -0x58(%rbp),%r9
call   1040 <get_mask_descr@plt>
mov    -0x50(%rbp),%rsi
lea    0xd8d(%rip),%rdi
xor    %eax,%eax
mov    %al,-0xa1(%rbp)
call   1030 <printf@plt>
mov    -0xa1(%rbp),%al
mov    -0x54(%rbp),%esi
lea    0xd9b(%rip),%rdi
call   1030 <printf@plt>
mov    -0xa1(%rbp),%al
mov    -0x60(%rbp),%esi
mov    -0x5c(%rbp),%ecx
sub    %ecx,%esi
lea    0xda7(%rip),%rdi
call   1030 <printf@plt>
fldt   -0x10(%rbp)
fstpt  -0x30(%rbp)
mov    -0x5c(%rbp),%eax
mov    %eax,-0x64(%rbp)
mov    -0x64(%rbp),%eax
cmp    -0x60(%rbp),%eax
jae    13ed <configure_ieee854+0x2cd>
fldt   -0x20(%rbp)
flds   0xc31(%rip)
fdivrp %st,%st(1)
fstpt  -0x20(%rbp)
fldt   -0x20(%rbp)
fldt   -0x10(%rbp)
faddp  %st,%st(1)
fstpt  -0x10(%rbp)
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    13ba <configure_ieee854+0x29a>
mov    -0x68(%rbp),%edi
mov    -0x38(%rbp),%rsi
mov    -0x48(%rbp),%rdx
lea    -0x50(%rbp),%rcx
lea    -0x54(%rbp),%r8
lea    -0x58(%rbp),%r9
call   1040 <get_mask_descr@plt>
mov    -0x50(%rbp),%rsi
lea    0xd62(%rip),%rdi
xor    %eax,%eax
mov    %al,-0xb1(%rbp)
call   1030 <printf@plt>
mov    -0xb1(%rbp),%al
mov    -0x54(%rbp),%esi
lea    0xd70(%rip),%rdi
call   1030 <printf@plt>
mov    -0xb1(%rbp),%al
mov    -0x58(%rbp),%esi
lea    0xd81(%rip),%rdi
call   1030 <printf@plt>
mov    -0x38(%rbp),%rax
mov    -0x54(%rbp),%ecx
mov    %rcx,-0xb0(%rbp)
mov    (%rax,%rcx,8),%rdx
mov    -0x50(%rbp),%rsi
mov    -0x58(%rbp),%cl
shl    %cl,%rsi
mov    -0xb0(%rbp),%rcx
or     %rsi,%rdx
mov    %rdx,(%rax,%rcx,8)
fldt   -0x10(%rbp)
fstpt  -0x30(%rbp)
fldt   -0x20(%rbp)
flds   0xb7c(%rip)
fdivrp %st,%st(1)
fstpt  -0x20(%rbp)
fldt   -0x20(%rbp)
fldt   -0x10(%rbp)
faddp  %st,%st(1)
fstpt  -0x10(%rbp)
mov    -0x68(%rbp),%edi
mov    -0x38(%rbp),%rsi
mov    -0x48(%rbp),%rdx
lea    -0x50(%rbp),%rcx
lea    -0x54(%rbp),%r8
lea    -0x5c(%rbp),%r9
call   1040 <get_mask_descr@plt>
mov    -0x5c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5c(%rbp)
movl   $0x1,-0x64(%rbp)
mov    -0x64(%rbp),%eax
cmp    -0x5c(%rbp),%eax
jae    14f3 <configure_ieee854+0x3d3>
fldt   -0x20(%rbp)
flds   0xb2b(%rip)
fdivrp %st,%st(1)
fstpt  -0x20(%rbp)
fldt   -0x20(%rbp)
fldt   -0x10(%rbp)
faddp  %st,%st(1)
fstpt  -0x10(%rbp)
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    14c0 <configure_ieee854+0x3a0>
mov    -0x68(%rbp),%edi
mov    -0x38(%rbp),%rsi
mov    -0x48(%rbp),%rdx
lea    -0x50(%rbp),%rcx
lea    -0x54(%rbp),%r8
lea    -0x58(%rbp),%r9
call   1040 <get_mask_descr@plt>
mov    -0x50(%rbp),%rsi
lea    0xcd3(%rip),%rdi
xor    %eax,%eax
mov    %al,-0xb2(%rbp)
call   1030 <printf@plt>
mov    -0xb2(%rbp),%al
mov    -0x54(%rbp),%esi
lea    0xce1(%rip),%rdi
call   1030 <printf@plt>
mov    -0xb2(%rbp),%al
mov    -0x5c(%rbp),%ecx
mov    $0x20,%esi
sub    %ecx,%esi
lea    0xceb(%rip),%rdi
call   1030 <printf@plt>
fldt   -0x10(%rbp)
fstpt  -0x30(%rbp)
mov    -0x5c(%rbp),%eax
mov    %eax,-0x64(%rbp)
cmpl   $0x20,-0x64(%rbp)
jge    1595 <configure_ieee854+0x475>
fldt   -0x20(%rbp)
flds   0xa89(%rip)
fdivrp %st,%st(1)
fstpt  -0x20(%rbp)
fldt   -0x20(%rbp)
fldt   -0x10(%rbp)
faddp  %st,%st(1)
fstpt  -0x10(%rbp)
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    1564 <configure_ieee854+0x444>
mov    -0x68(%rbp),%edi
mov    -0x38(%rbp),%rsi
mov    -0x48(%rbp),%rdx
lea    -0x50(%rbp),%rcx
lea    -0x54(%rbp),%r8
lea    -0x58(%rbp),%r9
call   1040 <get_mask_descr@plt>
mov    -0x50(%rbp),%rsi
lea    0xca8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x54(%rbp),%esi
lea    0xcc2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x58(%rbp),%esi
lea    0xcd7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x60(%rbp),%esi
add    $0x20,%esi
lea    0xce9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0xc0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<configure_ieee854>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x60,%rsp
xorps  %xmm0,%xmm0
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x50(%rsp)
fld1
fld    %st(0)
fstpt  0x34(%rsp)
fld    %st(0)
fstpt  0x20(%rsp)
fchs
fstpt  0x40(%rsp)
lea    0x20(%rsp),%r12
lea    0x40(%rsp),%rbx
lea    0x18(%rsp),%r14
lea    0xc(%rsp),%r15
lea    0x14(%rsp),%r13
mov    $0x2,%edi
mov    %r12,%rsi
mov    %rbx,%rdx
mov    %r14,%rcx
mov    %r15,%r8
mov    %r13,%r9
call   1040 <get_mask_descr@plt>
mov    0x18(%rsp),%rsi
lea    0xe7b(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0xc(%rsp),%esi
lea    0xe92(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x14(%rsp),%esi
lea    0xea4(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
fldt   0x34(%rsp)
fstpt  0x20(%rsp)
flds   0xe36(%rip)
fstpt  0x40(%rsp)
mov    $0x2,%edi
mov    %r12,%rsi
mov    %rbx,%rdx
mov    %r14,%rcx
mov    %r15,%r8
mov    %r13,%r9
call   1040 <get_mask_descr@plt>
mov    0x18(%rsp),%rsi
lea    0xe8a(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0xc(%rsp),%esi
lea    0xea1(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x14(%rsp),%esi
lea    0xeb3(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
fldt   0x34(%rsp)
fstpt  0x50(%rsp)
flds   0xdd8(%rip)
fld    %st(0)
fstpt  0x34(%rsp)
fstpt  0x40(%rsp)
flds   0xdcc(%rip)
fstpt  0x20(%rsp)
lea    0x50(%rsp),%rdx
lea    0x10(%rsp),%r9
mov    $0x2,%edi
mov    %r12,%rsi
mov    %r14,%rcx
mov    %r15,%r8
call   1040 <get_mask_descr@plt>
mov    0x10(%rsp),%ecx
lea    0x1(%rcx),%eax
mov    %eax,0x10(%rsp)
cmp    $0x2,%eax
jb     132b <configure_ieee854+0x20b>
fldt   0x20(%rsp)
fldt   0x40(%rsp)
lea    -0x1(%rcx),%edx
mov    %ecx,%eax
and    $0x7,%eax
fldz
cmp    $0x7,%edx
jae    128e <configure_ieee854+0x16e>
fld    %st(0)
fldz
jmp    12e5 <configure_ieee854+0x1c5>
fstp   %st(0)
and    $0xfffffff8,%ecx
fldt   0x34(%rsp)
fldz
fldz
fxch   %st(1)
fxch   %st(4)
fxch   %st(1)
fxch   %st(3)
fxch   %st(2)
cs nopw 0x0(%rax,%rax,1)
nop
fstp   %st(4)
fstp   %st(2)
fmul   %st(2),%st
fadd   %st,%st(1)
fmul   %st(2),%st
fadd   %st,%st(1)
fmul   %st(2),%st
fadd   %st,%st(1)
fmul   %st(2),%st
fadd   %st,%st(1)
fmul   %st(2),%st
fadd   %st,%st(1)
fmul   %st(2),%st
fadd   %st,%st(1)
fmul   %st(2),%st
fadd   %st,%st(1)
fmul   %st(2),%st
fadd   %st,%st(1)
fld    %st(0)
fld    %st(2)
add    $0xfffffff8,%ecx
fxch   %st(4)
fxch   %st(1)
fxch   %st(3)
fxch   %st(1)
jne    12b0 <configure_ieee854+0x190>
fstp   %st(0)
test   %eax,%eax
je     131f <configure_ieee854+0x1ff>
fstp   %st(1)
fstp   %st(0)
fldz
fldz
fxch   %st(1)
fxch   %st(3)
fxch   %st(1)
fxch   %st(2)
fxch   %st(1)
nopl   (%rax)
fstp   %st(3)
fstp   %st(1)
fmuls  0xcfa(%rip)
fadd   %st,%st(1)
add    $0xffffffff,%eax
fldz
fldz
fxch   %st(1)
fxch   %st(3)
fxch   %st(1)
fxch   %st(2)
fxch   %st(1)
jne    1300 <configure_ieee854+0x1e0>
fstp   %st(3)
fstp   %st(1)
fstpt  0x40(%rsp)
fstpt  0x20(%rsp)
lea    0x20(%rsp),%rsi
lea    0x50(%rsp),%rdx
lea    0x18(%rsp),%rcx
lea    0xc(%rsp),%r8
lea    0x14(%rsp),%r9
mov    $0x2,%edi
call   1040 <get_mask_descr@plt>
mov    0x18(%rsp),%rsi
lea    0xd94(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0xc(%rsp),%esi
lea    0xdad(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x14,%esi
sub    0x10(%rsp),%esi
lea    0xdbc(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
fldt   0x20(%rsp)
fld    %st(0)
fstpt  0x50(%rsp)
mov    0x10(%rsp),%ecx
cmp    $0x13,%ecx
ja     1449 <configure_ieee854+0x329>
fldt   0x40(%rsp)
mov    $0x4,%eax
sub    %ecx,%eax
fldz
and    $0x7,%eax
je     13d9 <configure_ieee854+0x2b9>
fstp   %st(0)
neg    %eax
xor    %edx,%edx
nopl   0x0(%rax)
fmuls  0xc3e(%rip)
fadd   %st,%st(1)
add    $0xffffffff,%edx
cmp    %edx,%eax
jne    13c0 <configure_ieee854+0x2a0>
mov    %ecx,%eax
sub    %edx,%eax
fld    %st(0)
fld    %st(2)
jmp    13dd <configure_ieee854+0x2bd>
fld    %st(0)
mov    %ecx,%eax
fldt   0x34(%rsp)
add    $0xfffffff3,%ecx
cmp    $0x7,%ecx
jb     1437 <configure_ieee854+0x317>
fstp   %st(2)
fstp   %st(0)
add    $0xffffffec,%eax
fldz
fldz
fxch   %st(1)
fxch   %st(4)
fxch   %st(1)
fxch   %st(3)
fxch   %st(2)
xchg   %ax,%ax
fstp   %st(4)
fstp   %st(2)
fmul   %st(2),%st
fadd   %st,%st(1)
fmul   %st(2),%st
fadd   %st,%st(1)
fmul   %st(2),%st
fadd   %st,%st(1)
fmul   %st(2),%st
fadd   %st,%st(1)
fmul   %st(2),%st
fadd   %st,%st(1)
fmul   %st(2),%st
fadd   %st,%st(1)
fmul   %st(2),%st
fadd   %st,%st(1)
fmul   %st(2),%st
fadd   %st,%st(1)
add    $0x8,%eax
fldz
fldz
fxch   %st(1)
fxch   %st(4)
fxch   %st(1)
fxch   %st(3)
fxch   %st(1)
jne    1400 <configure_ieee854+0x2e0>
fstp   %st(4)
fstp   %st(2)
fstp   %st(2)
fxch   %st(1)
fstpt  0x40(%rsp)
fstpt  0x20(%rsp)
fldz
fstp   %st(0)
lea    0x20(%rsp),%rbx
lea    0x50(%rsp),%r14
lea    0x18(%rsp),%r15
lea    0xc(%rsp),%r12
lea    0x14(%rsp),%r9
mov    $0x2,%edi
mov    %rbx,%rsi
mov    %r14,%rdx
mov    %r15,%rcx
mov    %r12,%r8
call   1040 <get_mask_descr@plt>
mov    0x18(%rsp),%rsi
lea    0xcdf(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0xc(%rsp),%esi
lea    0xcf8(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x14(%rsp),%esi
lea    0xd0c(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x18(%rsp),%rax
mov    0x14(%rsp),%cl
shl    %cl,%rax
mov    0xc(%rsp),%ecx
or     %rax,0x20(%rsp,%rcx,8)
fldt   0x20(%rsp)
fldt   0x40(%rsp)
fmuls  0xb30(%rip)
fld    %st(1)
fstpt  0x50(%rsp)
fld    %st(0)
fstpt  0x40(%rsp)
faddp  %st,%st(1)
fstpt  0x20(%rsp)
lea    0x10(%rsp),%r9
mov    $0x2,%edi
mov    %rbx,%rsi
mov    %r14,%rdx
mov    %r15,%rcx
mov    %r12,%r8
call   1040 <get_mask_descr@plt>
mov    0x10(%rsp),%ecx
lea    0x1(%rcx),%eax
mov    %eax,0x10(%rsp)
cmp    $0x2,%eax
jb     15cb <configure_ieee854+0x4ab>
fldt   0x20(%rsp)
fldt   0x40(%rsp)
lea    -0x1(%rcx),%edx
mov    %ecx,%eax
and    $0x7,%eax
fldz
cmp    $0x7,%edx
fldt   0x34(%rsp)
jae    1538 <configure_ieee854+0x418>
fstp   %st(0)
fld    %st(0)
fldz
jmp    1585 <configure_ieee854+0x465>
fstp   %st(1)
and    $0xfffffff8,%ecx
fldz
fldz
fxch   %st(1)
fxch   %st(4)
fxch   %st(1)
fxch   %st(3)
fxch   %st(2)
nopl   0x0(%rax,%rax,1)
fstp   %st(4)
fstp   %st(2)
fmul   %st(2),%st
fadd   %st,%st(1)
fmul   %st(2),%st
fadd   %st,%st(1)
fmul   %st(2),%st
fadd   %st,%st(1)
fmul   %st(2),%st
fadd   %st,%st(1)
fmul   %st(2),%st
fadd   %st,%st(1)
fmul   %st(2),%st
fadd   %st,%st(1)
fmul   %st(2),%st
fadd   %st,%st(1)
fmul   %st(2),%st
fadd   %st,%st(1)
fld    %st(0)
fld    %st(2)
add    $0xfffffff8,%ecx
fxch   %st(4)
fxch   %st(1)
fxch   %st(3)
fxch   %st(1)
jne    1550 <configure_ieee854+0x430>
fstp   %st(0)
test   %eax,%eax
je     15bf <configure_ieee854+0x49f>
fstp   %st(1)
fstp   %st(0)
fldz
fldz
fxch   %st(1)
fxch   %st(3)
fxch   %st(1)
fxch   %st(2)
fxch   %st(1)
nopl   (%rax)
fstp   %st(3)
fstp   %st(1)
fmuls  0xa5a(%rip)
fadd   %st,%st(1)
add    $0xffffffff,%eax
fldz
fldz
fxch   %st(1)
fxch   %st(3)
fxch   %st(1)
fxch   %st(2)
fxch   %st(1)
jne    15a0 <configure_ieee854+0x480>
fstp   %st(3)
fstp   %st(1)
fstpt  0x40(%rsp)
fstpt  0x20(%rsp)
lea    0x20(%rsp),%rsi
lea    0x50(%rsp),%rdx
lea    0x18(%rsp),%rcx
lea    0xc(%rsp),%r8
lea    0x14(%rsp),%r9
mov    $0x2,%edi
call   1040 <get_mask_descr@plt>
mov    0x18(%rsp),%rsi
lea    0xbe2(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0xc(%rsp),%esi
lea    0xbfb(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    $0x20,%esi
sub    0x10(%rsp),%esi
lea    0xc0a(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
fldt   0x20(%rsp)
fld    %st(0)
fstpt  0x50(%rsp)
mov    0x10(%rsp),%ecx
cmp    $0x1f,%ecx
jg     16f9 <configure_ieee854+0x5d9>
fldt   0x40(%rsp)
mov    %ecx,%eax
neg    %eax
fldz
and    $0x7,%eax
je     1681 <configure_ieee854+0x561>
fstp   %st(0)
neg    %eax
xor    %edx,%edx
fldt   0x34(%rsp)
nopw   0x0(%rax,%rax,1)
fxch   %st(1)
fmuls  0x99c(%rip)
fadd   %st,%st(2)
add    $0xffffffff,%edx
cmp    %edx,%eax
fxch   %st(1)
jne    1660 <configure_ieee854+0x540>
mov    %ecx,%eax
sub    %edx,%eax
fld    %st(1)
fld    %st(3)
fxch   %st(1)
fxch   %st(2)
jmp    1689 <configure_ieee854+0x569>
fld    %st(0)
mov    %ecx,%eax
fldt   0x34(%rsp)
add    $0xffffffe7,%ecx
cmp    $0x7,%ecx
jb     16e7 <configure_ieee854+0x5c7>
fstp   %st(2)
fstp   %st(0)
add    $0xffffffe0,%eax
fldz
fldz
fxch   %st(1)
fxch   %st(4)
fxch   %st(1)
fxch   %st(3)
fxch   %st(2)
cs nopw 0x0(%rax,%rax,1)
fstp   %st(4)
fstp   %st(2)
fmul   %st(2),%st
fadd   %st,%st(1)
fmul   %st(2),%st
fadd   %st,%st(1)
fmul   %st(2),%st
fadd   %st,%st(1)
fmul   %st(2),%st
fadd   %st,%st(1)
fmul   %st(2),%st
fadd   %st,%st(1)
fmul   %st(2),%st
fadd   %st,%st(1)
fmul   %st(2),%st
fadd   %st,%st(1)
fmul   %st(2),%st
fadd   %st,%st(1)
add    $0x8,%eax
fldz
fldz
fxch   %st(1)
fxch   %st(4)
fxch   %st(1)
fxch   %st(3)
fxch   %st(1)
jne    16b0 <configure_ieee854+0x590>
fstp   %st(4)
fstp   %st(2)
fstp   %st(2)
fxch   %st(1)
fstpt  0x40(%rsp)
fstpt  0x20(%rsp)
fldz
fstp   %st(0)
lea    0x20(%rsp),%rsi
lea    0x50(%rsp),%rdx
lea    0x18(%rsp),%rcx
lea    0xc(%rsp),%r8
lea    0x14(%rsp),%r9
mov    $0x2,%edi
call   1040 <get_mask_descr@plt>
mov    0x18(%rsp),%rsi
lea    0xb29(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0xc(%rsp),%esi
lea    0xb42(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x14(%rsp),%esi
lea    0xb56(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xb6e(%rip),%rdi
mov    $0x34,%esi
xor    %eax,%eax
call   1030 <printf@plt>
add    $0x60,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [25 x i8] c"#define USE_LONG_DOUBLE\0A\00"
@.str.1 = [41 x i8] c"#define IEEE854_MASK_NEGATIVE 0x%08lX\0A\00"
@.str.2 = [36 x i8] c"#define IEEE854_INDEX_NEGATIVE %d\0A\00"
@.str.3 = [36 x i8] c"#define IEEE854_SHIFT_NEGATIVE %d\0A\00"
@.str.4 = [41 x i8] c"#define IEEE854_MASK_EXPONENT 0x%08lX\0A\00"
@.str.5 = [36 x i8] c"#define IEEE854_INDEX_EXPONENT %d\0A\00"
@.str.6 = [36 x i8] c"#define IEEE854_SHIFT_EXPONENT %d\0A\00"
@.str.7 = [43 x i8] c"#define IEEE854_MASK_MANTISSA0_0 0x%08lX\0A\00"
@.str.8 = [38 x i8] c"#define IEEE854_INDEX_MANTISSA0_0 %d\0A\00"
@.str.9 = [38 x i8] c"#define IEEE854_SPLIT_MANTISSA0_0 %d\0A\00"
@.str.10 = [43 x i8] c"#define IEEE854_MASK_MANTISSA0_1 0x%08lX\0A\00"
@.str.11 = [38 x i8] c"#define IEEE854_INDEX_MANTISSA0_1 %d\0A\00"
@.str.12 = [38 x i8] c"#define IEEE854_SHIFT_MANTISSA0_1 %d\0A\00"
@.str.13 = [43 x i8] c"#define IEEE854_MASK_MANTISSA1_0 0x%08lX\0A\00"
@.str.14 = [38 x i8] c"#define IEEE854_INDEX_MANTISSA1_0 %d\0A\00"
@.str.15 = [38 x i8] c"#define IEEE854_SPLIT_MANTISSA1_0 %d\0A\00"
@.str.16 = [43 x i8] c"#define IEEE854_MASK_MANTISSA1_1 0x%08lX\0A\00"
@.str.17 = [38 x i8] c"#define IEEE854_INDEX_MANTISSA1_1 %d\0A\00"
@.str.18 = [38 x i8] c"#define IEEE854_SHIFT_MANTISSA1_1 %d\0A\00"
@.str.19 = [37 x i8] c"#define IEEE854_MANTISSA_LENGTH %d\0A\0A\00"
define void @configure_ieee854() {
%1 = alloca x86_fp80
%2 = alloca x86_fp80
%3 = alloca x86_fp80
%4 = alloca i64*
%5 = alloca i64*
%6 = alloca i64*
%7 = alloca i64
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
store i32 2, i32* %13
%14 = bitcast x86_fp80* %1 to i64*
store i64* %14, i64** %4
%15 = bitcast x86_fp80* %2 to i64*
store i64* %15, i64** %5
%16 = bitcast x86_fp80* %3 to i64*
store i64* %16, i64** %6
%17 = load i32, i32* %13
%18 = icmp eq i32 %17, 2
br i1 %18, label %19, label %20
19: ; preds = %0
store i32 20, i32* %11
br label %22
20: ; preds = %0
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
store i32 31, i32* %11
br label %22
22: ; preds = %20, %19
store i32 0, i32* %12
br label %23
23: ; preds = %40, %22
%24 = load i32, i32* %12
%25 = load i32, i32* %13
%26 = icmp slt i32 %24, %25
br i1 %26, label %27, label %43
27: ; preds = %23
%28 = load i64*, i64** %4
%29 = load i32, i32* %12
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i64, i64* %28, i64 %30
store i64 0, i64* %31
%32 = load i64*, i64** %5
%33 = load i32, i32* %12
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i64, i64* %32, i64 %34
store i64 0, i64* %35
%36 = load i64*, i64** %6
%37 = load i32, i32* %12
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds i64, i64* %36, i64 %38
store i64 0, i64* %39
br label %40
40: ; preds = %27
%41 = load i32, i32* %12
%42 = add nsw i32 %41, 1
store i32 %42, i32* %12
br label %23
43: ; preds = %23
store x86_fp80 0xK3FFF8000000000000000, x86_fp80* %1
%44 = load x86_fp80, x86_fp80* %1
%45 = fneg x86_fp80 %44
store x86_fp80 %45, x86_fp80* %2
%46 = load i32, i32* %13
%47 = load i64*, i64** %4
%48 = load i64*, i64** %5
%49 = call i32 @get_mask_descr(i32 %46, i64* %47, i64* %48, i64* %7, i32* %8, i32* %9)
%50 = load i64, i64* %7
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.1, i64 0, i64 0), i64 %50)
%52 = load i32, i32* %8
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0), i32 %52)
%54 = load i32, i32* %9
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.3, i64 0, i64 0), i32 %54)
store x86_fp80 0xK3FFF8000000000000000, x86_fp80* %1
store x86_fp80 0xK40008000000000000000, x86_fp80* %2
%56 = load i32, i32* %13
%57 = load i64*, i64** %4
%58 = load i64*, i64** %5
%59 = call i32 @get_mask_descr(i32 %56, i64* %57, i64* %58, i64* %7, i32* %8, i32* %9)
%60 = load i64, i64* %7
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.4, i64 0, i64 0), i64 %60)
%62 = load i32, i32* %8
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.5, i64 0, i64 0), i32 %62)
%64 = load i32, i32* %9
%65 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.6, i64 0, i64 0), i32 %64)
store x86_fp80 0xK3FFF8000000000000000, x86_fp80* %1
store x86_fp80 0xK3FFF8000000000000000, x86_fp80* %2
store x86_fp80 0xK3FFF8000000000000000, x86_fp80* %3
%66 = load x86_fp80, x86_fp80* %2
%67 = fdiv x86_fp80 %66, 0xK40008000000000000000
store x86_fp80 %67, x86_fp80* %2
%68 = load x86_fp80, x86_fp80* %2
%69 = load x86_fp80, x86_fp80* %1
%70 = fadd x86_fp80 %69, %68
store x86_fp80 %70, x86_fp80* %1
%71 = load i32, i32* %13
%72 = load i64*, i64** %4
%73 = load i64*, i64** %6
%74 = call i32 @get_mask_descr(i32 %71, i64* %72, i64* %73, i64* %7, i32* %8, i32* %10)
%75 = load i32, i32* %10
%76 = add i32 %75, 1
store i32 %76, i32* %10
store i32 1, i32* %12
br label %77
77: ; preds = %87, %43
%78 = load i32, i32* %12
%79 = load i32, i32* %10
%80 = icmp ult i32 %78, %79
br i1 %80, label %81, label %90
81: ; preds = %77
%82 = load x86_fp80, x86_fp80* %2
%83 = fdiv x86_fp80 %82, 0xK40008000000000000000
store x86_fp80 %83, x86_fp80* %2
%84 = load x86_fp80, x86_fp80* %2
%85 = load x86_fp80, x86_fp80* %1
%86 = fadd x86_fp80 %85, %84
store x86_fp80 %86, x86_fp80* %1
br label %87
87: ; preds = %81
%88 = load i32, i32* %12
%89 = add nsw i32 %88, 1
store i32 %89, i32* %12
br label %77
90: ; preds = %77
%91 = load i32, i32* %13
%92 = load i64*, i64** %4
%93 = load i64*, i64** %6
%94 = call i32 @get_mask_descr(i32 %91, i64* %92, i64* %93, i64* %7, i32* %8, i32* %9)
%95 = load i64, i64* %7
%96 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.7, i64 0, i64 0), i64 %95)
%97 = load i32, i32* %8
%98 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.8, i64 0, i64 0), i32 %97)
%99 = load i32, i32* %11
%100 = load i32, i32* %10
%101 = sub i32 %99, %100
%102 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.9, i64 0, i64 0), i32 %101)
%103 = load x86_fp80, x86_fp80* %1
store x86_fp80 %103, x86_fp80* %3
%104 = load i32, i32* %10
store i32 %104, i32* %12
br label %105
105: ; preds = %115, %90
%106 = load i32, i32* %12
%107 = load i32, i32* %11
%108 = icmp ult i32 %106, %107
br i1 %108, label %109, label %118
109: ; preds = %105
%110 = load x86_fp80, x86_fp80* %2
%111 = fdiv x86_fp80 %110, 0xK40008000000000000000
store x86_fp80 %111, x86_fp80* %2
%112 = load x86_fp80, x86_fp80* %2
%113 = load x86_fp80, x86_fp80* %1
%114 = fadd x86_fp80 %113, %112
store x86_fp80 %114, x86_fp80* %1
br label %115
115: ; preds = %109
%116 = load i32, i32* %12
%117 = add nsw i32 %116, 1
store i32 %117, i32* %12
br label %105
118: ; preds = %105
%119 = load i32, i32* %13
%120 = load i64*, i64** %4
%121 = load i64*, i64** %6
%122 = call i32 @get_mask_descr(i32 %119, i64* %120, i64* %121, i64* %7, i32* %8, i32* %9)
%123 = load i64, i64* %7
%124 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.10, i64 0, i64 0), i64 %123)
%125 = load i32, i32* %8
%126 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.11, i64 0, i64 0), i32 %125)
%127 = load i32, i32* %9
%128 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.12, i64 0, i64 0), i32 %127)
%129 = load i64*, i64** %4
%130 = load i32, i32* %8
%131 = zext i32 %130 to i64
%132 = getelementptr inbounds i64, i64* %129, i64 %131
%133 = load i64, i64* %132
%134 = load i64, i64* %7
%135 = load i32, i32* %9
%136 = zext i32 %135 to i64
%137 = shl i64 %134, %136
%138 = or i64 %133, %137
%139 = load i64*, i64** %4
%140 = load i32, i32* %8
%141 = zext i32 %140 to i64
%142 = getelementptr inbounds i64, i64* %139, i64 %141
store i64 %138, i64* %142
%143 = load x86_fp80, x86_fp80* %1
store x86_fp80 %143, x86_fp80* %3
%144 = load x86_fp80, x86_fp80* %2
%145 = fdiv x86_fp80 %144, 0xK40008000000000000000
store x86_fp80 %145, x86_fp80* %2
%146 = load x86_fp80, x86_fp80* %2
%147 = load x86_fp80, x86_fp80* %1
%148 = fadd x86_fp80 %147, %146
store x86_fp80 %148, x86_fp80* %1
%149 = load i32, i32* %13
%150 = load i64*, i64** %4
%151 = load i64*, i64** %6
%152 = call i32 @get_mask_descr(i32 %149, i64* %150, i64* %151, i64* %7, i32* %8, i32* %10)
%153 = load i32, i32* %10
%154 = add i32 %153, 1
store i32 %154, i32* %10
store i32 1, i32* %12
br label %155
155: ; preds = %165, %118
%156 = load i32, i32* %12
%157 = load i32, i32* %10
%158 = icmp ult i32 %156, %157
br i1 %158, label %159, label %168
159: ; preds = %155
%160 = load x86_fp80, x86_fp80* %2
%161 = fdiv x86_fp80 %160, 0xK40008000000000000000
store x86_fp80 %161, x86_fp80* %2
%162 = load x86_fp80, x86_fp80* %2
%163 = load x86_fp80, x86_fp80* %1
%164 = fadd x86_fp80 %163, %162
store x86_fp80 %164, x86_fp80* %1
br label %165
165: ; preds = %159
%166 = load i32, i32* %12
%167 = add nsw i32 %166, 1
store i32 %167, i32* %12
br label %155
168: ; preds = %155
%169 = load i32, i32* %13
%170 = load i64*, i64** %4
%171 = load i64*, i64** %6
%172 = call i32 @get_mask_descr(i32 %169, i64* %170, i64* %171, i64* %7, i32* %8, i32* %9)
%173 = load i64, i64* %7
%174 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.13, i64 0, i64 0), i64 %173)
%175 = load i32, i32* %8
%176 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.14, i64 0, i64 0), i32 %175)
%177 = load i32, i32* %10
%178 = sub i32 32, %177
%179 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.15, i64 0, i64 0), i32 %178)
%180 = load x86_fp80, x86_fp80* %1
store x86_fp80 %180, x86_fp80* %3
%181 = load i32, i32* %10
store i32 %181, i32* %12
br label %182
182: ; preds = %191, %168
%183 = load i32, i32* %12
%184 = icmp slt i32 %183, 32
br i1 %184, label %185, label %194
185: ; preds = %182
%186 = load x86_fp80, x86_fp80* %2
%187 = fdiv x86_fp80 %186, 0xK40008000000000000000
store x86_fp80 %187, x86_fp80* %2
%188 = load x86_fp80, x86_fp80* %2
%189 = load x86_fp80, x86_fp80* %1
%190 = fadd x86_fp80 %189, %188
store x86_fp80 %190, x86_fp80* %1
br label %191
191: ; preds = %185
%192 = load i32, i32* %12
%193 = add nsw i32 %192, 1
store i32 %193, i32* %12
br label %182
194: ; preds = %182
%195 = load i32, i32* %13
%196 = load i64*, i64** %4
%197 = load i64*, i64** %6
%198 = call i32 @get_mask_descr(i32 %195, i64* %196, i64* %197, i64* %7, i32* %8, i32* %9)
%199 = load i64, i64* %7
%200 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.16, i64 0, i64 0), i64 %199)
%201 = load i32, i32* %8
%202 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.17, i64 0, i64 0), i32 %201)
%203 = load i32, i32* %9
%204 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.18, i64 0, i64 0), i32 %203)
%205 = load i32, i32* %11
%206 = add i32 %205, 32
%207 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.19, i64 0, i64 0), i32 %206)
ret void
}

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