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

/* Variables and functions */
int /*<<< orphan*/ _mm_set_epi8(char, char, char, char, char, char, char, char,
                                char, char, char, char, char, char, char, char);
__m128i bar(char x) {
  return _mm_set_epi8(x, x, x, x, x, x, x, x, x, x, x, x, x, x, x, x);
}


x86 assembly (clang, -O0):
<bar>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
mov    %dil,%al
mov    %al,-0x29(%rbp)
mov    -0x29(%rbp),%dil
mov    -0x29(%rbp),%sil
mov    -0x29(%rbp),%dl
mov    -0x29(%rbp),%cl
mov    -0x29(%rbp),%r8b
mov    -0x29(%rbp),%r9b
mov    -0x29(%rbp),%al
mov    %al,-0x2b(%rbp)
mov    -0x29(%rbp),%r13b
mov    -0x29(%rbp),%r12b
mov    -0x29(%rbp),%r15b
mov    -0x29(%rbp),%r14b
mov    -0x29(%rbp),%bl
mov    -0x29(%rbp),%r11b
mov    -0x29(%rbp),%r10b
mov    -0x29(%rbp),%al
mov    %al,-0x2a(%rbp)
mov    -0x2b(%rbp),%al
movsbl %dil,%edi
movsbl %sil,%esi
movsbl %dl,%edx
movsbl %cl,%ecx
movsbl %r8b,%r8d
movsbl %r9b,%r9d
movsbl %al,%eax
mov    %eax,(%rsp)
mov    -0x2a(%rbp),%al
movsbl %r13b,%r13d
mov    %r13d,0x8(%rsp)
movsbl %r12b,%r12d
mov    %r12d,0x10(%rsp)
movsbl %r15b,%r15d
mov    %r15d,0x18(%rsp)
movsbl %r14b,%r14d
mov    %r14d,0x20(%rsp)
movsbl %bl,%ebx
mov    %ebx,0x28(%rsp)
movsbl %r11b,%r11d
mov    %r11d,0x30(%rsp)
movsbl %r10b,%r10d
mov    %r10d,0x38(%rsp)
movsbl %al,%eax
mov    %eax,0x40(%rsp)
movsbl -0x29(%rbp),%eax
mov    %eax,0x48(%rsp)
call   1030 <_mm_set_epi8@plt>
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<bar>:
push   %rax
mov    %edi,%esi
mov    %edi,%edx
mov    %edi,%ecx
mov    %edi,%r8d
mov    %edi,%r9d
push   %rdi
push   %rdi
push   %rdi
push   %rdi
push   %rdi
push   %rdi
push   %rdi
push   %rdi
push   %rdi
push   %rdi
call   1030 <_mm_set_epi8@plt>
add    $0x50,%rsp
pop    %rcx
ret

LLVM IR (-O0):
define i32 @bar(i8 signext %0) {
%2 = alloca i8
store i8 %0, i8* %2
%3 = load i8, i8* %2
%4 = load i8, i8* %2
%5 = load i8, i8* %2
%6 = load i8, i8* %2
%7 = load i8, i8* %2
%8 = load i8, i8* %2
%9 = load i8, i8* %2
%10 = load i8, i8* %2
%11 = load i8, i8* %2
%12 = load i8, i8* %2
%13 = load i8, i8* %2
%14 = load i8, i8* %2
%15 = load i8, i8* %2
%16 = load i8, i8* %2
%17 = load i8, i8* %2
%18 = load i8, i8* %2
%19 = call i32 @_mm_set_epi8(i8 signext %3, i8 signext %4, i8 signext %5, i8 signext %6, i8 signext %7, i8 signext %8, i8 signext %9, i8 signext %10, i8 signext %11, i8 signext %12, i8 signext %13, i8 signext %14, i8 signext %15, i8 signext %16, i8 signext %17, i8 signext %18)
ret i32 %19
}

LLVM IR (-O2):
define i32 @bar(i8 signext %0) {
%2 = tail call i32 @_mm_set_epi8(i8 signext %0, i8 signext %0, i8 signext %0, i8 signext %0, i8 signext %0, i8 signext %0, i8 signext %0, i8 signext %0, i8 signext %0, i8 signext %0, i8 signext %0, i8 signext %0, i8 signext %0, i8 signext %0, i8 signext %0, i8 signext %0)
ret i32 %2
}