double force_param(int atomic) {
  switch (atomic) {
  case 1:
    return (0.784);
    break;
  case 6:
    return (1.183);
    break;
  case 7:
    return (1.212);
    break;
  case 8:
    return (1.219);
    break;
  case 9:
    return (1.166);
    break;
  case 15:
    return (1.280);
    break;
  case 16:
    return (1.620);
    break;
  case 17:
    return (1.272);
    break;
  case 35:
    return (1.378);
    break;
  case 53:
    return (1.398);
    break;
  default:
    return (0.0);
    break;
  }
  return (0.0);
}


x86 assembly (clang, -O0):
<force_param>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x18(%rbp)
sub    $0x34,%eax
ja     11e4 <force_param+0xe4>
mov    -0x18(%rbp),%rax
lea    0xf29(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movsd  0xf10(%rip),%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    11ec <force_param+0xec>
movsd  0xef6(%rip),%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    11ec <force_param+0xec>
movsd  0xedc(%rip),%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    11ec <force_param+0xec>
movsd  0xec2(%rip),%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    11ec <force_param+0xec>
movsd  0xea8(%rip),%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    11ec <force_param+0xec>
movsd  0xe8e(%rip),%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    11ec <force_param+0xec>
movsd  0xe74(%rip),%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    11ec <force_param+0xec>
movsd  0xe5a(%rip),%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    11ec <force_param+0xec>
movsd  0xe40(%rip),%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    11ec <force_param+0xec>
movsd  0xe26(%rip),%xmm0
movsd  %xmm0,-0x8(%rbp)
jmp    11ec <force_param+0xec>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
pop    %rbp
ret

x86 assembly (clang, -O2):
<force_param>:
add    $0xffffffff,%edi
cmp    $0x34,%edi
ja     1129 <force_param+0x29>
movsd  0xef0(%rip),%xmm0
lea    0xf39(%rip),%rax
movslq (%rax,%rdi,4),%rcx
add    %rax,%rcx
jmp    *%rcx
movsd  0xf20(%rip),%xmm0
ret
xorps  %xmm0,%xmm0
ret
movsd  0xf0b(%rip),%xmm0
ret
movsd  0xefa(%rip),%xmm0
ret
movsd  0xee9(%rip),%xmm0
ret
movsd  0xed8(%rip),%xmm0
ret
movsd  0xec7(%rip),%xmm0
ret
movsd  0xeb6(%rip),%xmm0
ret
movsd  0xea5(%rip),%xmm0
ret
movsd  0xe94(%rip),%xmm0
ret

LLVM IR (-O0):
define double @force_param(i32 %0) {
%2 = alloca double
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
switch i32 %4, label %15 [
i32 1, label %5
i32 6, label %6
i32 7, label %7
i32 8, label %8
i32 9, label %9
i32 15, label %10
i32 16, label %11
i32 17, label %12
i32 35, label %13
i32 53, label %14
]
5: ; preds = %1
store double 7.840000e-01, double* %2
br label %16
6: ; preds = %1
store double 1.183000e+00, double* %2
br label %16
7: ; preds = %1
store double 1.212000e+00, double* %2
br label %16
8: ; preds = %1
store double 1.219000e+00, double* %2
br label %16
9: ; preds = %1
store double 1.166000e+00, double* %2
br label %16
10: ; preds = %1
store double 1.280000e+00, double* %2
br label %16
11: ; preds = %1
store double 1.620000e+00, double* %2
br label %16
12: ; preds = %1
store double 1.272000e+00, double* %2
br label %16
13: ; preds = %1
store double 1.378000e+00, double* %2
br label %16
14: ; preds = %1
store double 1.398000e+00, double* %2
br label %16
15: ; preds = %1
store double 0.000000e+00, double* %2
br label %16
16: ; preds = %15, %14, %13, %12, %11, %10, %9, %8, %7, %6, %5
%17 = load double, double* %2
ret double %17
}

LLVM IR (-O2):
define double @force_param(i32 %0) {
switch i32 %0, label %11 [
i32 1, label %12
i32 6, label %2
i32 7, label %3
i32 8, label %4
i32 9, label %5
i32 15, label %6
i32 16, label %7
i32 17, label %8
i32 35, label %9
i32 53, label %10
]
2: ; preds = %1
br label %12
3: ; preds = %1
br label %12
4: ; preds = %1
br label %12
5: ; preds = %1
br label %12
6: ; preds = %1
br label %12
7: ; preds = %1
br label %12
8: ; preds = %1
br label %12
9: ; preds = %1
br label %12
10: ; preds = %1
br label %12
11: ; preds = %1
br label %12
12: ; preds = %1, %11, %10, %9, %8, %7, %6, %5, %4, %3, %2
%13 = phi double [ 0.000000e+00, %11 ], [ 1.398000e+00, %10 ], [ 1.378000e+00, %9 ], [ 1.272000e+00, %8 ], [ 1.620000e+00, %7 ], [ 1.280000e+00, %6 ], [ 1.166000e+00, %5 ], [ 1.219000e+00, %4 ], [ 1.212000e+00, %3 ], [ 1.183000e+00, %2 ], [ 7.840000e-01, %1 ]
ret double %13
}