#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*/ uint8_t;
typedef int /*<<< orphan*/ uint32_t;

/* Variables and functions */
void predict_8x8c_dc_128(uint8_t *src, int i_stride) {
  int y;
  for (y = 0; y < 8; y++) {
    uint32_t *p = (uint32_t *)src;
    *p++ = 0x80808080;
    *p++ = 0x80808080;
    src += i_stride;
  }
}


x86 assembly (clang, -O0):
<predict_8x8c_dc_128>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
cmpl   $0x8,-0x10(%rbp)
jge    1171 <predict_8x8c_dc_128+0x71>
mov    -0x8(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,%rcx
add    $0x4,%rcx
mov    %rcx,-0x18(%rbp)
movl   $0x80808080,(%rax)
mov    -0x18(%rbp),%rax
mov    %rax,%rcx
add    $0x4,%rcx
mov    %rcx,-0x18(%rbp)
movl   $0x80808080,(%rax)
mov    -0xc(%rbp),%ecx
mov    -0x8(%rbp),%rax
movslq %ecx,%rcx
shl    $0x2,%rcx
add    %rcx,%rax
mov    %rax,-0x8(%rbp)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1112 <predict_8x8c_dc_128+0x12>
pop    %rbp
ret

x86 assembly (clang, -O2):
<predict_8x8c_dc_128>:
movslq %esi,%rax
movabs $0x8080808080808080,%rcx
80 80 80
mov    %rcx,(%rdi)
lea    (%rdi,%rax,4),%rdx
mov    %rcx,(%rdi,%rax,4)
lea    (%rdx,%rax,4),%rsi
mov    %rcx,(%rdx,%rax,4)
lea    (%rsi,%rax,4),%rdx
mov    %rcx,(%rsi,%rax,4)
lea    (%rdx,%rax,4),%rsi
mov    %rcx,(%rdx,%rax,4)
lea    (%rsi,%rax,4),%rdx
mov    %rcx,(%rsi,%rax,4)
lea    (%rdx,%rax,4),%rsi
mov    %rcx,(%rdx,%rax,4)
mov    %rcx,(%rsi,%rax,4)
ret

LLVM IR (-O0):
define void @predict_8x8c_dc_128(i32* %0, i32 %1) {
%3 = alloca i32*
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32*
store i32* %0, i32** %3
store i32 %1, i32* %4
store i32 0, i32* %5
br label %7
7: ; preds = %20, %2
%8 = load i32, i32* %5
%9 = icmp slt i32 %8, 8
br i1 %9, label %10, label %23
10: ; preds = %7
%11 = load i32*, i32** %3
store i32* %11, i32** %6
%12 = load i32*, i32** %6
%13 = getelementptr inbounds i32, i32* %12, i32 1
store i32* %13, i32** %6
store i32 -2139062144, i32* %12
%14 = load i32*, i32** %6
%15 = getelementptr inbounds i32, i32* %14, i32 1
store i32* %15, i32** %6
store i32 -2139062144, i32* %14
%16 = load i32, i32* %4
%17 = load i32*, i32** %3
%18 = sext i32 %16 to i64
%19 = getelementptr inbounds i32, i32* %17, i64 %18
store i32* %19, i32** %3
br label %20
20: ; preds = %10
%21 = load i32, i32* %5
%22 = add nsw i32 %21, 1
store i32 %22, i32* %5
br label %7
23: ; preds = %7
ret void
}

LLVM IR (-O2):
define void @predict_8x8c_dc_128(i32* nocapture writeonly %0, i32 %1) {
%3 = sext i32 %1 to i64
%4 = getelementptr inbounds i32, i32* %0, i64 1
store i32 -2139062144, i32* %0
store i32 -2139062144, i32* %4
%5 = getelementptr inbounds i32, i32* %0, i64 %3
%6 = getelementptr inbounds i32, i32* %5, i64 1
store i32 -2139062144, i32* %5
store i32 -2139062144, i32* %6
%7 = getelementptr inbounds i32, i32* %5, i64 %3
%8 = getelementptr inbounds i32, i32* %7, i64 1
store i32 -2139062144, i32* %7
store i32 -2139062144, i32* %8
%9 = getelementptr inbounds i32, i32* %7, i64 %3
%10 = getelementptr inbounds i32, i32* %9, i64 1
store i32 -2139062144, i32* %9
store i32 -2139062144, i32* %10
%11 = getelementptr inbounds i32, i32* %9, i64 %3
%12 = getelementptr inbounds i32, i32* %11, i64 1
store i32 -2139062144, i32* %11
store i32 -2139062144, i32* %12
%13 = getelementptr inbounds i32, i32* %11, i64 %3
%14 = getelementptr inbounds i32, i32* %13, i64 1
store i32 -2139062144, i32* %13
store i32 -2139062144, i32* %14
%15 = getelementptr inbounds i32, i32* %13, i64 %3
%16 = getelementptr inbounds i32, i32* %15, i64 1
store i32 -2139062144, i32* %15
store i32 -2139062144, i32* %16
%17 = getelementptr inbounds i32, i32* %15, i64 %3
%18 = getelementptr inbounds i32, i32* %17, i64 1
store i32 -2139062144, i32* %17
store i32 -2139062144, i32* %18
ret void
}