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

/* Variables and functions */
scalar_t__ *_mm_cmpeq_epi8(scalar_t__ *, scalar_t__ *);
int /*<<< orphan*/ assert(int);
int main() {
  __m128i val1_1 = {0x00110011, 0x00110011};
  __m128i val1_2 = {0x11001100, 0x11001100};
  __m128i res1 = {0xffffffff00000000L, 0xffffffff00000000L};
  __m128i val2_1 = {0, 0};
  __m128i val2_2 = {-1, -1};
  __m128i res2 = {0, 0};
  __m128i val3_1 = {0, 0};
  __m128i val3_2 = {0, 0};
  __m128i res3 = {0xffffffffffffffffL, 0xffffffffffffffffL};
  assert(_mm_cmpeq_epi8(val1_1, val1_2)[0] == res1[0]);
  assert(_mm_cmpeq_epi8(val1_1, val1_2)[1] == res1[1]);
  assert(_mm_cmpeq_epi8(val2_1, val2_2)[0] == res2[0]);
  assert(_mm_cmpeq_epi8(val2_1, val2_2)[1] == res2[1]);
  assert(_mm_cmpeq_epi8(val3_1, val3_2)[0] == res3[0]);
  assert(_mm_cmpeq_epi8(val3_1, val3_2)[1] == res3[1]);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    $0x110011,%eax
mov    %rax,-0x8(%rbp)
mov    $0x11001100,%eax
mov    %rax,-0x10(%rbp)
movabs $0xffffffff00000000,%rax
ff ff ff
mov    %rax,-0x18(%rbp)
movq   $0x0,-0x20(%rbp)
mov    $0xffffffffffffffff,%rax
mov    %rax,-0x28(%rbp)
movq   $0x0,-0x30(%rbp)
movq   $0x0,-0x38(%rbp)
movq   $0x0,-0x40(%rbp)
mov    $0xffffffffffffffff,%rax
mov    %rax,-0x48(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1040 <_mm_cmpeq_epi8@plt>
mov    (%rax),%rax
mov    -0x18(%rbp),%rcx
cmp    (%rcx),%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1040 <_mm_cmpeq_epi8@plt>
mov    0x8(%rax),%rax
mov    -0x18(%rbp),%rcx
cmp    0x8(%rcx),%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
call   1040 <_mm_cmpeq_epi8@plt>
mov    (%rax),%rax
mov    -0x30(%rbp),%rcx
cmp    (%rcx),%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
call   1040 <_mm_cmpeq_epi8@plt>
mov    0x8(%rax),%rax
mov    -0x30(%rbp),%rcx
cmp    0x8(%rcx),%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
mov    -0x38(%rbp),%rdi
mov    -0x40(%rbp),%rsi
call   1040 <_mm_cmpeq_epi8@plt>
mov    (%rax),%rax
mov    -0x48(%rbp),%rcx
cmp    (%rcx),%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
mov    -0x38(%rbp),%rdi
mov    -0x40(%rbp),%rsi
call   1040 <_mm_cmpeq_epi8@plt>
mov    0x8(%rax),%rax
mov    -0x48(%rbp),%rcx
cmp    0x8(%rcx),%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    $0x110011,%edi
mov    $0x11001100,%esi
call   1040 <_mm_cmpeq_epi8@plt>
mov    (%rax),%rax
movabs $0xffffffff00000000,%rbx
ff ff ff
xor    %edi,%edi
cmp    (%rbx),%rax
sete   %dil
call   1030 <assert@plt>
mov    $0x110011,%edi
mov    $0x11001100,%esi
call   1040 <_mm_cmpeq_epi8@plt>
mov    0x8(%rax),%rax
xor    %edi,%edi
cmp    0x8(%rbx),%rax
sete   %dil
call   1030 <assert@plt>
xor    %edi,%edi
mov    $0xffffffffffffffff,%rsi
call   1040 <_mm_cmpeq_epi8@plt>
xor    %edi,%edi
call   1030 <assert@plt>
xor    %edi,%edi
mov    $0xffffffffffffffff,%rsi
call   1040 <_mm_cmpeq_epi8@plt>
mov    0x8(%rax),%rax
xor    %edi,%edi
cmp    0x8,%rax
sete   %dil
call   1030 <assert@plt>
xor    %edi,%edi
xor    %esi,%esi
call   1040 <_mm_cmpeq_epi8@plt>
mov    (%rax),%rax
xor    %edi,%edi
cmp    0xffffffffffffffff,%rax
ff
sete   %dil
call   1030 <assert@plt>
xor    %edi,%edi
xor    %esi,%esi
call   1040 <_mm_cmpeq_epi8@plt>
mov    0x8(%rax),%rax
xor    %edi,%edi
cmp    0x7,%rax
sete   %dil
call   1030 <assert@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i64*
%2 = alloca i64*
%3 = alloca i64*
%4 = alloca i64*
%5 = alloca i64*
%6 = alloca i64*
%7 = alloca i64*
%8 = alloca i64*
%9 = alloca i64*
store i64* inttoptr (i64 1114129 to i64*), i64** %1
store i64* inttoptr (i64 285217024 to i64*), i64** %2
store i64* inttoptr (i64 -4294967296 to i64*), i64** %3
store i64* null, i64** %4
store i64* inttoptr (i64 -1 to i64*), i64** %5
store i64* null, i64** %6
store i64* null, i64** %7
store i64* null, i64** %8
store i64* inttoptr (i64 -1 to i64*), i64** %9
%10 = load i64*, i64** %1
%11 = load i64*, i64** %2
%12 = call i64* @_mm_cmpeq_epi8(i64* %10, i64* %11)
%13 = getelementptr inbounds i64, i64* %12, i64 0
%14 = load i64, i64* %13
%15 = load i64*, i64** %3
%16 = getelementptr inbounds i64, i64* %15, i64 0
%17 = load i64, i64* %16
%18 = icmp eq i64 %14, %17
%19 = zext i1 %18 to i32
%20 = call i32 @assert(i32 %19)
%21 = load i64*, i64** %1
%22 = load i64*, i64** %2
%23 = call i64* @_mm_cmpeq_epi8(i64* %21, i64* %22)
%24 = getelementptr inbounds i64, i64* %23, i64 1
%25 = load i64, i64* %24
%26 = load i64*, i64** %3
%27 = getelementptr inbounds i64, i64* %26, i64 1
%28 = load i64, i64* %27
%29 = icmp eq i64 %25, %28
%30 = zext i1 %29 to i32
%31 = call i32 @assert(i32 %30)
%32 = load i64*, i64** %4
%33 = load i64*, i64** %5
%34 = call i64* @_mm_cmpeq_epi8(i64* %32, i64* %33)
%35 = getelementptr inbounds i64, i64* %34, i64 0
%36 = load i64, i64* %35
%37 = load i64*, i64** %6
%38 = getelementptr inbounds i64, i64* %37, i64 0
%39 = load i64, i64* %38
%40 = icmp eq i64 %36, %39
%41 = zext i1 %40 to i32
%42 = call i32 @assert(i32 %41)
%43 = load i64*, i64** %4
%44 = load i64*, i64** %5
%45 = call i64* @_mm_cmpeq_epi8(i64* %43, i64* %44)
%46 = getelementptr inbounds i64, i64* %45, i64 1
%47 = load i64, i64* %46
%48 = load i64*, i64** %6
%49 = getelementptr inbounds i64, i64* %48, i64 1
%50 = load i64, i64* %49
%51 = icmp eq i64 %47, %50
%52 = zext i1 %51 to i32
%53 = call i32 @assert(i32 %52)
%54 = load i64*, i64** %7
%55 = load i64*, i64** %8
%56 = call i64* @_mm_cmpeq_epi8(i64* %54, i64* %55)
%57 = getelementptr inbounds i64, i64* %56, i64 0
%58 = load i64, i64* %57
%59 = load i64*, i64** %9
%60 = getelementptr inbounds i64, i64* %59, i64 0
%61 = load i64, i64* %60
%62 = icmp eq i64 %58, %61
%63 = zext i1 %62 to i32
%64 = call i32 @assert(i32 %63)
%65 = load i64*, i64** %7
%66 = load i64*, i64** %8
%67 = call i64* @_mm_cmpeq_epi8(i64* %65, i64* %66)
%68 = getelementptr inbounds i64, i64* %67, i64 1
%69 = load i64, i64* %68
%70 = load i64*, i64** %9
%71 = getelementptr inbounds i64, i64* %70, i64 1
%72 = load i64, i64* %71
%73 = icmp eq i64 %69, %72
%74 = zext i1 %73 to i32
%75 = call i32 @assert(i32 %74)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i64* @_mm_cmpeq_epi8(i64* inttoptr (i64 1114129 to i64*), i64* inttoptr (i64 285217024 to i64*))
%2 = load i64, i64* %1
%3 = load i64, i64* inttoptr (i64 -4294967296 to i64*)
%4 = icmp eq i64 %2, %3
%5 = zext i1 %4 to i32
%6 = tail call i32 @assert(i32 %5)
%7 = tail call i64* @_mm_cmpeq_epi8(i64* inttoptr (i64 1114129 to i64*), i64* inttoptr (i64 285217024 to i64*))
%8 = getelementptr inbounds i64, i64* %7, i64 1
%9 = load i64, i64* %8
%10 = load i64, i64* inttoptr (i64 -4294967288 to i64*)
%11 = icmp eq i64 %9, %10
%12 = zext i1 %11 to i32
%13 = tail call i32 @assert(i32 %12)
%14 = tail call i64* @_mm_cmpeq_epi8(i64* null, i64* inttoptr (i64 -1 to i64*))
%15 = tail call i32 @assert(i32 0)
%16 = tail call i64* @_mm_cmpeq_epi8(i64* null, i64* inttoptr (i64 -1 to i64*))
%17 = getelementptr inbounds i64, i64* %16, i64 1
%18 = load i64, i64* %17
%19 = load i64, i64* inttoptr (i64 8 to i64*)
%20 = icmp eq i64 %18, %19
%21 = zext i1 %20 to i32
%22 = tail call i32 @assert(i32 %21)
%23 = tail call i64* @_mm_cmpeq_epi8(i64* null, i64* null)
%24 = load i64, i64* %23
%25 = load i64, i64* inttoptr (i64 -1 to i64*)
%26 = icmp eq i64 %24, %25
%27 = zext i1 %26 to i32
%28 = tail call i32 @assert(i32 %27)
%29 = tail call i64* @_mm_cmpeq_epi8(i64* null, i64* null)
%30 = getelementptr inbounds i64, i64* %29, i64 1
%31 = load i64, i64* %30
%32 = load i64, i64* inttoptr (i64 7 to i64*)
%33 = icmp eq i64 %31, %32
%34 = zext i1 %33 to i32
%35 = tail call i32 @assert(i32 %34)
ret i32 0
}