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

/* Variables and functions */
int /*<<< orphan*/ _mm_set1_pd(double);
int /*<<< orphan*/ test1(double, double, double, double, double, double, double,
                         int /*<<< orphan*/, double);
int /*<<< orphan*/ test2(double, double, double, double, double, double, double,
                         int /*<<< orphan*/, double, int /*<<< orphan*/, double,
                         int /*<<< orphan*/, double, int /*<<< orphan*/,
                         double);
int main() {
  __m128d m = _mm_set1_pd(7.0);
  test1(0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, m, 1234.0);
  test2(0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, m, 0.0, m, 0.0, m, 0.0, m, 1234.0);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movsd  0xec1(%rip),%xmm0
call   1030 <_mm_set1_pd@plt>
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%edi
xorps  %xmm6,%xmm6
movsd  0xea3(%rip),%xmm7
movaps %xmm6,%xmm0
movaps %xmm6,%xmm1
movaps %xmm6,%xmm2
movaps %xmm6,%xmm3
movaps %xmm6,%xmm4
movaps %xmm6,%xmm5
call   1040 <test1@plt>
mov    -0x8(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0x8(%rbp),%edx
mov    -0x8(%rbp),%ecx
xorps  %xmm9,%xmm9
movsd  0xe73(%rip),%xmm8
movaps %xmm9,%xmm0
movaps %xmm9,%xmm1
movaps %xmm9,%xmm2
movaps %xmm9,%xmm3
movaps %xmm9,%xmm4
movaps %xmm9,%xmm5
movaps %xmm9,%xmm6
movaps %xmm9,%xmm7
movsd  %xmm9,(%rsp)
movsd  %xmm9,0x8(%rsp)
movsd  %xmm8,0x10(%rsp)
call   1050 <test2@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x20,%rsp
movsd  0xec3(%rip),%xmm0
call   1030 <_mm_set1_pd@plt>
mov    %eax,%ebx
movsd  0xebc(%rip),%xmm7
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
xorps  %xmm3,%xmm3
xorps  %xmm4,%xmm4
xorps  %xmm5,%xmm5
xorps  %xmm6,%xmm6
mov    %eax,%edi
call   1040 <test1@plt>
movabs $0x4093480000000000,%rax
48 93 40
mov    %rax,0x10(%rsp)
xorps  %xmm0,%xmm0
movups %xmm0,(%rsp)
xorps  %xmm0,%xmm0
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
xorps  %xmm3,%xmm3
xorps  %xmm4,%xmm4
xorps  %xmm5,%xmm5
xorps  %xmm6,%xmm6
xorps  %xmm7,%xmm7
mov    %ebx,%edi
mov    %ebx,%esi
mov    %ebx,%edx
mov    %ebx,%ecx
call   1050 <test2@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
%3 = call i32 @_mm_set1_pd(double 7.000000e+00)
store i32 %3, i32* %2
%4 = load i32, i32* %2
%5 = call i32 @test1(double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, i32 %4, double 1.234000e+03)
%6 = load i32, i32* %2
%7 = load i32, i32* %2
%8 = load i32, i32* %2
%9 = load i32, i32* %2
%10 = call i32 @test2(double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, i32 %6, double 0.000000e+00, i32 %7, double 0.000000e+00, i32 %8, double 0.000000e+00, i32 %9, double 1.234000e+03)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @_mm_set1_pd(double 7.000000e+00)
%2 = tail call i32 @test1(double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, i32 %1, double 1.234000e+03)
%3 = tail call i32 @test2(double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, double 0.000000e+00, i32 %1, double 0.000000e+00, i32 %1, double 0.000000e+00, i32 %1, double 0.000000e+00, i32 %1, double 1.234000e+03)
ret i32 0
}