#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 */
typedef struct TYPE_3__ TYPE_1__;

/* Type definitions */
struct TYPE_3__ {
  long long member_0;
  long long member_1;
  long long member_2;
  long long member_3;
  long long member_4;
  long long member_5;
  long long member_6;
  long long member_7;
};
typedef TYPE_1__ __v8di;

/* Variables and functions */
__v8di foo_4(long long c) {
  __v8di v1 = {c, c, c, c, c, c, c, c};
  return v1;
}


x86 assembly (clang, -O0):
<foo_4>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,%rax
mov    %rsi,-0x8(%rbp)
mov    -0x8(%rbp),%rcx
mov    %rcx,(%rdi)
mov    -0x8(%rbp),%rcx
mov    %rcx,0x8(%rdi)
mov    -0x8(%rbp),%rcx
mov    %rcx,0x10(%rdi)
mov    -0x8(%rbp),%rcx
mov    %rcx,0x18(%rdi)
mov    -0x8(%rbp),%rcx
mov    %rcx,0x20(%rdi)
mov    -0x8(%rbp),%rcx
mov    %rcx,0x28(%rdi)
mov    -0x8(%rbp),%rcx
mov    %rcx,0x30(%rdi)
mov    -0x8(%rbp),%rcx
mov    %rcx,0x38(%rdi)
pop    %rbp
ret

x86 assembly (clang, -O2):
<foo_4>:
mov    %rdi,%rax
mov    %rsi,(%rdi)
mov    %rsi,0x8(%rdi)
mov    %rsi,0x10(%rdi)
mov    %rsi,0x18(%rdi)
mov    %rsi,0x20(%rdi)
mov    %rsi,0x28(%rdi)
mov    %rsi,0x30(%rdi)
mov    %rsi,0x38(%rdi)
ret

LLVM IR (-O0):
%struct.TYPE_3__ = type { i64, i64, i64, i64, i64, i64, i64, i64 }
define void @foo_4(%struct.TYPE_3__* noalias sret(%struct.TYPE_3__) align 8 %0, i64 %1) {
%3 = alloca i64
store i64 %1, i64* %3
%4 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %0, i32 0, i32 0
%5 = load i64, i64* %3
store i64 %5, i64* %4
%6 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %0, i32 0, i32 1
%7 = load i64, i64* %3
store i64 %7, i64* %6
%8 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %0, i32 0, i32 2
%9 = load i64, i64* %3
store i64 %9, i64* %8
%10 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %0, i32 0, i32 3
%11 = load i64, i64* %3
store i64 %11, i64* %10
%12 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %0, i32 0, i32 4
%13 = load i64, i64* %3
store i64 %13, i64* %12
%14 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %0, i32 0, i32 5
%15 = load i64, i64* %3
store i64 %15, i64* %14
%16 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %0, i32 0, i32 6
%17 = load i64, i64* %3
store i64 %17, i64* %16
%18 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %0, i32 0, i32 7
%19 = load i64, i64* %3
store i64 %19, i64* %18
ret void
}

LLVM IR (-O2):
%struct.TYPE_3__ = type { i64, i64, i64, i64, i64, i64, i64, i64 }
define void @foo_4(%struct.TYPE_3__* noalias nocapture writeonly sret(%struct.TYPE_3__) align 8 %0, i64 %1) {
%3 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %0, i64 0, i32 0
store i64 %1, i64* %3
%4 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %0, i64 0, i32 1
store i64 %1, i64* %4
%5 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %0, i64 0, i32 2
store i64 %1, i64* %5
%6 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %0, i64 0, i32 3
store i64 %1, i64* %6
%7 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %0, i64 0, i32 4
store i64 %1, i64* %7
%8 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %0, i64 0, i32 5
store i64 %1, i64* %8
%9 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %0, i64 0, i32 6
store i64 %1, i64* %9
%10 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %0, i64 0, i32 7
store i64 %1, i64* %10
ret void
}