BOOST_AUTO_TEST_CASE(log) {
  TESTCASE2(log, 2, 1, 0);
  TESTCASE2(log, 2, 2, 1);
  TESTCASE2(log, 2, 8, 3);
  TESTCASE2(log, 2, 0.5, -1);
  TESTCASE2(log, 3, 1, 0);
  TESTCASE2(log, 3, 9, 2);
}


x86 assembly (clang, -O0):
<BOOST_AUTO_TEST_CASE>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    -0x8(%rbp),%edi
mov    $0x2,%esi
mov    $0x1,%edx
xor    %ecx,%ecx
mov    $0x0,%al
call   1030 <TESTCASE2@plt>
mov    -0x8(%rbp),%edi
mov    $0x2,%edx
mov    $0x1,%ecx
mov    %edx,%esi
mov    $0x0,%al
call   1030 <TESTCASE2@plt>
mov    -0x8(%rbp),%edi
mov    $0x2,%esi
mov    $0x8,%edx
mov    $0x3,%ecx
mov    $0x0,%al
call   1030 <TESTCASE2@plt>
mov    -0x8(%rbp),%edi
mov    $0x2,%esi
movsd  0xe90(%rip),%xmm0
mov    $0xffffffff,%edx
mov    $0x1,%al
call   1030 <TESTCASE2@plt>
mov    -0x8(%rbp),%edi
mov    $0x3,%esi
mov    $0x1,%edx
xor    %ecx,%ecx
mov    $0x0,%al
call   1030 <TESTCASE2@plt>
mov    -0x8(%rbp),%edi
mov    $0x3,%esi
mov    $0x9,%edx
mov    $0x2,%ecx
mov    $0x0,%al
call   1030 <TESTCASE2@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<BOOST_AUTO_TEST_CASE>:
push   %rbx
mov    %edi,%ebx
mov    $0x2,%esi
mov    $0x1,%edx
xor    %ecx,%ecx
xor    %eax,%eax
call   1030 <TESTCASE2@plt>
mov    %ebx,%edi
mov    $0x2,%esi
mov    $0x2,%edx
mov    $0x1,%ecx
xor    %eax,%eax
call   1030 <TESTCASE2@plt>
mov    %ebx,%edi
mov    $0x2,%esi
mov    $0x8,%edx
mov    $0x3,%ecx
xor    %eax,%eax
call   1030 <TESTCASE2@plt>
movsd  0xea2(%rip),%xmm0
mov    %ebx,%edi
mov    $0x2,%esi
mov    $0xffffffff,%edx
mov    $0x1,%al
call   1030 <TESTCASE2@plt>
mov    %ebx,%edi
mov    $0x3,%esi
mov    $0x1,%edx
xor    %ecx,%ecx
xor    %eax,%eax
call   1030 <TESTCASE2@plt>
mov    %ebx,%edi
mov    $0x3,%esi
mov    $0x9,%edx
mov    $0x2,%ecx
xor    %eax,%eax
pop    %rbx
jmp    1030 <TESTCASE2@plt>

LLVM IR (-O0):
define i32 @BOOST_AUTO_TEST_CASE(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %3
%4 = load i32, i32* %3
%5 = call i32 (i32, i32, i32, i32, ...) bitcast (i32 (...)* @TESTCASE2 to i32 (i32, i32, i32, i32, ...)*)(i32 %4, i32 2, i32 1, i32 0)
%6 = load i32, i32* %3
%7 = call i32 (i32, i32, i32, i32, ...) bitcast (i32 (...)* @TESTCASE2 to i32 (i32, i32, i32, i32, ...)*)(i32 %6, i32 2, i32 2, i32 1)
%8 = load i32, i32* %3
%9 = call i32 (i32, i32, i32, i32, ...) bitcast (i32 (...)* @TESTCASE2 to i32 (i32, i32, i32, i32, ...)*)(i32 %8, i32 2, i32 8, i32 3)
%10 = load i32, i32* %3
%11 = call i32 (i32, i32, double, i32, ...) bitcast (i32 (...)* @TESTCASE2 to i32 (i32, i32, double, i32, ...)*)(i32 %10, i32 2, double 5.000000e-01, i32 -1)
%12 = load i32, i32* %3
%13 = call i32 (i32, i32, i32, i32, ...) bitcast (i32 (...)* @TESTCASE2 to i32 (i32, i32, i32, i32, ...)*)(i32 %12, i32 3, i32 1, i32 0)
%14 = load i32, i32* %3
%15 = call i32 (i32, i32, i32, i32, ...) bitcast (i32 (...)* @TESTCASE2 to i32 (i32, i32, i32, i32, ...)*)(i32 %14, i32 3, i32 9, i32 2)
%16 = load i32, i32* %2
ret i32 %16
}

LLVM IR (-O2):
define i32 @BOOST_AUTO_TEST_CASE(i32 %0) {
%2 = tail call i32 (i32, i32, i32, i32, ...) bitcast (i32 (...)* @TESTCASE2 to i32 (i32, i32, i32, i32, ...)*)(i32 %0, i32 2, i32 1, i32 0)
%3 = tail call i32 (i32, i32, i32, i32, ...) bitcast (i32 (...)* @TESTCASE2 to i32 (i32, i32, i32, i32, ...)*)(i32 %0, i32 2, i32 2, i32 1)
%4 = tail call i32 (i32, i32, i32, i32, ...) bitcast (i32 (...)* @TESTCASE2 to i32 (i32, i32, i32, i32, ...)*)(i32 %0, i32 2, i32 8, i32 3)
%5 = tail call i32 (i32, i32, double, i32, ...) bitcast (i32 (...)* @TESTCASE2 to i32 (i32, i32, double, i32, ...)*)(i32 %0, i32 2, double 5.000000e-01, i32 -1)
%6 = tail call i32 (i32, i32, i32, i32, ...) bitcast (i32 (...)* @TESTCASE2 to i32 (i32, i32, i32, i32, ...)*)(i32 %0, i32 3, i32 1, i32 0)
%7 = tail call i32 (i32, i32, i32, i32, ...) bitcast (i32 (...)* @TESTCASE2 to i32 (i32, i32, i32, i32, ...)*)(i32 %0, i32 3, i32 9, i32 2)
ret i32 undef
}