#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__ {
  int member_0;
  int member_1;
  int member_2;
  int member_3;
  int member_4;
  int member_5;
  int member_6;
  int member_7;
  int member_8;
  int member_9;
  int member_10;
  int member_11;
  int member_12;
  int member_13;
  int member_14;
  int member_15;
};
typedef TYPE_1__ __v16si;

/* Variables and functions */
__v16si foo_3(int c) {
  __v16si v1 = {c, c, c, c, c, c, c, c, c, c, c, c, c, c, c, c};
  return v1;
}


x86 assembly (clang, -O0):
<foo_3>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,%rax
mov    %esi,-0x4(%rbp)
mov    -0x4(%rbp),%ecx
mov    %ecx,(%rdi)
mov    -0x4(%rbp),%ecx
mov    %ecx,0x4(%rdi)
mov    -0x4(%rbp),%ecx
mov    %ecx,0x8(%rdi)
mov    -0x4(%rbp),%ecx
mov    %ecx,0xc(%rdi)
mov    -0x4(%rbp),%ecx
mov    %ecx,0x10(%rdi)
mov    -0x4(%rbp),%ecx
mov    %ecx,0x14(%rdi)
mov    -0x4(%rbp),%ecx
mov    %ecx,0x18(%rdi)
mov    -0x4(%rbp),%ecx
mov    %ecx,0x1c(%rdi)
mov    -0x4(%rbp),%ecx
mov    %ecx,0x20(%rdi)
mov    -0x4(%rbp),%ecx
mov    %ecx,0x24(%rdi)
mov    -0x4(%rbp),%ecx
mov    %ecx,0x28(%rdi)
mov    -0x4(%rbp),%ecx
mov    %ecx,0x2c(%rdi)
mov    -0x4(%rbp),%ecx
mov    %ecx,0x30(%rdi)
mov    -0x4(%rbp),%ecx
mov    %ecx,0x34(%rdi)
mov    -0x4(%rbp),%ecx
mov    %ecx,0x38(%rdi)
mov    -0x4(%rbp),%ecx
mov    %ecx,0x3c(%rdi)
pop    %rbp
ret

x86 assembly (clang, -O2):
<foo_3>:
mov    %rdi,%rax
movd   %esi,%xmm0
pshufd $0x0,%xmm0,%xmm0
movdqu %xmm0,(%rdi)
movdqu %xmm0,0x10(%rdi)
movdqu %xmm0,0x20(%rdi)
movdqu %xmm0,0x30(%rdi)
ret

LLVM IR (-O0):
%struct.TYPE_3__ = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
define void @foo_3(%struct.TYPE_3__* noalias sret(%struct.TYPE_3__) align 4 %0, i32 %1) {
%3 = alloca i32
store i32 %1, i32* %3
%4 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %0, i32 0, i32 0
%5 = load i32, i32* %3
store i32 %5, i32* %4
%6 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %0, i32 0, i32 1
%7 = load i32, i32* %3
store i32 %7, i32* %6
%8 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %0, i32 0, i32 2
%9 = load i32, i32* %3
store i32 %9, i32* %8
%10 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %0, i32 0, i32 3
%11 = load i32, i32* %3
store i32 %11, i32* %10
%12 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %0, i32 0, i32 4
%13 = load i32, i32* %3
store i32 %13, i32* %12
%14 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %0, i32 0, i32 5
%15 = load i32, i32* %3
store i32 %15, i32* %14
%16 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %0, i32 0, i32 6
%17 = load i32, i32* %3
store i32 %17, i32* %16
%18 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %0, i32 0, i32 7
%19 = load i32, i32* %3
store i32 %19, i32* %18
%20 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %0, i32 0, i32 8
%21 = load i32, i32* %3
store i32 %21, i32* %20
%22 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %0, i32 0, i32 9
%23 = load i32, i32* %3
store i32 %23, i32* %22
%24 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %0, i32 0, i32 10
%25 = load i32, i32* %3
store i32 %25, i32* %24
%26 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %0, i32 0, i32 11
%27 = load i32, i32* %3
store i32 %27, i32* %26
%28 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %0, i32 0, i32 12
%29 = load i32, i32* %3
store i32 %29, i32* %28
%30 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %0, i32 0, i32 13
%31 = load i32, i32* %3
store i32 %31, i32* %30
%32 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %0, i32 0, i32 14
%33 = load i32, i32* %3
store i32 %33, i32* %32
%34 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %0, i32 0, i32 15
%35 = load i32, i32* %3
store i32 %35, i32* %34
ret void
}

LLVM IR (-O2):
%struct.TYPE_3__ = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
define void @foo_3(%struct.TYPE_3__* noalias nocapture writeonly sret(%struct.TYPE_3__) align 4 %0, i32 %1) {
%3 = insertelement <4 x i32> poison, i32 %1, i64 0
%4 = shufflevector <4 x i32> %3, <4 x i32> poison, <4 x i32> zeroinitializer
%5 = bitcast %struct.TYPE_3__* %0 to <4 x i32>*
store <4 x i32> %4, <4 x i32>* %5
%6 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %0, i64 0, i32 4
%7 = bitcast i32* %6 to <4 x i32>*
store <4 x i32> %4, <4 x i32>* %7
%8 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %0, i64 0, i32 8
%9 = bitcast i32* %8 to <4 x i32>*
store <4 x i32> %4, <4 x i32>* %9
%10 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %0, i64 0, i32 12
%11 = bitcast i32* %10 to <4 x i32>*
store <4 x i32> %4, <4 x i32>* %11
ret void
}