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

/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
long double testfunc_DDD(long double a, long double b) {
  long double result = a * b;
  printf("testfunc_DDD(%p, %p)\n", &a, &b);
  printf("testfunc_DDD(%Lg, %Lg)\n", a, b);
  return result;
}


x86 assembly (clang, -O0):
<testfunc_DDD>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
fldt   0x20(%rbp)
fldt   0x10(%rbp)
fstpt  -0x10(%rbp)
fstpt  -0x20(%rbp)
fldt   -0x10(%rbp)
fldt   -0x20(%rbp)
fmulp  %st,%st(1)
fstpt  -0x30(%rbp)
lea    0xeca(%rip),%rdi
xor    %eax,%eax
mov    %al,-0x31(%rbp)
lea    -0x10(%rbp),%rsi
lea    -0x20(%rbp),%rdx
call   1030 <printf@plt>
mov    -0x31(%rbp),%al
fldt   -0x10(%rbp)
fldt   -0x20(%rbp)
mov    %rsp,%rcx
fstpt  0x10(%rcx)
fstpt  (%rcx)
lea    0xeb6(%rip),%rdi
call   1030 <printf@plt>
fldt   -0x30(%rbp)
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<testfunc_DDD>:
sub    $0x58,%rsp
fldt   0x70(%rsp)
fldt   0x60(%rsp)
fld    %st(0)
fstpt  0x40(%rsp)
fld    %st(1)
fstpt  0x30(%rsp)
fmulp  %st,%st(1)
fstpt  0x24(%rsp)
lea    0xecb(%rip),%rdi
lea    0x40(%rsp),%rsi
lea    0x30(%rsp),%rdx
xor    %eax,%eax
call   1030 <printf@plt>
fldt   0x40(%rsp)
fldt   0x30(%rsp)
fstpt  0x10(%rsp)
fstpt  (%rsp)
lea    0xeba(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
fldt   0x24(%rsp)
add    $0x58,%rsp
ret

LLVM IR (-O0):
@.str = [22 x i8] c"testfunc_DDD(%p, %p)\0A\00"
@.str.1 = [24 x i8] c"testfunc_DDD(%Lg, %Lg)\0A\00"
define x86_fp80 @testfunc_DDD(x86_fp80 %0, x86_fp80 %1) {
%3 = alloca x86_fp80
%4 = alloca x86_fp80
%5 = alloca x86_fp80
store x86_fp80 %0, x86_fp80* %3
store x86_fp80 %1, x86_fp80* %4
%6 = load x86_fp80, x86_fp80* %3
%7 = load x86_fp80, x86_fp80* %4
%8 = fmul x86_fp80 %6, %7
store x86_fp80 %8, x86_fp80* %5
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), x86_fp80* %3, x86_fp80* %4)
%10 = load x86_fp80, x86_fp80* %3
%11 = load x86_fp80, x86_fp80* %4
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), x86_fp80 %10, x86_fp80 %11)
%13 = load x86_fp80, x86_fp80* %5
ret x86_fp80 %13
}

LLVM IR (-O2):
@.str = [22 x i8] c"testfunc_DDD(%p, %p)\0A\00"
@.str.1 = [24 x i8] c"testfunc_DDD(%Lg, %Lg)\0A\00"
define x86_fp80 @testfunc_DDD(x86_fp80 %0, x86_fp80 %1) {
%3 = alloca x86_fp80
%4 = alloca x86_fp80
store x86_fp80 %0, x86_fp80* %3
store x86_fp80 %1, x86_fp80* %4
%5 = fmul x86_fp80 %0, %1
%6 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), x86_fp80* %3, x86_fp80* %4)
%7 = load x86_fp80, x86_fp80* %3
%8 = load x86_fp80, x86_fp80* %4
%9 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), x86_fp80 %7, x86_fp80 %8)
ret x86_fp80 %5
}